nkdnnlr / Event-Based-Camera-Simultaneous-Mosaicing-and-Tracking

12 stars 7 forks source link

error message appears when mod(nr of events / batch size) = 0 #5

Closed huetufemchopf closed 5 years ago

huetufemchopf commented 5 years ago

Traceback (most recent call last): File "/anaconda3/envs/project3Dvision/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2657, in get_loc return self._engine.get_loc(key) File "pandas/_libs/index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 132, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 987, in pandas._libs.hashtable.Int64HashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 993, in pandas._libs.hashtable.Int64HashTable.get_item KeyError: 10000

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/celine/Library/Mobile Documents/com~apple~CloudDocs/NSC/3D Vision/Event-Based-Camera-Simultaneous-Mosaicing-and-Tracking/Tracking_Particle_Filter/tracking.py", line 637, in run() File "/Users/celine/Library/Mobile Documents/com~apple~CloudDocs/NSC/3D Vision/Event-Based-Camera-Simultaneous-Mosaicing-and-Tracking/Tracking_Particle_Filter/tracking.py", line 612, in run t_batch = events.loc[event_nr]['t'] File "/anaconda3/envs/project3Dvision/lib/python3.6/site-packages/pandas/core/indexing.py", line 1500, in getitem return self._getitem_axis(maybe_callable, axis=axis) File "/anaconda3/envs/project3Dvision/lib/python3.6/site-packages/pandas/core/indexing.py", line 1913, in _getitem_axis return self._get_label(key, axis=axis) File "/anaconda3/envs/project3Dvision/lib/python3.6/site-packages/pandas/core/indexing.py", line 141, in _get_label return self.obj._xs(label, axis=axis) File "/anaconda3/envs/project3Dvision/lib/python3.6/site-packages/pandas/core/generic.py", line 3585, in xs loc = self.index.get_loc(key) File "/anaconda3/envs/project3Dvision/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2659, in get_loc return self._engine.get_loc(self._maybe_cast_indexer(key)) File "pandas/_libs/index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 132, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 987, in pandas._libs.hashtable.Int64HashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 993, in pandas._libs.hashtable.Int64HashTable.get_item KeyError: 10000