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

Pytorch Error with Preinstalled Ubuntu Image #10

Open
Joshua-Breedy opened this issue Mar 1, 2019 · 2 comments
Open

Pytorch Error with Preinstalled Ubuntu Image #10

Joshua-Breedy opened this issue Mar 1, 2019 · 2 comments
Labels

Comments

@Joshua-Breedy
Copy link

Hello!
First off, thank you for sharing such an amazing resource for others to replicate. I saw your racing robot project featured on Medium and I want to replicate it for my own end-of-year project.

Currently, my team and I are stuck on an error that occurs when we try to run the main.py file. We used the preinstalled image that you provided but we noticed that the project had been updated, so we updated the project folder in the image as well. When we attempt to run it however, we receive this:

Attribute Error: ‘module’ object has no attribute ‘_rebuild_tensor_v2’

When we did more digging we realized it was a pytorch error. My question is do you know how to resolve the issue via pytorch update or is a new image required?

Our hardware is:

  • A Raspberry Pi Model B+
    -A Pi Camera
    -Elegoo Smart Robot Car Kit v3.0
@araffin
Copy link
Collaborator

araffin commented Mar 1, 2019

Attribute Error: ‘module’ object has no attribute ‘_rebuild_tensor_v2’

This image is maybe a bit old now. Can you check which version of pytorch is installed ?

Apparently, this is because the saved model was trained with an older version of pytorch. See issue in the pytorch forum.
So a way to fix it is to retrain a model with a newer version of pytorch.

@araffin araffin added the bug label Mar 1, 2019
@Joshua-Breedy
Copy link
Author

I checked the pytorch version and it came out as:
0.4.0a0+b23fa21

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

No branches or pull requests

2 participants