junyanz / iGAN

Interactive Image Generation via Generative Adversarial Networks
MIT License
3.97k stars 587 forks source link

TypeError: CudaNdarrayType only supports dtype float32 for now. Tried using dtype float64 for variable None #11

Open camdirigo opened 7 years ago

camdirigo commented 7 years ago

I am running iGAN_main.py on Windows 10 with an NVIDIA GeForce GTX 980 with the following command

python iGAN_main.py --model_name outdoor_64

and have added the following lines to iGAN_main.py import os os.environ["THEANO_FLAGS"] = "device=gpu, floatX=float32, nvcc.fastmath=True"

and I receive the following error TypeError: CudaNdarrayType only supports dtype float32 for now. Tried using dtype float64 for variable None

I have also added these THEANO_FLAGS to the .theanorc file and still receive this error. I have upgraded Theano to 0.9. Can someone please help me with this issue? I am happy to provide whatever further information is needed to solve this issue.

junyanz commented 7 years ago

Have you tried the command suggested by README THEANO_FLAGS='device=gpu0, floatX=float32, nvcc.fastmath=True' python iGAN_main.py --model_name outdoor_64

linpianshang commented 7 years ago

i have the same problem with camdirigo. when run THEANO_FLAGS='device=gpu0, floatX=float32, nvcc.fastmath=True' python iGAN_main.py --model_name outdoor_64
in the terminal . then i recevive the following error 'THEANO_FLAGS' 不是内部或外部命令,也不是可运行的程序或批处理文件。 Can someone please help me with this issue?

ABHIJEET-YADAV commented 5 years ago

Have you tried the command suggested by README THEANO_FLAGS='device=gpu0, floatX=float32, nvcc.fastmath=True' python iGAN_main.py --model_name outdoor_64

I am also facing the same problem. Did you get any solution for this issue?