Coder Social home page Coder Social logo

Comments (3)

alexmlamb avatar alexmlamb commented on May 12, 2024

from manifold_mixup.

alexmlamb avatar alexmlamb commented on May 12, 2024

What's the exact command that you're running and can you give the outputs?

I just got it to run with:

python == 2.7.13
numpy == 1.14.5
pytorch == 0.4.0
torchvision == 0.2.1

Perhaps the numpy version is the issue?

Before line 216, lam should look like:
tensor([ 0.8576], device='cuda:0')

and after line 216 it should just be a float like:

0.857638716698

from manifold_mixup.

gtcslance avatar gtcslance commented on May 12, 2024

I figured out I'm having this error as I have 2 gpus, everything is fine now by adding the following line to main_mixup_hidden_ssl.py

os.environ["CUDA_VISIBLE_DEVICES"]="0"

from manifold_mixup.

Related Issues (16)

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.