Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in trainer.fit in pytorch-lightning #1

Open
zeinabbo opened this issue Apr 18, 2022 · 0 comments
Open

error in trainer.fit in pytorch-lightning #1

zeinabbo opened this issue Apr 18, 2022 · 0 comments

Comments

@zeinabbo
Copy link

zeinabbo commented Apr 18, 2022

I have the following error in the running the command:
CUDA_VISIBLE_DEVICES=0 python train.py --task_type DST --CL EWC --reg 0.01 --n_epochs 1

File "train.py", line 221, in
train(hyperparams)
File "train.py", line 121, in train
trainer.fit(model, task_loader, val_loader[task_id])
..
..
..

File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/utilities/apply_func.py", line 99, in apply_to_collection
return function(data, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/core/lightning.py", line 512, in __check_allowed
raise ValueError(f"self.log({name}, {value}) was called, but {type(v).__name__} values cannot be logged")
ValueError: self.log(val_loss, loss) was called, but str values cannot be logged raise ValueError(f"self.log({name}, {value}) was called, but {type(v).__name__} values cannot be logged")
ValueError: self.log(val_loss, loss) was called, but str values cannot be logged

@zeinabbo zeinabbo changed the title error in pytorch-lightning error in trainer.fit in pytorch-lightning Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant