Comments (4)
Have you made sure theano.config.floatX is set to float32? The debug msg is suggesting symbolic variable going into a conv or deconv op (likely a downstream from "Z" or "Y") has dtype float64. Check Z.dtype and Y.dtype
from dcgan_code.
yes! that solved that problem. however it led to a new issue (HostFromGPU not defined, see below).
thanks for the repo, results look really amazing. sorry, still getting the hang of theano...
>> gX = gen(Z, Y, *gen_params)
Traceback (most recent call last):
File "", line 1, in
File "", line 9, in gen
File "lib/ops.py", line 63, in batchnorm
b_u = T.mean(X, axis=[0, 2, 3]).dimshuffle('x', 0, 'x', 'x')
File "/usr/local/lib/python2.7/dist-packages/theano/tensor/basic.py", line 2864, i
n mean
acc_dtype=acc_dtype)
File "/usr/local/lib/python2.7/dist-packages/theano/tensor/basic.py", line 2726, i
n sum
out = elemwise.Sum(axis=axis, dtype=dtype, acc_dtype=acc_dtype)(input)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/op.py", line 509, in cal
l
node = self.make_node(_inputs, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/theano/tensor/elemwise.py", line 1852
, in make_node
input = as_tensor_variable(input)
File "/usr/local/lib/python2.7/dist-packages/theano/tensor/basic.py", line 146, in
as_tensor_variable
return x._as_TensorVariable() # TODO: pass name and ndim arguments
File "/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/var.py", line 32,
in _as_TensorVariable
return HostFromGpu()(self)
NameError: global name 'HostFromGpu' is not defined
from dcgan_code.
Usually only seen an error like that when you don't have cuda/cudnn properly installed/configured. Can you confirm cuda/cudnn is working on your end?
from dcgan_code.
yes, works perfectly now, thank you! i had cuda/cudnn installed, just didn't have it in the PATH.
from dcgan_code.
Related Issues (20)
- ValueError: total size of new array must be unchanged - Using Mnist Dataset HOT 1
- a typo?
- ValueError: total size of new array must be unchanged error HOT 1
- How to use it with cpu
- Batch normalization and inference in the DCGAN model HOT 1
- using GAN and deconv with "valid" border mode
- how to get paper's dataset?
- How can I add my picture in Arithmetic on faces in part three
- Saved model for faces
- Training input dimensions HOT 2
- ImageNet pretrained model layer dimensions HOT 1
- Album cover art dataset HOT 3
- Subset instances cannot be defined by a slice
- Do you have a docker image of DCGAN?
- No batch norm in last layer
- requirements.txt for installing deps?
- CLASSIFYING CIFAR-10 USING GANS AS A FEATURE EXTRACTOR
- [request]Figure 5 of DCGAN paper implementation
- A small question regarding conv_cond_concat
- How to train it on my own datasets?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dcgan_code.