You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"
File "test_mamba.py", line 90, in
model.load_state_dict(pretrained_weights)
File "/home/urs/ENTER/envs/rvt/lib/python3.8/site-packages/torch/nn/modules/module.py", line 2201, in load_state_dict
load(self, state_dict)
File "/home/urs/ENTER/envs/rvt/lib/python3.8/site-packages/torch/nn/modules/module.py", line 2189, in load
load(child, child_state_dict, child_prefix) # noqa: F821
File "/home/urs/ENTER/envs/rvt/lib/python3.8/site-packages/torch/nn/modules/module.py", line 2189, in load
load(child, child_state_dict, child_prefix) # noqa: F821
File "/home/urs/ENTER/envs/rvt/lib/python3.8/site-packages/torch/nn/modules/module.py", line 2189, in load
load(child, child_state_dict, child_prefix) # noqa: F821
[Previous line repeated 3 more times]
File "/home/urs/ENTER/envs/rvt/lib/python3.8/site-packages/torch/nn/modules/module.py", line 2183, in load
module._load_from_state_dict(
File "/data3/urs/code/RVT/rvt/libs/VMamba/classification/models/vmamba.py", line 48, in _load_from_state_dict
state_dict[prefix + "weight"] = state_dict[prefix + "weight"].view(self.weight.shape)
"
When I used the pre-trained weights on the Segmentation task, I got this:
"
KeyError: 'MM_VSSM is not in the mmseg::model registry. Please check whether the value of
MM_VSSM
is correct or it was registered as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module'"
And if I want to get the middle layers. What could I do?
The text was updated successfully, but these errors were encountered: