Comments (4)
Hi! Thank you for your work that has contributed so much. I always encounter this problem when I repeat. When I resume, the problem "Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!" appears. How can I solve it?
With best wishes!
Could you please provide more details about this error, e.g. which script arises this error.
from iagnet.
Thank you for your reply. The error occurred in train.py. I used the ‘-- resume’ command to load the trained best_seen.pt model without modifying any code, resulting in an error of "Expected all tensors to be on the same device, but found at least two devices, cuda: 0 and CPU!".
from iagnet.
Thank you for your reply. The error occurred in train.py. I used the ‘-- resume’ command to load the trained best_seen.pt model without modifying any code, resulting in an error of "Expected all tensors to be on the same device, but found at least two devices, cuda: 0 and CPU!".
If using --resume, you should put line83 "model = model.to(device)" before loading model parameters (.pt).
from iagnet.
Thanks, it worked!
from iagnet.
Related Issues (7)
- Can you share the pretrained model? HOT 1
- How can the reflectance of a 3D object be turned off during visualization in the rend_point.py script? HOT 2
- About the dataset HOT 4
- Training lack the 'resnet18.pth' HOT 2
- could you offer the code of getting the" B = {Bsub, Bobj }"? HOT 4
- About the Dataset Annotation of 3D objects HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iagnet.