Skip to content
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.py running error #6

Closed
lapetite123 opened this issue May 4, 2018 · 3 comments
Closed

train.py running error #6

lapetite123 opened this issue May 4, 2018 · 3 comments

Comments

@lapetite123
Copy link

hi, thanks for your work.
when i run train.py, the error occurs : file"train.py",line 375,in main
loss_seg_value+=loss_seg.data.cpu( ).numpy()[0]/args.ier_size
indexError: too many indices fro array

i don't know how to solve it ,please help me

@John1231983
Copy link

this error comes from 0.4. to fix it, delete all [0] in train.py

@hfslyc
Copy link
Owner

hfslyc commented May 4, 2018

thanks @John1231983 . This repo was developed under Pytorch 0.2/0.3. We will update the code to support Pytorch 0.4.

@hfslyc hfslyc closed this as completed May 6, 2018
@lapetite123
Copy link
Author

thank you very much! I have solved it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants