-
Notifications
You must be signed in to change notification settings - Fork 170
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
train failed when EMA mode is off #42
Comments
dear author, could you kindly show results that did not use EMA for testing? |
same question here. Considering the long training time, I wanna know did you finish the training for the fixed version? |
It's late, but I'll check. |
I met exactly the same thing: on the second epoch, the loss becomes |
yes, I met the same thing too. If test the model, the loss will be nan when ema is closed.However, the loss is normal without test step. |
I found that this is because the model.train() did not open again when evaluation ends.
solution: just move mode.train() to the epoch loop:
for epoch in range(args.start_epoch, args.epochs):
->
for epoch in range(args.start_epoch, args.epochs):
The text was updated successfully, but these errors were encountered: