chensnathan / SpatialFlow

SpatialFlow: Bridging all Task for Panoptic Segmentation. In TCSVT2020
Apache License 2.0
14 stars 4 forks source link

There is a error,I don't know how to do?ImportError: cannot import name 'IdGenerator' from 'mmdet.core' (D:\develop\anaconda\lib\site-packages\mmdet\core\__init__.py) #2

Closed dalanmaobu closed 4 years ago

dalanmaobu commented 4 years ago

Notice

There are several common situations in the reimplementation issues as below

  1. Reimplement a model in the model zoo using the provided configs
  2. Reimplement a model in the model zoo on other dataset (e.g., custom datasets)
  3. Reimplement a custom model but all the components are implemented in MMDetection
  4. Reimplement a custom model with new modules implemented by yourself

There are several things to do for different cases as below.

Checklist

  1. I have searched related issues but cannot get the expected help.
  2. The issue has not been fixed in the latest version.

Describe the issue

A clear and concise description of what the problem you meet and what have you done.

Reproduction

  1. What command or script did you run?
    A placeholder for the command.
  2. What config dir you run?
    A placeholder for the config.
  3. Did you make any modifications on the code or config? Did you understand what you have modified?
  4. What dataset did you use?

Environment

  1. Please run python mmdet/utils/collect_env.py to collect necessary environment information and paste it here.
  2. You may add addition that may be helpful for locating the problem, such as
    • How you installed PyTorch [e.g., pip, conda, source]
    • Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)

Results

If applicable, paste the related results here, e.g., what you expect and what you get.

A placeholder for results comparison

Issue fix

If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!

chensnathan commented 4 years ago

The code for IdGenerator is given here. Could you provide more details about what did you do? And could you check in the terminal that if the following snippets work?

from mmdet.core.utils import IdGenerator