The storage location of the pre-trained model weights downloaded by tensorflow

When using an existing deep learning network model for training, I often encounter errors like the following,
OSError: Unable to open file (file signature not found)
This is because the weight file of the pre-trained model downloaded before stopped halfway. If the file cannot be used, an error will be reported. If you find the file that has not been downloaded, you can delete it. I searched for a long time on the Internet and stepped on some pits.
Pre-trained weight location: C:\Users(user name)\.keras\models
Sometimes there are similar problems when downloading data sets online. Offline data set location:
C:\Users(user name)\.keras\ datasets

Guess you like

Origin blog.csdn.net/weixin_45371989/article/details/106381736