Giter Club home page Giter Club logo

distancegan's People

Contributors

sagiebenaim avatar temerick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

distancegan's Issues

distance function in mnist_to_svhn solver

Hi, I think you have a small bug in the mnist_to_svhn/solver (line 94)

def distance(self, A, B): return torch.abs(torch.mean(A) - torch.mean(B))

should be

def distance(self, A, B): return torch.mean(torch.abs(A - B))

CycleGan architecture code not CUDA enabled

I am trying to run my own data using the train.py file which uses the cyclegan architecture. I am trying to run it on a GPU and all libraries are of the same version as you have mentioned. Despite which, I get the following error:
AssertionError: Torch not compiled with CUDA enabled

The command I am running is:
python train.py --dataroot my_data --name exp_1 --model distance_gan --loadSize 128 --fineSize 128 --batchSize 6 --norm instance --A_to_B --nThreads 12 --gpu_ids 0,2

But when I run it with gpu_ids as -1:
python train.py --dataroot my_data --name exp_1 --model distance_gan --loadSize 128 --fineSize 128 --batchSize 6 --norm instance --A_to_B --nThreads 12 --gpu_ids -1
It starts running.

Seems the code was not made for running on GPU??

can it works on cpu..

(/home/hadoop/anaconda2) hadoop@hadoop:~/GAN/DistanceGAN-master$ python ./discogan_arch/distance_gan_model.py --task_name='celebA' --style_A='Eyeglasses' --constraint='Male' --constraint_type=1
Traceback (most recent call last):
File "./discogan_arch/distance_gan_model.py", line 332, in
model.run()
File "./discogan_arch/distance_gan_model.py", line 173, in run
self.initialize()
File "/home/hadoop/GAN/DistanceGAN-master/discogan_arch/disco_gan_model.py", line 142, in initialize
self.test_A = self.test_A.cuda()
File "/home/hadoop/anaconda2/lib/python2.7/site-packages/torch/autograd/variable.py", line 243, in cuda
return CudaTransfer(device_id, async)(self)
File "/home/hadoop/anaconda2/lib/python2.7/site-packages/torch/autograd/_functions/tensor.py", line 160, in forward
return i.cuda(async=self.async)
File "/home/hadoop/anaconda2/lib/python2.7/site-packages/torch/_utils.py", line 65, in cuda
return new_type(self.size()).copy
(self, async)
File "/home/hadoop/anaconda2/lib/python2.7/site-packages/torch/cuda/init.py", line 272, in new
_lazy_init()
File "/home/hadoop/anaconda2/lib/python2.7/site-packages/torch/cuda/init.py", line 84, in _lazy_init
_check_driver()
File "/home/hadoop/anaconda2/lib/python2.7/site-packages/torch/cuda/init.py", line 58, in _check_driver
http://www.nvidia.com/Download/index.aspx""")
AssertionError:
Found no NVIDIA driver on your system. Please check that you
have an NVIDIA GPU and installed a driver from
http://www.nvidia.com/Download/index.aspx



i was tried this code on cpu and got the above issue.. Is it possible to run on cpu??
can you suggest me requirement of hardware components and changes required for code from gpu to cpu......

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.