DeepKE icon indicating copy to clipboard operation
DeepKE copied to clipboard

RE:predict.py error:

Open yyl424525 opened this issue 4 years ago • 1 comments

RE:predict.py error: raceback (most recent call last): File "predict.py", line 119, in main model.load(cfg.fp, device=device) ..................... FileNotFoundError: [Errno 2] No such file or directory: 'xxx/checkpoints/2019-12-03_17-35-30/cnn_epoch21.pth'

yyl424525 avatar Jul 06 '22 06:07 yyl424525

你需要修改conf文件夹predict.yaml中的fp参数,为本地训练好所能使用的模型路径

tlk1997 avatar Jul 06 '22 06:07 tlk1997