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

TypeError: 'NoneType' object is not subscriptable #71

Open
eyildiz-ugoe opened this issue Sep 10, 2024 · 2 comments
Open

TypeError: 'NoneType' object is not subscriptable #71

eyildiz-ugoe opened this issue Sep 10, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@eyildiz-ugoe
Copy link

eyildiz-ugoe commented Sep 10, 2024

Fresh cloned. Enabled everything in config. Ran "test_cli_api.py", got this output.

[2024/09/10 14:36:01 hloc INFO] Loading OmniGlue model
[2024/09/10 14:36:07 hloc INFO] Loaded OmniGlue model done!
Warning, cannot find cuda-compiled version of RoPE2D, using a slow pytorch version instead
/!\ module trimesh is not installed, cannot visualize results /!\
[2024/09/10 14:36:07 hloc INFO] Downloading Mast3r(ViT large)... (takes a while)
[2024/09/10 14:37:33 hloc INFO] Downloading Mast3r(ViT large)... done!
... loading model from /home/username/image-matching-webui/hloc/matchers/../../third_party/mast3r/model_weights/MASt3R_ViTLarge_BaseDecoder_512_catmlpdpt_metric.pth
instantiating : AsymmetricMASt3R(enc_depth=24, dec_depth=12, enc_embed_dim=1024, dec_embed_dim=768, enc_num_heads=16, dec_num_heads=12, pos_embed='RoPE100',img_size=(512, 512), head_type='catmlp+dpt', output_mode='pts3d+desc24', depth_mode=('exp', -inf, inf), conf_mode=('exp', 1, inf), patch_embed_cls='PatchEmbedDust3R', two_confs=True, desc_conf_mode=('exp', 0, inf), landscape_only=False)
<All keys matched successfully>
[2024/09/10 14:37:39 hloc INFO] Loaded Mast3r model
... loading model from /home/username/image-matching-webui/hloc/matchers/../../third_party/dust3r/model_weights/duster_vit_large.pth
instantiating : AsymmetricCroCo3DStereo(enc_depth=24, dec_depth=12, enc_embed_dim=1024, dec_embed_dim=768, enc_num_heads=16, dec_num_heads=12, pos_embed='RoPE100', patch_embed_cls='PatchEmbedDust3R', img_size=(512, 512), head_type='dpt', output_mode='pts3d', depth_mode=('exp', -inf, inf), conf_mode=('exp', 1, inf), landscape_only=False)
<All keys matched successfully>
[2024/09/10 14:37:44 hloc INFO] Loaded Dust3r model
[2024/09/10 14:37:44 hloc INFO] Loaded GIM model
[2024/09/10 14:37:45 hloc INFO] Loaded Efficient LoFTR with weights weights/eloftr_outdoor.ckpt
[2024/09/10 14:37:45 hloc INFO] Loaded Aspanformer model
Using cache found in /home/username/.cache/torch/hub/verlab_accelerated_features_main
[2024/09/10 14:37:46 hloc INFO] Load XFeat(dense) model done.
[2024/09/10 14:37:46 hloc ERROR] 'NoneType' object is not subscriptable
  File "/home/username/image-matching-webui/ui/api.py", line 63, in __init__
    self._init_models()
  File "/home/username/image-matching-webui/ui/api.py", line 121, in _init_models
    self.matcher = get_model(self.match_conf)
  File "/home/username/image-matching-webui/ui/utils.py", line 174, in get_model
    Model = dynamic_load(matchers, match_conf["model"]["name"])
TypeError: 'NoneType' object is not subscriptable

@eyildiz-ugoe eyildiz-ugoe added the bug Something isn't working label Sep 10, 2024
@eyildiz-ugoe
Copy link
Author

eyildiz-ugoe commented Sep 10, 2024

in the config file there were settings set to "false", I turned all of them to true. Is this somewhat breaking the code? If it breaks why is there such an option anyway?

@Vincentqyw
Copy link
Owner

Vincentqyw commented Sep 10, 2024

These are known bugs, more info: #59 (comment)
Please provide more information so I can reproduce the issue, e.g., the config file.

@Vincentqyw Vincentqyw self-assigned this Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants