-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
type object got multiple values for keyword argument 'loss' #3756
Comments
I believe TrainResult always shows the value passed to the |
That's true but I think the problem is the error's message. As I said, a user may not realise why the error appears since they created just one log The only idea that I have would be to remove showing |
Thank you for your feedback. Lightning believes almost all of users may want to show the training loss in the progress bar to be able to check/iterate the model quickly (like in the situation of overfitting the small batch) without the need to use loggers or something extra, so it is done by default and let the users use NOTE: |
Got it. I'll close the issue. It'll be for other's people reference if they have the same problem. |
🐛 Bug
The error appears when TrainReport has minimize param set and loss log added at the same time with prog_bar=True
Code sample
Where the problem is
I followed the code and it comes to the problem with the ProgressBar callback inside progress.py line 339 -> trainer.py line 884 (return dict(**ref_model.get_progress_bar_dict(), **self.progress_bar_metrics)) which returns
Expected behavior
Not sure. At least the error message should be a bit clearer since a user does not create two loss logs but just one.
Environment
The text was updated successfully, but these errors were encountered: