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

KeyError: 'camera' error #10

Open
official-akshayjadhav opened this issue Mar 8, 2021 · 0 comments
Open

KeyError: 'camera' error #10

official-akshayjadhav opened this issue Mar 8, 2021 · 0 comments

Comments

@official-akshayjadhav
Copy link

official-akshayjadhav commented Mar 8, 2021

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'

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

No branches or pull requests

1 participant