DCGAN-tensorflow
DCGAN-tensorflow copied to clipboard
Got error using my own data
Traceback (most recent call last):
File "/home/sal/Downloads/pycharm-community-2016.2.3/helpers/pydev/pydevd.py", line 1580, in
Any help will be appreciated
in the model.py seems exits a bug that this part below returns a float for reshape but reshape just accept int32. Need to convert
def conv_out_size_same(size, stride): return math.ceil(float(size) / float(stride))
It works now!
@ComputerMystery , Do you fix the error?
@mittlin Already fixed . Just forced type convert to int for the returndef conv_out_size_same(size, stride): return int(math.ceil(float(size) / float(stride)))
@ComputerMystery ,thanks
Thanks for the suggestions. I applied the suggested change (def conv_out_size_same(size, stride): return int(math.ceil(float(size) / float(stride)))); but still getting the following error.
/python2.7/site-packages/PIL/Image.py", line 2651, in fromarray raise TypeError("Cannot handle this data type") TypeError: Cannot handle this data type
Please let me know if you have any suggestion for this error. THANK YOU!
@maz369 Hello? Have you solved the problem?
I have a similar problem
/lib/python3.6/site-packages/PIL/Image.py", line 2647, in fromarray raise TypeError("Cannot handle this data type") TypeError: Cannot handle this data type
I have a similar problem
/lib/python3.6/site-packages/PIL/Image.py", line 2647, in fromarray raise TypeError("Cannot handle this data type") TypeError: Cannot handle this data type
hi, may i ask if you have solved this problem?
收到。
您好: 来信我已收到,我会尽快回复的。