Giter VIP home page Giter VIP logo

which pytorch version did you use to train this model? i am trying to do torch. load on my CPU but even after i give map_location cpu, it still gives pytorch not compiled for CUDA enabled assertion error about pytorch-vgg-cifar10 HOT 6 CLOSED

chengyangfu avatar chengyangfu commented on July 19, 2024
which pytorch version did you use to train this model? i am trying to do torch. load on my CPU but even after i give map_location cpu, it still gives pytorch not compiled for CUDA enabled assertion error

from pytorch-vgg-cifar10.

Comments (6)

chengyangfu avatar chengyangfu commented on July 19, 2024 1

Okay. The problem is caused because there is no gpu in your environment.
If you have the GPU in the machine, make sure setting the CUDA_VISIBLE_DEVICE properly before running the code.
I add the support to run the code in CPU mode. You can add --cpu and see the instructions in README. But Keep in mind, cpus are not efficient for training.

from pytorch-vgg-cifar10.

chengyangfu avatar chengyangfu commented on July 19, 2024

Hi @Adnan-annan,
Which PyTorch version you are using now?
This code was implemented 1~2 years ago. I cannot remember all the details. It should be PyTorch 0.3 or 0.4. Due to the dramatical updates in PyTorch 1.0.0, there is a high chance you may need to modify some parts to make it work.

from pytorch-vgg-cifar10.

chengyangfu avatar chengyangfu commented on July 19, 2024

updated the code. It works with my PyTorch 1.0.0. now. Let me know if it still causes any problem.

from pytorch-vgg-cifar10.

Adnan-annan avatar Adnan-annan commented on July 19, 2024

Thanks for your reply, i want to use the trained model and use it for my own research, i am using cpu at the moment, so i would like to just run the trained model in my cpu first and later i will fine tune it for my own purpose. but it not loading your trained model on my cpu, may be the problem is pytorch version mismatch.

from pytorch-vgg-cifar10.

Adnan-annan avatar Adnan-annan commented on July 19, 2024

unfortunately wget http://www.cs.unc.edu/~cyfu/cifar10/model_bes_cpu.pth.tar is not working,,, it gives ERROR 404: Not Found. error :(

from pytorch-vgg-cifar10.

Adnan-annan avatar Adnan-annan commented on July 19, 2024

oh it should be wget http://www.cs.unc.edu/~cyfu/cifar10/model_best_cpu.pth.tar . It works now

from pytorch-vgg-cifar10.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.