-
Notifications
You must be signed in to change notification settings - Fork 98
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
Problem about stitching/branch_train.py. #33
Comments
Could be because of this - hunkim/PyTorchZeroToAll#24 |
thank you! There is another question to ask. In DREAM/src/stitching/branch_train.py Line 51 in 7bea01e
The output of MSEloss is a scalar,why a scalar have '.size()'? And i am confused about the function 'AverageMeter' which is in ( DREAM/src/stitching/branch_train.py Line 118 in 7bea01e
what's the meaning of 'n' in AverageMeter.update? |
Thanks for asking, |
@SpiritBear000 |
At [https://github.com/penincillin/DREAM/blob/7bea01e5b108546a2b3a809ad17cf478607c9db5/src/stitching/branch_train.py#L52]
when i run this code, i get this error:
Traceback (most recent call last):
File "/media/lab210/Work/WH_HOME/SubjectDownload/Project/Face-reid/[ DREAM-Face ]/DREAM/src/stitching/branch_train.py", line 134, in
main()
File "/media/lab210/Work/WH_HOME/SubjectDownload/Project/Face-reid/[ DREAM-Face ]/DREAM/src/stitching/branch_train.py", line 52, in main
losses.update(loss.data[0], loss.size(0))
RuntimeError: dimension specified as 0 but tensor has no dimensions
when i replace 'loss' to 'loss.size(0)'. the code can run. is it a bug when you design your code?
The text was updated successfully, but these errors were encountered: