Skip to content

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

@alone9329

Description

@alone9329

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions