-
Notifications
You must be signed in to change notification settings - Fork 4
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
KeyError #5
Comments
Thanks for your feedback! You can simply change the key "FixScaleResize" to "Resize" or pull our latest commit. This change has little impact on model's performance. |
Thanks for your reply, the above problem has been solved, but another problem arises:(Same question as above) Traceback (most recent call last): I tried to configure the same environment as you. When I installed mmdet=3.1.0, the following error occurred: (lenna) yuchunan@d6f5edefdcce:~/project/3D/Lenna$ python chat.py This problem may be caused by an low version. |
This is how I solved it:
|
@YCA-eng Sorry for not replying in time, may I ask if you can successfully run through the inference code now? |
这样修改后出现这样的错误: File "/home/user/anaconda3/envs/lenna/lib/python3.10/site-packages/mmdet/models/layers/transformer/grounding_dino_layers.py", line 238, in forward |
wonderful work! When I ran the chat.py file, a problem occurred, but I couldn't find where the problem was. Can you provide some help?
My version is as follows:
torch=1.13.1+cu117
mmcv=2.1.0
mmdet=3.3.0
mmengine=0.10.2
Traceback (most recent call last):
File "/public2/home//project/3D/Lenna/chat.py", line 143, in
main(sys.argv[1:])
File "/public2/home//project/3D/Lenna/chat.py", line 99, in main
dino_input = load_as_mmdet(image_path, caption=g_dino_caption)
File "/public2/home//project/3D/Lenna/utils/create_test_annfile_mmdet.py", line 44, in load_as_mmdet
mmdet_pipeline = Compose(mmdet_pipline_cfg)
File "/public2/home//anaconda3/envs/lenna/lib/python3.10/site-packages/mmengine-0.10.2-py3.10.egg/mmengine/dataset/base_dataset.py", line 38, in init
transform = TRANSFORMS.build(transform)
File "/public2/home/***/anaconda3/envs/lenna/lib/python3.10/site-packages/mmengine-0.10.2-py3.10.egg/mmengine/registry/registry.py", line 570, in build
return self.build_func(cfg, args, kwargs, registry=self)
File "/public2/home//anaconda3/envs/lenna/lib/python3.10/site-packages/mmengine-0.10.2-py3.10.egg/mmengine/registry/build_functions.py", line 100, in build_from_cfg
raise KeyError(
KeyError: 'FixScaleResize is not in the mmengine::transform registry. Please check whether the value of
FixScaleResize
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'The text was updated successfully, but these errors were encountered: