PaddleHub 没有这样的文件或目录:'model/my_model/round9/model-0/'

nom7f22z  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(95)

在运行run_autofinetune.sh脚本时,前面的步骤都能成功,但到了后面就报错。有人知道是什么问题吗?

错误信息如下:

The final best eval score is 0.0.
The final best model parameters are saved as model/my_model/best_model .
Traceback (most recent call last):
File "/root/miniconda3/envs/py37/bin/hub", line 8, in 
sys.exit(main())
File "/root/miniconda3/envs/py37/lib/python3.7/site-packages/paddlehub/commands/hub.py", line 64, in main
command.execute(argv[1:])
File "/root/miniconda3/envs/py37/lib/python3.7/site-packages/paddlehub/commands/hub.py", line 51, in execute
return command.execute(argv[1:])
File "/root/miniconda3/envs/py37/lib/python3.7/site-packages/paddlehub/commands/autofinetune.py", line 210, in execute
shutil.copytree(best_hparams_dir, best_model_dir)
File "/root/miniconda3/envs/py37/lib/python3.7/shutil.py", line 318, in copytree
names = os.listdir(src)
FileNotFoundError: [Errno 2] No such file or directory: 'model/my_model/round9/model-0/'
ycl3bljg

ycl3bljg1#

这个路径不存在,是不是模型地址给错了,具体是哪个模型出现了这个问题呢?

相关问题