KEQA_WSDM19 icon indicating copy to clipboard operation
KEQA_WSDM19 copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: 'preprocess/dete_best_model.pt'

Open gaoxing153 opened this issue 4 years ago • 3 comments

image显示缺少文件,请问这个问题应该如何解决

gaoxing153 avatar Nov 17 '20 02:11 gaoxing153

Hi,

I met this issue too. Could you help me, please?

forrestliao avatar Nov 17 '20 09:11 forrestliao

You need to finish the training before performing testing.

Wait the training as follows to finish. python3.6 train_detection.py --entity_detection_mode LSTM --fix_embed --gpu 0 python3.6 train_entity.py --qa_mode GRU --fix_embed --gpu 0 python3.6 train_pred.py --qa_mode GRU --fix_embed --gpu 0

Then, we could conduct the test. python3.6 test_main.py --gpu 0

We have explained this. "We have to run train_detection.py, train_entity.py, train_pred.py first, before running test_main.py..."

xhuang31 avatar Nov 17 '20 09:11 xhuang31

Thank you. I reinstalled torch and resolved this issue. The reason is my torch version can't support CUDA 10.2, so I can't run the GPU mode training.

forrestliao avatar Nov 24 '20 01:11 forrestliao