nnsum icon indicating copy to clipboard operation
nnsum copied to clipboard

ERROR:ignite.engine.engine.Engine:Engine run is terminating due to exception: 'rouge'.

Open MousaMohammed opened this issue 4 years ago • 2 comments

Hi, @kedz Getting the following error, I am trying with reddit data for "train the CNN encoder with Seq2Seq extractor on gpu 0"

ERROR:ignite.engine.engine.Engine:Engine run is terminating due to exception: 'rouge'. Traceback (most recent call last): File "/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/nnsum-master/script_bin/train_model.py", line 81, in main() File "/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/nnsum-master/script_bin/train_model.py", line 78, in main results_path=args["trainer"]["results"]) File "/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/nnsum-master/nnsum/trainer/labels_mle_trainer.py", line 164, in labels_mle_trainer trainer.run(train_dataloader, max_epochs=max_epochs) File "/usr/local/lib/python3.6/dist-packages/ignite/engine/engine.py", line 658, in run return self._internal_run() File "/usr/local/lib/python3.6/dist-packages/ignite/engine/engine.py", line 729, in _internal_run self._handle_exception(e) File "/usr/local/lib/python3.6/dist-packages/ignite/engine/engine.py", line 437, in _handle_exception raise e File "/usr/local/lib/python3.6/dist-packages/ignite/engine/engine.py", line 704, in _internal_run self._fire_event(Events.EPOCH_COMPLETED) File "/usr/local/lib/python3.6/dist-packages/ignite/engine/engine.py", line 393, in _fire_event func(*first, *(event_args + others), **kwargs) File "/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/nnsum-master/nnsum/trainer/labels_mle_trainer.py", line 115, in log_validation_results if valid_metrics["rouge"]["rouge-1"] > trainer.state.max_valid_rouge1: KeyError: 'rouge'

MousaMohammed avatar Sep 16 '20 02:09 MousaMohammed

Hi! Can you send me the exact command you ran that gave you this error?

Thanks! Chris

On Tue, Sep 15, 2020 at 10:54 PM MousaMohammed [email protected] wrote:

Hi, @kedz https://github.com/kedz Getting the following error, I am trying with reddit data for "train the CNN encoder with Seq2Seq extractor on gpu 0"

ERROR:ignite.engine.engine.Engine:Engine run is terminating due to exception: 'rouge'. Traceback (most recent call last): File "/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/nnsum-master/script_bin/train_model.py", line 81, in main() File "/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/nnsum-master/script_bin/train_model.py", line 78, in main results_path=args["trainer"]["results"]) File "/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/nnsum-master/nnsum/trainer/labels_mle_trainer.py", line 164, in labels_mle_trainer trainer.run(train_dataloader, max_epochs=max_epochs) File "/usr/local/lib/python3.6/dist-packages/ignite/engine/engine.py", line 658, in run return self._internal_run() File "/usr/local/lib/python3.6/dist-packages/ignite/engine/engine.py", line 729, in _internal_run self._handle_exception(e) File "/usr/local/lib/python3.6/dist-packages/ignite/engine/engine.py", line 437, in _handle_exception raise e File "/usr/local/lib/python3.6/dist-packages/ignite/engine/engine.py", line 704, in _internal_run self._fire_event(Events.EPOCH_COMPLETED) File "/usr/local/lib/python3.6/dist-packages/ignite/engine/engine.py", line 393, in _fire_event func(*first, *(event_args + others), **kwargs) File "/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/nnsum-master/nnsum/trainer/labels_mle_trainer.py", line 115, in log_validation_results if valid_metrics["rouge"]["rouge-1"] > trainer.state.max_valid_rouge1: KeyError: 'rouge'

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kedz/nnsum/issues/15, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAZOM3QFMLBOV35LKGK7TLSGASH7ANCNFSM4RODTZYQ .

-- Chris Kedzie PhD Student, Dept. of Computer Science Columbia University Pronouns: he/him/his web: www.cs.columbia.edu/~kedzie

kedz avatar Sep 16 '20 04:09 kedz

Hi! Can you send me the exact command you ran that gave you this error? Thanks! Chris On Tue, Sep 15, 2020 at 10:54 PM MousaMohammed @.***> wrote: Hi, @kedz https://github.com/kedz Getting the following error, I am trying with reddit data for "train the CNN encoder with Seq2Seq extractor on gpu 0" ERROR:ignite.engine.engine.Engine:Engine run is terminating due to exception: 'rouge'. Traceback (most recent call last): File "/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/nnsum-master/script_bin/train_model.py", line 81, in main() File "/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/nnsum-master/script_bin/train_model.py", line 78, in main results_path=args["trainer"]["results"]) File "/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/nnsum-master/nnsum/trainer/labels_mle_trainer.py", line 164, in labels_mle_trainer trainer.run(train_dataloader, max_epochs=max_epochs) File "/usr/local/lib/python3.6/dist-packages/ignite/engine/engine.py", line 658, in run return self._internal_run() File "/usr/local/lib/python3.6/dist-packages/ignite/engine/engine.py", line 729, in _internal_run self._handle_exception(e) File "/usr/local/lib/python3.6/dist-packages/ignite/engine/engine.py", line 437, in _handle_exception raise e File "/usr/local/lib/python3.6/dist-packages/ignite/engine/engine.py", line 704, in _internal_run self._fire_event(Events.EPOCH_COMPLETED) File "/usr/local/lib/python3.6/dist-packages/ignite/engine/engine.py", line 393, in _fire_event func(*first, *(event_args + others), **kwargs) File "/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/nnsum-master/nnsum/trainer/labels_mle_trainer.py", line 115, in log_validation_results if valid_metrics["rouge"]["rouge-1"] > trainer.state.max_valid_rouge1: KeyError: 'rouge' — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#15>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAZOM3QFMLBOV35LKGK7TLSGASH7ANCNFSM4RODTZYQ . -- Chris Kedzie PhD Student, Dept. of Computer Science Columbia University Pronouns: he/him/his web: www.cs.columbia.edu/~kedzie

This is the command, @kedz " !python '/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/nnsum-master/script_bin/train_model.py'
--trainer --train-inputs '/content/data/reddit/inputs/train'
--train-labels '/content/data/reddit/ext_labels/train'
--valid-inputs '/content/data/reddit/inputs/valid'
--valid-labels '/content/data/reddit/ext_labels/valid'
--valid-refs '/content/data/reddit/human-extracts/valid'
--weighted
--gpu 0
--model '/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/nnsum-master/model'
--results '/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/nnsum-master/val_score'
--seed 12345678
--emb --pretrained-embeddings '/content/drive/My Drive/Colab Notebooks/SummaRuNNer-implem/glove.6B.200d.txt'
--enc cnn
--ext s2s --bidirectional "

MousaMohammed avatar Sep 16 '20 07:09 MousaMohammed