question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KeyError: 'Cascade Mask R-CNN'

See original GitHub issue
  1. I’ve followed the installation steps from https://mmdetection.readthedocs.io/en/v2.25.0/get_started.html
  2. Then I try to execute the following command from the manual mim download mmdet --config yolov3_mobilenetv2_320_300e_coco --dest .
$ mim download mmdet --config yolov3_mobilenetv2_320_300e_coco --dest .
~/miniconda3/envs/openmmlab/lib/python3.8/site-packages/_distutils_hack/__init__.py:30: UserWarning: Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")
Traceback (most recent call last):
  File "~/miniconda3/envs/openmmlab/bin/mim", line 33, in <module>
    sys.exit(load_entry_point('openmim', 'console_scripts', 'mim')())
  File "~/miniconda3/envs/openmmlab/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "~/miniconda3/envs/openmmlab/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "~/miniconda3/envs/openmmlab/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "~/miniconda3/envs/openmmlab/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "~/miniconda3/envs/openmmlab/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "~/repositories/mim/mim/commands/download.py", line 44, in cli
    download(package, configs, dest_root)
  File "~/repositories/mim/mim/commands/download.py", line 75, in download
    model_info = get_model_info(
  File "~/repositories/mim/mim/commands/search.py", line 170, in get_model_info
    dataframe = convert2df(metadata)
  File "~/repositories/mim/mim/commands/search.py", line 396, in convert2df
    for key, value in name2collection[collection_name].items():
KeyError: 'Cascade Mask R-CNN'

I’ve also tried to install mim directly from master, but the same error appears.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
ice-tongcommented, Jun 3, 2022

Hi @tik0 , this looks like a bug introduced in mmdet==2.25.0, related commit: https://github.com/open-mmlab/mmdetection/commit/1fd48f7318ac70bab6de371025c74a76c5219e1c.

A quick workaround is to use mmdet<2.25.0.

0reactions
ZwwWaynecommented, Jun 25, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

KeyError while trying executing Python Code on MaskRCNN
I am getting below keyError while running my python script for my custom dataset which using MaskRCNN with tensorflow-gpu. code snippet :
Read more >
KeyError: 'Cascade Mask R-CNN'_Coding的叶子的博客
KeyError : 'Cascade Mask R-CNN'
Read more >
Cascade Mask R-CNN - Papers With Code
Cascade R-CNN : High Quality Object Detection and Instance Segmentation · Introduction · Results and models.
Read more >
detectron2.config
Mask R-CNN supports either "polygon" or "bitmask" as ground truth. ... ROI_BOX_CASCADE_HEAD = CN() # The number of cascade stages is implicitly defined...
Read more >
mmdet Changelog - pyup.io
Fix GPG key error in Dockerfile (8215) - Fix `WandbLoggerHook` error (8273) ... Support and release Cascade Mask R-CNN 3x pre-trained models (5645)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found