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 #146

Open
hanlaoshi opened this issue Mar 4, 2019 · 0 comments
Open

TypeError: 'NoneType' object is not subscriptable #146

hanlaoshi opened this issue Mar 4, 2019 · 0 comments

Comments

@hanlaoshi
Copy link

Traceback (most recent call last):
File "./tools/trainval_net.py", line 139, in
max_iters=args.max_iters)
File "/root/TensorFlow-Model/tf-faster-rcnn-master/tools/../lib/model/train_val.py", line 377, in train_net
sw.train_model(sess, max_iters)
File "/root/TensorFlow-Model/tf-faster-rcnn-master/tools/../lib/model/train_val.py", line 278, in train_model
blobs = self.data_layer.forward()
File "/root/TensorFlow-Model/tf-faster-rcnn-master/tools/../lib/roi_data_layer/layer.py", line 87, in forward
blobs = self._get_next_minibatch()
File "/root/TensorFlow-Model/tf-faster-rcnn-master/tools/../lib/roi_data_layer/layer.py", line 83, in _get_next_minibatch
return get_minibatch(minibatch_db, self._num_classes)
File "/root/TensorFlow-Model/tf-faster-rcnn-master/tools/../lib/roi_data_layer/minibatch.py", line 30, in get_minibatch
im_blob, im_scales = _get_image_blob(roidb, random_scale_inds)
File "/root/TensorFlow-Model/tf-faster-rcnn-master/tools/../lib/roi_data_layer/minibatch.py", line 64, in _get_image_blob
im = im[:, ::-1, :]
TypeError: 'NoneType' object is not subscriptable

Anyone can give me some suggestions? Thanks for your help in advance.

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