Flipajs / FERDA

MIT License
1 stars 0 forks source link

no attribute '__getitem__' #11

Open bcasillas opened 6 years ago

bcasillas commented 6 years ago

Segmentation on one project persistently outputs the following error, on commit a3babe: Traceback (most recent call last): File "/nfs/scistore12/cremegrp/casillas/new_ferda/core/parallelization.py", line 251, in img = vid.next_frame() File "/nfs/scistore12/cremegrp/casillas/new_ferda/utils/video_manager.py", line 74, in nextframe self.buffer[self.bufferposition] = self.crop(self.buffer[self.bufferposition]) File "/nfs/scistore12/cremegrp/casillas/new_ferda/utils/videomanager.py", line 67, in crop return img[cm['y1']:cm['y2'], cm['x1']:cm['x2']].copy() TypeError: 'NoneType' object has no attribute 'getitem'

The crop model looks fine : 'video_crop_model': {'x1': 33, 'x2': 959, 'y1': 31, 'y2': 957}, 'video_end_t': 458249, 'video_paths': ['/run/user/10251/gvfs/smb-share:server=istsmb3.ist.local,share=casillas/ColonyExperiment/Film2/02.10.14-1/Camera 1.avi'], 'video_start_t': 340001,

bcasillas commented 6 years ago

wrong videopath specified (facepalm)

bcasillas commented 6 years ago

Please catch this exception and print a more informative error message, that mentions videopath which failed to load.