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

TypeError: 'NoneType' object is not subscriptable #396

Open
breadbrowser opened this issue Jun 4, 2022 · 0 comments
Open

TypeError: 'NoneType' object is not subscriptable #396

breadbrowser opened this issue Jun 4, 2022 · 0 comments

Comments

@breadbrowser
Copy link

breadbrowser commented Jun 4, 2022

[ WARN:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_('./datasets/mobile_data_img'): can't open/read file: check file path/integrity
Traceback (most recent call last):
File "main.py", line 146, in
tf.app.run()
File "C:\Users\For36\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "main.py", line 114, in main
max_to_keep=FLAGS.max_to_keep)
File "C:\Users\For36\Desktop\New folder\DCGAN-tensorflow-master\model.py", line 93, in init
imreadImg = imread(self.data[0])
File "C:\Users\For36\Desktop\New folder\DCGAN-tensorflow-master\utils.py", line 56, in imread
img_rgb = img_bgr[..., ::-1]
TypeError: 'NoneType' object is not subscriptable

how do i fix this

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

1 participant