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

raise IndexError #4

Open
fengyuxi55 opened this issue Aug 28, 2017 · 2 comments
Open

raise IndexError #4

fengyuxi55 opened this issue Aug 28, 2017 · 2 comments
Labels

Comments

@fengyuxi55
Copy link

Hello, thanks for your impressive work!
When I run your code to reproduce the work, I met the following errors:

[2017/08/28 09:51:03] WARNING (13199) datasets : No selective search rectangle
Process Process-10:...........................................] 4.93%
Traceback (most recent call last):ochs
File "/home/users/yuxi.feng/anaconda2/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/home/users/yuxi.feng/anaconda2/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/home/users/yuxi.feng/anaconda2/lib/python2.7/site-packages/chainer/iterators/multiprocess_iterator.py", line 162, in _worker
out_queue.put(dataset[index])
File "/home/users/yuxi.feng/anaconda2/lib/python2.7/site-packages/chainer/dataset/dataset_mixin.py", line 30, in getitem
return self.get_example(index)
File "/home/users/yuxi.feng/anaconda2/lib/python2.7/site-packages/chainer/datasets/sub_dataset.py", line 75, in get_example
return self._dataset[index]
File "/home/users/yuxi.feng/anaconda2/lib/python2.7/site-packages/chainer/dataset/dataset_mixin.py", line 30, in getitem
return self.get_example(index)
File "/home/users/yuxi.feng/Project/hyperface/scripts/datasets.py", line 293, in get_example
raise IndexError
IndexError
I used aflw datasets as your example mentined, it seems some exapmles has no proposal rects??

@takiyu
Copy link
Owner

takiyu commented Aug 28, 2017

It sometimes occurs because bugs are contained in codes of facial rectangles.

I used rectangle structure of OpenCV (x, y, w, h). However the image shapes of OpenCV are [h, w, c].
I think I made a mistake about width, height and image sizes.
The same can be said to #3.

The simplest solutions are to remove the cache and recompute it or to restart the training.
I would be glad if you give me a pull request about the bug.

@takiyu takiyu added the bug label Jan 15, 2018
@lilaczhou
Copy link

@takiyu Hello,your code helps me a lot,Thanks for your contribution!But while I am running the code,it always tells me IndexError。After dection,I think there is no values in ssrects。I found that the filepath in aflw.sqlite doesn't correspond to the path in flickr/ file,does it influence my running?I hope you can give me some hints,Thank you very much。

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

No branches or pull requests

3 participants