nlpyang / PreSumm

code for EMNLP 2019 paper Text Summarization with Pretrained Encoders
MIT License
1.29k stars 465 forks source link

No such file or directory: '/gel/usr/my_username/BertSumExt/PreSum/logs/ext_bert_cnndm_step100.candidate' #220

Closed ghost closed 3 years ago

ghost commented 3 years ago

I am getting the following error with the command line : cd /gel/usr/my_username/BertSumExt/PreSumm ; /usr/bin/env /gel/usr/my_username/BertSumExt/bertsumext_env/bin/python /home-local/jegau175.nobkp/.vscode-server/extensions/ms-python.python-2021.7.1060902895/pythonFiles/lib/python/debugpy/launcher 46617 -- ~/BertSumExt/PreSumm/src/train.py -task ext -mode validate -batch_size 3000 -test_batch_size 500 -bert_data_path ~/BertSumExt/PreSumm/bert_data/ -log_file ~/BertSumExt/PreSumm/logs/val_ext_bert_cnndm -model_path MODEL_PATH -sep_optim true -use_interval true -visible_gpus 1 -max_pos 512 -max_length 200 -alpha 0.95 -min_length 50 -result_path ~/BertSumExt/PreSum/logs/ext_bert_cnndm -test_all

[Errno 2] No such file or directory: '/gel/usr/my_username/BertSumExt/PreSum/logs/ext_bert_cnndm_step100.candidate'
  File "/gel/usr/my_username/BertSumExt/PreSumm/src/models/trainer_ext.py", line 230, in test
    with open(can_path, 'w') as save_pred:
  File "/gel/usr/my_username/BertSumExt/PreSumm/src/train_extractive.py", line 197, in test_ext
    trainer.test(test_iter, step)
  File "/gel/usr/my_username/BertSumExt/PreSumm/src/train_extractive.py", line 123, in validate_ext
    test_ext(args, device_id, cp, step)
  File "/gel/usr/my_username/BertSumExt/PreSumm/src/train.py", line 148, in <module>
    validate_ext(args, device_id)

Can you explain why I got that error?