Skip to content

RuntimeError: Unknown model (vit_base_resnet50_384) #3

@Iliceth

Description

@Iliceth

When running the test sh scripts/run_Pano2Room.sh, I end up with this error:

Detectron v2 is not installed
/home/user/miniconda3/envs/pano2room/lib/python3.10/site-packages/torch/utils/_contextlib.py:125: UserWarning: Decorating classes is deprecated and will be disabled in future versions. You should only decorate functions or methods. To preserve the current behavior of class decoration, you can directly decorate the `__init__` method and nothing else.
  warnings.warn("Decorating classes is deprecated and will be disabled in "
Loading pipeline components...: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6/6 [00:00<00:00,  6.65it/s]
Traceback (most recent call last):
  File "/home/user/Documents/pano2room/pano2room.py", line 605, in <module>
    pipeline = Pano2RoomPipeline()
  File "/home/user/miniconda3/envs/pano2room/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/user/miniconda3/envs/pano2room/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 129, in <lambda>
    func = cast(F, lambda *args, **kwargs: orig_func(*args, **kwargs))
  File "/home/user/Documents/pano2room/pano2room.py", line 81, in __init__
    self.load_modules()
  File "/home/user/Documents/pano2room/pano2room.py", line 85, in load_modules
    self.geo_predictor = PanoJointPredictor(save_path=self.save_path)
  File "/home/user/Documents/pano2room/modules/geo_predictors/pano_joint_predictor.py", line 78, in __init__
    self.depth_predictor = OmnidataPredictor()
  File "/home/user/Documents/pano2room/modules/geo_predictors/omnidata/omnidata_predictor.py", line 39, in __init__
    self.model = DPTDepthModel(backbone='vitb_rn50_384', num_channels=1)
  File "/home/user/Documents/pano2room/modules/geo_predictors/omnidata/modules/midas/dpt_depth.py", line 101, in __init__
    super().__init__(head, **kwargs)
  File "/home/user/Documents/pano2room/modules/geo_predictors/omnidata/modules/midas/dpt_depth.py", line 48, in __init__
    self.pretrained, self.scratch = _make_encoder(
  File "/home/user/Documents/pano2room/modules/geo_predictors/omnidata/modules/midas/blocks.py", line 20, in _make_encoder
    pretrained = _make_pretrained_vitb_rn50_384(
  File "/home/user/Documents/pano2room/modules/geo_predictors/omnidata/modules/midas/vit.py", line 483, in _make_pretrained_vitb_rn50_384
    model = timm.create_model("vit_base_resnet50_384", pretrained=pretrained)
  File "/home/user/miniconda3/envs/pano2room/lib/python3.10/site-packages/timm/models/_factory.py", line 89, in create_model
    raise RuntimeError('Unknown model (%s)' % model_name)
RuntimeError: Unknown model (vit_base_resnet50_384)

The 3 checkpoints are present as instructed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions