Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A mistake :float() argument must be a string or a number, not 'JpegImageFile' Who can help me #204

Open
alone9329 opened this issue Jul 17, 2018 · 1 comment

Comments

@alone9329
Copy link

Traceback (most recent call last):
File "main.py", line 103, in
tf.app.run()
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "main.py", line 81, in main
data_dir=FLAGS.data_dir)
File "D:\DCGAN-tensorflow-master\model.py", line 83, in init
imreadImg = imread(self.data[0])
File "D:\DCGAN-tensorflow-master\utils.py", line 39, in imread
return scipy.misc.imread(path).astype(np.float)
TypeError: float() argument must be a string or a number, not 'JpegImageFile'

How to solv it

@cai-cong
Copy link

Have you solved this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants