You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to fine tune the existing model(u2net). I understand that we can resume the training simply as discussed in this issue. #33
if(model_name=='u2net'):
net = U2NET(3, 1)
elif(model_name=='u2netp'):
net = U2NETP(3,1)
net.load_state_dict(torch.load(saved_model_dir))
if torch.cuda.is_available():
net.cuda()
In addition, to resume the training from where exactly it was, one usually needs to save and load the optimizer (especially for Adam)
So my question is In addition to weights, how can I load the optimizer state as well ?
The text was updated successfully, but these errors were encountered:
Hi @Nathanua
I want to fine tune the existing model(u2net). I understand that we can resume the training simply as discussed in this issue.
#33
In addition, to resume the training from where exactly it was, one usually needs to save and load the optimizer (especially for Adam)
So my question is In addition to weights, how can I load the optimizer state as well ?
The text was updated successfully, but these errors were encountered: