LoginSignup
0
3

More than 5 years have passed since last update.

VGG16の学習済みデータのダウンロードを途中で止めた後のエラー対応

Posted at

KerasでVGG16を使う
http://aidiary.hatenablog.com/entry/20170104/1483535144

こちらの内容に沿って、スクリプトを実行して学習済みデータをダウンロードしている途中で止めたあと、再度実行しようとした場合、次のようなエラーが出る

OSError: Unable to open file (Truncated file: eof = 174129152, sblock->base_addr = 0, stored_eoa = 553467096)

001.PNG

https://stackoverflow.com/questions/40839114/i-tried-to-fine-tune-vgg16-on-my-dataset-but-met-the-oserror-about-loading-vgg1

環境によって違いますが、下記ディレクトリにvgg16_weights_tf_dim_ordering_tf_kernels.h5というファイルが1個だけあると思いますので、これを削除して再度実行すると再読込できます。

C:\Users\(ユーザ名)\.keras\models
0
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3