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
There was a bug when I continued to train the model. RuntimeError: Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #4 'other'
#45
Open
smileSJin opened this issue
Sep 2, 2019
· 1 comment
when i try to resume to train the model :
RuntimeError: Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #4 'other'
The text was updated successfully, but these errors were encountered:
I have sloved it,
add this:
if args.cuda:
FPN.cuda()
before the code(about line 290):
if args.resume:
load_name = os.path.join(output_dir,
'fpn_{}{}{}.pth'.format(args.checksession, args.checkepoch, args.checkpoint))
when i try to resume to train the model :
RuntimeError: Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #4 'other'
The text was updated successfully, but these errors were encountered: