-
Notifications
You must be signed in to change notification settings - Fork 91
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
view_group keyerror #8
Comments
Hi, thanks for your interest in the work ! If you have only one object in each view (and do not know camera poses), the multi-view method won't bring any improvements over single-view since it needs multiple objects to estimate relative camera poses. This seems to be your case with 708 views and 708 candidates. If you give pose predictions in images that cannot be placed with respect to each others, the output cameras will have different Could you share your custom scenario so that I can reproduce the bug ? I will add some informations to mention the method is not suited for such scenario. |
Hi, thanks for your answer, and the link of my data is https://drive.google.com/file/d/1ySdj8PB7pbliee7XEaGGJpCfHs4b6IhN/view?usp=sharing |
Hi, i am facing the same issue , reported by @ghoshaw. I am also trying to run the stage 2 and 3 of the multi view pose estimation. Gettting the following output: `[INFO] [1617110034.166546]: Loaded 11 candidates in 5 views.
|
Hi, thanks for your sharing!
I run my own detector result by step 2 and 3 as in ReadMe, But it says:
Setting OMP and MKL num threads to 1.
pybullet build time: Sep 20 2020 23:49:22
0:00:00.002000 - --------------------------------------------------------------------------------
0:00:00.002170 - scenario: example
0:00:00.002226 - sv_score_th: 0.3
0:00:00.002262 - n_symmetries_rot: 64
0:00:00.002293 - ransac_n_iter: 2000
0:00:00.002325 - ransac_dist_threshold: 0.02
0:00:00.002354 - ba_n_iter: 10
0:00:00.002384 - nms_th: 0.04
0:00:00.002414 - no_visualization: False
0:00:00.002442 - --------------------------------------------------------------------------------
0:00:03.464109 - Loaded 708 candidates in 708 views.
0:00:03.480213 - Loaded cameras intrinsics.
0:00:03.737966 - Loaded 1 3D object models.
0:00:03.738085 - Running stage 2 and 3 of CosyPose...
0:00:04.871425 - Num candidates: 708
0:00:04.871581 - Num views: 708
0:00:04.874115 - Estimating camera poses using RANSAC.
0:00:05.532733 - Matched candidates: 0
0:00:05.532855 - RANSAC time_models: 0:00:00.649863
0:00:05.532897 - RANSAC time_score: 0:00:00.000510
0:00:05.532930 - RANSAC time_misc: 0:00:00.009830
Traceback (most recent call last):
File "/opt/conda/envs/cosypose/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 2891, 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 1675, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1683, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'view_group'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/conda/envs/cosypose/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/opt/conda/envs/cosypose/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/XX/cosypose/cosypose/scripts/run_custom_scenario.py", line 184, in
main()
File "/home/XX/cosypose/cosypose/scripts/run_custom_scenario.py", line 153, in main
for view_group in np.unique(objects.infos['view_group']):
File "/opt/conda/envs/cosypose/lib/python3.7/site-packages/pandas/core/frame.py", line 2902, in getitem
indexer = self.columns.get_loc(key)
File "/opt/conda/envs/cosypose/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 2893, in get_loc
raise KeyError(key) from err
KeyError: 'view_group'
I put the detect results and model in local_data in bop format, and run "run_custom_scenario.py". And what the view_group is?
And another questions is I only have one object in each frame, and the frame is taken from a video, Does this method still work in this situation?
The text was updated successfully, but these errors were encountered: