We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Did you already ask in the discord?
Yes/No
You verified that this is a bug and not a feature request or question by asking in the discord?
The text was updated successfully, but these errors were encountered:
The loss_dict is in the run method of class BaseSDTrainProcess in the file jobs/process/BaseSDTrainProcess.py:
loss_dict
run
BaseSDTrainProcess
jobs/process/BaseSDTrainProcess.py
# flush() ### HOOK ### loss_dict = self.hook_train_loop(batch_list)
You can declare a global list and record the loss history:
... loss_history = [] # global variable ... # flush() ### HOOK ### loss_dict = self.hook_train_loop(batch_list) loss_history.append(loss_dict['loss']) ... ################################################################### ## END TRAIN LOOP ################################################################### plt.figure(figsize=(8, 4)) plt.plot(loss_history, marker='o', linestyle='-', label='Data') plt.title('Line Chart of Float List') plt.xlabel('step') plt.ylabel('loss') plt.grid(True) plt.legend() plt.savefig('loss.png') self.progress_bar.close() ...
Sorry, something went wrong.
No branches or pull requests
This is for bugs only
Did you already ask in the discord?
Yes/No
You verified that this is a bug and not a feature request or question by asking in the discord?
Yes/No
Describe the bug
The text was updated successfully, but these errors were encountered: