XDhmy 2022-11-15 10:22 采纳率: 0%
浏览 2

模型预测过程报错求解答!!

在用predict函数时,出现下图报错,求解答
20221115_10:17:49 20221115_02:17:49 loading model rb_resnet50: 5b96af9c0354c9000b0aea36_ResNet50_20181207_154224
20221115_10:17:50 20221115_02:17:50 loading model rb_densenet121: 5b96af9c0354c9000b0aea36_densenet121_20181214_043052
20221115_10:17:53 20221115_02:17:53 loading model sl_vgg6: 5b99b2c6aec3c500103a14de_VGG6_20181207_182618
20221115_10:17:53 20221115_02:17:53 loading model sl_resnet50: 5b99b2c6aec3c500103a14de_ResNet50_20181207_184230
20221115_10:17:54 20221115_02:17:54 loading model sl_densenet121: 5b99b2c6aec3c500103a14de_densenet121_20181214_082408
20221115_10:17:56 20221115_02:17:56 loading model kd_vgg6: 5be0ae7958830a0018821794_VGG6_20190210_011644
20221115_10:17:56 20221115_02:17:56 loading model kd_resnet50: 5be0ae7958830a0018821794_ResNet50_20190210_025342
20221115_10:17:57 20221115_02:17:57 loading model kd_densenet121: 5be0ae7958830a0018821794_densenet121_20190212_235928
20221115_10:18:00 20221115_02:18:00 model is ready, loading img...
20221115_10:18:00 20221115_02:18:00 image is ready, loading predict...
Traceback (most recent call last):
  File "test_v2.py", line 155, in <module>
    scores[model] = models[model].predict(images, steps=num_batches)
  File "F:\anaconda\envs\tensorflow\lib\site-packages\keras\utils\traceback_utils.py", line 70, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "F:\anaconda\envs\tensorflow\lib\site-packages\keras\engine\data_adapter.py", line 935, in _peek_and_restore
    peek = next(x)
StopIteration

  • 写回答

1条回答

      报告相同问题?

      相关推荐 更多相似问题

      问题事件

      • 创建了问题 11月15日

      悬赏问题

      • ¥15 mongodb 如何使用$lookup 连接3表查询
      • ¥15 看一个晶振的说明书,有一些疑问
      • ¥100 用YOLOv5检测胸部肿瘤之前处理步骤
      • ¥15 关于H.265中查表估算编码比特数的相关问题
      • ¥15 关于#AC正确率#的问题,如何解决?
      • ¥30 pyinstaller后不执行print且不能退出
      • ¥15 IncredBuild报错
      • ¥15 锂电池偏最小二乘法参数辩识
      • ¥15 session失效问题
      • ¥15 GMS地下水数值模拟无法打开