Giter Site home page Giter Site logo

Comments (3)

anguyen8 avatar anguyen8 commented on July 19, 2024

@thommiano : I suspect there is an issue with your Caffe. Does this Caffe work for you in other applications (e.g. classifying images)?

If yes, can you report the error when running ipython --pdb -- sampling_class.py instead of currently python sampling_class.py?

from ppgn.

jakeelwes avatar jakeelwes commented on July 19, 2024

I'm getting the same error - with ipython --pdb -- sampling_class.py I got Check failed: error == cudaSuccess (10 vs. 0) invalid device ordinal

So setting caffe.set_device(1) in sampling_class.py to caffe.set_device(0) fixed it for me (as I have 1 GPU)

from ppgn.

thommiano avatar thommiano commented on July 19, 2024

@jakeelwes Thanks for the recommendation! @anguyen8

What ended up working for me was correctly setting the file path and then using ./1_class_conditional_sampling.sh 13 rather than sh 1_class_conditional_sampling.sh 13. In my sampling_class.py file, it is currently commented out as #caffe.set_device(1).

from ppgn.

Related Issues (13)

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.