Vincentqyw / image-matching-webui

🤗 image matching toolbox webui
https://huggingface.co/spaces/Realcat/image-matching-webui
Apache License 2.0
760 stars 65 forks source link

TypeError: 'NoneType' object is not subscriptable #71

Open eyildiz-ugoe opened 1 month ago

eyildiz-ugoe commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

These are known bugs, more info: https://github.com/Vincentqyw/image-matching-webui/issues/59#issuecomment-2299286938 Please provide more information so I can reproduce the issue, e.g., the config file.