parkingslot icon indicating copy to clipboard operation
parkingslot copied to clipboard

KeyError: 'camera' error

Open official-akshayjadhav opened this issue 3 years ago • 0 comments

getting KeyError: 'camera' while executing resnet_occupancy.py file

@visualbuffer can you help me to solve this?

complete error log: Traceback (most recent call last): File "C:\Users\5tg_user1\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\indexes\base.py", line 3080, in get_loc return self._engine.get_loc(casted_key) File "pandas_libs\index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc File "pandas_libs\index.pyx", line 101, in pandas._libs.index.IndexEngine.get_loc File "pandas_libs\hashtable_class_helper.pxi", line 4554, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas_libs\hashtable_class_helper.pxi", line 4562, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'camera'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "Parking_Slot_mask_rcnn.py", line 233, in image_data = get_data() File "C:\Users\5tg_user1\Desktop\proj-ml-parking-lot-occupancy-detection\5tg_ml_parking_lot_occupancy-detection\utilities.py", line 81, in get_data image_data["camera"] = image_data["camera"].astype("category") File "C:\Users\5tg_user1\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\frame.py", line 3024, in getitem indexer = self.columns.get_loc(key) File "C:\Users\5tg_user1\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\indexes\base.py", line 3082, in get_loc raise KeyError(key) from err KeyError: 'camera'

official-akshayjadhav avatar Mar 08 '21 07:03 official-akshayjadhav