Giter Site home page Giter Site logo

Version of Pytorch used. about vae-cvae-mnist HOT 8 CLOSED

timbmg avatar timbmg commented on May 30, 2024
Version of Pytorch used.

from vae-cvae-mnist.

Comments (8)

timbmg avatar timbmg commented on May 30, 2024

Should be 0.3.1

from vae-cvae-mnist.

Supritam0411 avatar Supritam0411 commented on May 30, 2024

Thanks!

from vae-cvae-mnist.

Supritam0411 avatar Supritam0411 commented on May 30, 2024

@timbmg as suggested I have used pytorch 0.3.1 with cuda 8.0:

pytorch 0.3.1 py36_cuda8.0.61_cudnn7.1.2_3 pytorch

It would be really helpful if you could share your environment you used to build the code as I am still facing some errors because of python version
The current issue is:

AttributeError: Can't get attribute '_rebuild_tensor_v2' on <module 'torch._utils' from '/home/somabiswas/anaconda3/envs/CVAE_pytorch/lib/python3.6/site-packages/torch/_utils.py'>

This issue is similar to https://discuss.pytorch.org/t/question-about-rebuild-tensor-v2/14560

from vae-cvae-mnist.

timbmg avatar timbmg commented on May 30, 2024

Could you share the full error track?

from vae-cvae-mnist.

Supritam0411 avatar Supritam0411 commented on May 30, 2024

When I run "python train.py --conditional" I get this error:

/home/somabiswas/anaconda3/envs/CVAE_pytorch/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
return f(*args, **kwds)
Traceback (most recent call last):
File "train.py", line 143, in
main(args)
File "train.py", line 33, in main
datasets['train'] = MNIST(root='data', train=True, transform=transforms.ToTensor(), download=True)
File "/home/somabiswas/anaconda3/envs/CVAE_pytorch/lib/python3.6/site-packages/torchvision/datasets/mnist.py", line 54, in init
os.path.join(self.root, self.processed_folder, self.training_file))
File "/home/somabiswas/anaconda3/envs/CVAE_pytorch/lib/python3.6/site-packages/torch/serialization.py", line 267, in load
return _load(f, map_location, pickle_module)
File "/home/somabiswas/anaconda3/envs/CVAE_pytorch/lib/python3.6/site-packages/torch/serialization.py", line 420, in _load
result = unpickler.load()
AttributeError: Can't get attribute '_rebuild_tensor_v2' on <module 'torch._utils' from '/home/somabiswas/anaconda3/envs/CVAE_pytorch/lib/python3.6/site-packages/torch/_utils.py'>

from vae-cvae-mnist.

timbmg avatar timbmg commented on May 30, 2024

I see, so its actually coming from torchvision. What version are you using? Maybe I can recreate. Also, are you certain you're executing pytorch 0.3.1? Because _rebuild_tensor_v2 did not exist in that version (see here: https://github.com/pytorch/pytorch/blob/v0.3.1/torch/_utils.py).

from vae-cvae-mnist.

mitkina avatar mitkina commented on May 30, 2024

Hello,

I have the same error! What version of torchvision should we be using? I have pytorch 0.3.1.

Thanks!

from vae-cvae-mnist.

timbmg avatar timbmg commented on May 30, 2024

I just updated some stuff to new pytorch v1 and also added requirements.txt. Hope this helps! Let me know if you run into any problems!

from vae-cvae-mnist.

Related Issues (5)

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.