当前位置: 首页 > 工具软件 > ph-open > 使用案例 >

fid = h5f.open(name, flags, fapl=fapl) File “h5py\_objects.pyx“, line 54, in h5py._objects.with_ph

董建茗
2023-12-01

fid = h5f.open(name, flags, fapl=fapl)
  File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py\h5f.pyx", line 88, in h5py.h5f.open
OSError: Unable to open file (truncated file: eof = 7479296, sblock->base_addr = 0, stored_eof = 9406464)
一个bug折磨了好几天,问有经验的人,建议我降级h5py, 

反反复复,没有解决

base_model = tf.keras.applications.MobileNetV2(input_shape=IMG_SHAPE,
                                               include_top=False,
                                               weights='imagenet')

偶然间把'imagenet'改成了None,跑起来了,但效果不好,

先这样,有更好的办法

再更新

 类似资料: