Trying joint.py insteady of mergan.py, also facing problem.
First, the deconv2d module not found bug, this was handled by adding
import tflib.ops.deconv2d in gan32_model.py.
Even then, I am facing following error
Traceback (most recent call last):
File "joint.py", line 255, in <module>
lib.plot.flush(path = RESULT_DIR)
File "/home/junho/MeRGAN/tflib/plot.py", line 40, in flush
plt.savefig(os.path.join(path,name.replace(' ', '_')+'.jpg'))
File "/home/junho/anaconda3/envs/mergan-py27/lib/python2.7/site-packages/matplotlib/pyplot.py", line 695, in savefig
res = fig.savefig(*args, **kwargs)
File "/home/junho/anaconda3/envs/mergan-py27/lib/python2.7/site-packages/matplotlib/figure.py", line 2062, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/home/junho/anaconda3/envs/mergan-py27/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 2263, in print_figure
**kwargs)
File "/home/junho/anaconda3/envs/mergan-py27/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py", line 588, in print_jpg
return background.save(filename_or_obj, format='jpeg', **options)
File "/home/junho/anaconda3/envs/mergan-py27/lib/python2.7/site-packages/PIL/Image.py", line 1439, in save
save_handler(self, fp, filename)
File "/home/junho/anaconda3/envs/mergan-py27/lib/python2.7/site-packages/PIL/JpegImagePlugin.py", line 471, in _save
ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)])
File "/home/junho/anaconda3/envs/mergan-py27/lib/python2.7/site-packages/PIL/ImageFile.py", line 495, in _save
e = Image._getencoder(im.mode, e, a, im.encoderconfig)
File "/home/junho/anaconda3/envs/mergan-py27/lib/python2.7/site-packages/PIL/Image.py", line 399, in _getencoder
return apply(encoder, (mode,) + args + extra)
TypeError: integer argument expected, got float
Any help?
It would be great help to reproduce your work and make the code runnable from clean slate.
Thank you!
Trying
joint.py
insteady ofmergan.py
, also facing problem.First, the
deconv2d
module not found bug, this was handled by addingimport tflib.ops.deconv2d
ingan32_model.py
.Even then, I am facing following error
Any help? It would be great help to reproduce your work and make the code runnable from clean slate. Thank you!