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

Problem with Inference #64

Open
shivakarnati opened this issue Mar 12, 2024 · 1 comment
Open

Problem with Inference #64

shivakarnati opened this issue Mar 12, 2024 · 1 comment

Comments

@shivakarnati
Copy link

Thank you for providing your wonderful work!

I was encountering an error while running Inference Step.

python feature_matching_object_detector.py +experiment=object_detector.yaml n_ref_view=15

I followed Installation and Dataset setup steps perfectly. I didn't receive any error but I am getting an error for this. Below is the error.

$ python feature_matching_object_detector.py +experiment=object_detector.yaml n_ref_view=15

Global seed set to 12345
/home/shiva/miniconda3/envs/onepose/lib/python3.7/site-packages/hydra/_internal/defaults_list.py:251: UserWarning: In 'config.yaml': Defaults list is missing `_self_`. See https://hydra.cc/docs/upgrades/1.0_to_1.1/default_composition_order for more information
  warnings.warn(msg, UserWarning)
  0%|                                                                                                                                                                | 0/80 [00:00<?, ?it/s]2024-03-12 15:38:24.561 | INFO     | __main__:inference:164 - Run feature matching object detector for: /home/shiva/Downloads/OnePose-main/data/onepose_datasets/test_data/0408-colorbox-box/colorbox-4
=> load weights:  /home/shiva/Downloads/OnePose-main/data/models/extractors/SuperPoint/superpoint_v1.pth
=> load weights:  /home/shiva/Downloads/OnePose-main/data/models/matchers/SuperGlue/superglue_outdoor.pth
Provide model format: '.bin' or '.txt'
  0%|                                                                                                                                                                | 0/80 [00:00<?, ?it/s]
Error executing job with overrides: ['+experiment=object_detector.yaml', 'n_ref_view=15']
Traceback (most recent call last):
  File "feature_matching_object_detector.py", line 170, in main
    globals()[cfg.type](cfg)
  File "feature_matching_object_detector.py", line 165, in inference
    inference_core(cfg, data_root, seq_dir, sfm_model_dir)
  File "/home/shiva/miniconda3/envs/onepose/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "feature_matching_object_detector.py", line 135, in inference_core
    K_crop_save_dir=paths['output_K_crop_dir']
  File "/home/shiva/Downloads/OnePose-main/src/local_feature_2D_detector/local_feature_2D_detector.py", line 47, in __init__
    self.db_dict = self.extract_ref_view_features(sfm_ws_dir, n_ref_view)
  File "/home/shiva/Downloads/OnePose-main/src/local_feature_2D_detector/local_feature_2D_detector.py", line 54, in extract_ref_view_features
    cameras, images, points3D = read_model(sfm_ws_dir)
TypeError: cannot unpack non-iterable NoneType object

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

Can somebody please help me with this?

@shivakarnati
Copy link
Author

@JiamingSuen @gcgeng @ybbbbt @pengsida your inputs wold be great helpful for me :)

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