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

AttributeError: 'tuple' object has no attribute 'to' #21

Closed
hanzhy-code opened this issue Jun 2, 2021 · 5 comments
Closed

AttributeError: 'tuple' object has no attribute 'to' #21

hanzhy-code opened this issue Jun 2, 2021 · 5 comments
Assignees
Labels
bug Something isn't working lane detection

Comments

@hanzhy-code
Copy link

when I use the argument(val-num-steps), the error occurred(AttributeError: 'tuple' object has no attribute 'to').
The full command is as follow:
python main_landec.py --epochs=50 --lr=0.2 --batch-size=4 --dataset=tusimple --method=baseline --backbone=erfnet --mixed-precision --exp-name=111 --val-num-steps=2

I'd like to make sure if it should change 'image_set='val' ' to 'image_set='valfast'' in 178 line in all_utils_landec.py.

@voldemortX voldemortX added lane detection bug Something isn't working labels Jun 2, 2021
@voldemortX
Copy link
Owner

@hanzhy-code It is indeed a bug, the script is reproduceable. I'll investigate how did this happen.

@voldemortX
Copy link
Owner

voldemortX commented Jun 2, 2021

I'd like to make sure if it should change 'image_set='val' ' to 'image_set='valfast'' in 178 line in all_utils_landec.py.

Yes, this should be the right fix. I've updated the code.
The reason for this bug is probably because when I differentiated val and valfast, I forgot to change this line of code.

p.s. Thanks a lot for finding this bug!

@voldemortX voldemortX reopened this Jun 2, 2021
@voldemortX voldemortX self-assigned this Jun 2, 2021
@hanzhy-code
Copy link
Author

@voldemortX Thank you for your reply. Your work is great. I've learned a lot from it

@voldemortX
Copy link
Owner

You're welcome! I'm closing this issue since the bug is fixed.

A side note, I don't think --val-num-steps=2 is realistic, since it is step, not epoch.

@hanzhy-code
Copy link
Author

Yes, I just for testing the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lane detection
Projects
None yet
Development

No branches or pull requests

2 participants