akarshzingade / image-similarity-deep-ranking

369 stars 103 forks source link

Exception in Thread-8 in deepRanking.py #31

Open Purvak-L opened 5 years ago

Purvak-L commented 5 years ago

Hi, I'm getting this error while running deepRanking.py. Any help of why this is the case? Also, all I did was pass query_and_triplets.txt file to deepRanking.py. Am I doing it correctly?

Exception in thread Thread-8: Traceback (most recent call last): File "C:\Users\Purvak\Anaconda3\envs\py35\lib\threading.py", line 914, in _bootstrap_inner self.run() File "C:\Users\Purvak\Anaconda3\envs\py35\lib\threading.py", line 862, in run self._target(*self._args, *self._kwargs) File "C:\Users\Purvak\Anaconda3\envs\py35\lib\site-packages\keras\utils\data_utils.py", line 568, in data_generator_task generator_output = next(self._generator) File "C:\Users\Purvak\Documents\IRDS\ImageDataGeneratorCustom.py", line 721, in next return self.next(args, **kwargs) File "C:\Users\Purvak\Documents\IRDS\ImageDataGeneratorCustom.py", line 1023, in next fname = self.filenames[j] IndexError: list index out of range

Traceback (most recent call last): File "deepranking.py", line 129, in epochs=5 File "C:\Users\Purvak\Anaconda3\envs\py35\lib\site-packages\keras\legacy\interfaces.py", line 87, in wrapper return func(*args, **kwargs) File "C:\Users\Purvak\Anaconda3\envs\py35\lib\site-packages\keras\engine\training.py", line 2011, in fit_generator generator_output = next(output_generator) StopIteration

harshsp31 commented 5 years ago

I'm getting the same issue. Did anybody find a solution?

YXWisaboy commented 4 years ago

Please make sure the data volume is a multiple of 8(24/3)

mayankdevedw commented 4 years ago

Did you find solution of this? My data volume is multiple of 8 only, number of triplets are 5016