Skip to content

KeyError: "EncoderDecoder: 'InternImage is not in the models registry'" #321

@jusba

Description

@jusba

Hey!

I have been running the pre-trained Internimage-XL fine for a while, but now I'm unable to run it. The code I'm using has not changed and did not give this error before, but now I get it constantly if I try to run a slightly modified version of the image_demo.py.

Traceback (most recent call last):
File ".../local_image_demo.py", line 125, in
main()
File ".../local_image_demo.py", line 102, in main
model = init_segmentor(args.config, checkpoint=None, device=args.device)
File ".../.local/lib/python3.9/site-packages/mmseg/apis/inference.py", line 32, in init_segmentor
model = build_segmentor(config.model, test_cfg=config.get('test_cfg'))
File ".../.local/lib/python3.9/site-packages/mmseg/models/builder.py", line 48, in build_segmentor
return SEGMENTORS.build(
File ".../.local/lib/python3.9/site-packages/mmcv/utils/registry.py", line 215, in build
return self.build_func(*args, **kwargs, registry=self)
File ".../.local/lib/python3.9/site-packages/mmcv/cnn/builder.py", line 27, in build_model_from_cfg
return build_from_cfg(cfg, registry, default_args)
File ".../.local/lib/python3.9/site-packages/mmcv/utils/registry.py", line 55, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
KeyError: "EncoderDecoder: 'InternImage is not in the models registry'"

Here is the list of packages/versions in my current environment. I have not changed any versions since running it successfully the last time.

  • absl-py 1.0.0
  • addict 2.4.0
  • affine 2.3.1
  • aiohttp 3.8.1
  • aiosignal 1.2.0
  • alembic 1.7.7
  • aliyun-python-sdk-core 2.15.0
  • aliyun-python-sdk-kms 2.16.2
  • antlr4-python3-runtime 4.9.3
  • anyio 3.5.0
  • appdirs 1.4.4
  • argon2-cffi 21.3.0
  • argon2-cffi-bindings 21.2.0
  • datasets 2.0.0
  • asttokens 2.0.5
  • async-timeout 4.0.2
  • attrs 21.4.0
  • audioread 2.1.9
  • Babel 2.9.1
  • backcall 0.2.0
  • bce-python-sdk 0.8.92
  • beautifulsoup4 4.11.0
  • black 24.4.2
  • bleach 5.0.0
  • cachetools 5.0.0
  • certifi 2024.2.2
  • cffi 1.16.0
  • cftime 1.6.0
  • charset-normalizer 3.3.2
  • click 8.1.7
  • click-plugins 1.1.1
  • cligj 0.7.2
  • cloudpickle 2.0.0
  • colorama 0.4.6
  • crcmod 1.7
  • cryptography 42.0.5
  • cycler 0.11.0
  • Cython 0.29.28
  • dask 2022.4.0
  • dask-jobqueue 0.7.3
  • databricks-cli 0.16.6
  • datasets 2.0.0
  • DCNv3 1.0
  • debugpy 1.6.0
  • decorator 5.1.1
  • deepspeed 0.6.1
  • defusedxml 0.7.1
  • Deprecated 1.2.13
  • dill 0.3.4
  • distributed 2022.4.0
  • docker 5.0.3
  • easydict 1.7
  • entrypoints 0.4
  • et-xmlfile 1.1.0
  • executing 0.8.3
  • fastjsonschema 2.15.3
  • filelock 3.6.0
  • Fiona 1.8.21
  • Flask 2.1.1
  • flask-babel 4.0.0
  • fonttools 4.31.2
  • frozenlist 1.3.0
  • fsspec 2022.3.0
  • fvcore 0.1.5.post20221221
  • gensim 4.1.2
  • geopandas 0.10.2
  • gitdb 4.0.9
  • GitPython 3.1.27
  • google-auth 2.6.3
  • google-auth-oauthlib 0.4.6
  • graphviz 0.19.1
  • greenlet 1.1.2
  • grpcio 1.43.0
  • gunicorn 20.1.0
  • h5py 3.6.0
  • HeapDict 1.0.1
  • hjson 3.0.2
  • horovod 0.24.2
  • huggingface-hub 0.5.1
  • hydra-core 1.3.2
  • idna 3.6
  • imageio 2.16.1
  • imbalanced-learn 0.9.0
  • importlib-metadata 7.0.1
  • iniconfig 1.1.1
  • iopath 0.1.9
  • ipykernel 6.12.1
  • ipython 8.2.0
  • ipython-genutils 0.2.0
  • ipywidgets 7.7.0
  • itsdangerous 2.1.2
  • jedi 0.18.1
  • Jinja2 3.1.1
  • jmespath 0.10.0
  • joblib 1.1.0
  • json-tricks 3.17.3
  • json5 0.9.6
  • jsonpatch 1.32
  • jsonpointer 2.2
  • jsonschema 4.4.0
  • jupyter-client 7.2.2
  • jupyter-core 4.9.2
  • jupyter-server 1.16.0
  • jupyterlab 3.3.3
  • jupyterlab-pygments 0.2.0
  • jupyterlab-server 2.12.0
  • jupyterlab-widgets 1.1.0
  • keopscore 2.0
  • kiwisolver 1.4.2
  • librosa 0.9.1
  • llvmlite 0.38.0
  • lmdb 1.3.0
  • locket 0.2.1
  • lxml 4.8.0
  • Mako 1.2.0
  • Markdown 3.5.2
  • markdown-it-py 3.0.0
  • MarkupSafe 2.1.1
  • matplotlib 3.5.1
  • matplotlib-inline 0.1.3
  • mdurl 0.1.2
  • mistune 0.8.4
  • mlflow 1.24.0
  • mmcls 0.25.0
  • mmcv-full 1.5.0
  • mmdet 2.28.1
  • mmengine 0.10.3
  • mmsegmentation 0.27.0
  • model-index 0.1.11
  • mpi4py 3.1.3
  • msgpack 1.0.3
  • multidict 6.0.2
  • multiprocess 0.70.12.2
  • munch 2.5.0
  • mypy-extensions 1.0.0
  • mysql-connector-python 8.0.28
  • nbclassic 0.3.7
  • nbclient 0.5.13
  • nbconvert 6.4.5
  • nbformat 5.3.0
  • nest-asyncio 1.5.5
  • netCDF4 1.5.8
  • networkx 2.7.1
  • ninja 1.10.2.3
  • nltk 3.7
  • notebook 6.4.10
  • notebook-shim 0.1.0
  • numba 0.55.1
  • numexpr 2.8.1
  • numpy 1.24.4
  • oauthlib 3.2.0
  • odfpy 1.4.1
  • omegaconf 2.3.0
  • opencv-python 4.5.5.64
  • opendatalab 0.0.10
  • openmim 0.3.9
  • openpyxl 3.0.9
  • openxlab 0.0.34
  • ordered-set 4.1.0
  • oss2 2.17.0
  • packaging 24.0
  • paddleseg 2.8.0
  • pandas 2.2.1
  • pandocfilters 1.5.0
  • parso 0.8.3
  • partd 1.2.0
  • pathspec 0.12.1
  • pexpect 4.8.0
  • pickleshare 0.7.5
  • Pillow 9.1.0
  • pip 24.0
  • platformdirs 4.2.0
  • pluggy 1.0.0
  • pooch 1.6.0
  • portalocker 2.8.2
  • prettytable 3.9.0
  • prometheus-client 0.14.0
  • prometheus-flask-exporter 0.20.1
  • prompt-toolkit 3.0.29
  • protobuf 3.20.0
  • psutil 5.9.0
  • ptyprocess 0.7.0
  • pure-eval 0.2.2
  • py 1.11.0
  • py-cpuinfo 8.0.0
  • pyarrow 7.0.0
  • pyasn1 0.4.8
  • pyasn1-modules 0.2.8
  • pybind11 2.9.2
  • pycocotools 2.0.7
  • pycodestyle 2.8.0
  • pycparser 2.21
  • pycryptodome 3.19.0
  • pyDeprecate 0.3.2
  • pydot 1.4.2
  • pyflakes 2.4.0
  • Pygments 2.17.2
  • PyJWT 2.3.0
  • pykeops 2.0
  • pynndescent 0.5.6
  • pyparsing 3.0.7
  • pyproj 3.3.0
  • pyprojroot 0.2.0
  • pyrsistent 0.18.1
  • pytest 7.1.1
  • python-dateutil 2.9.0.post0
  • pytorch-lightning 1.6.0
  • pytz 2023.4
  • PyWavelets 1.3.0
  • PyYAML 6.0.1
  • pyzmq 22.3.0
  • querystring-parser 1.2.4
  • rarfile 4.1
  • rasterio 1.2.10
  • ray 1.11.0
  • redis 4.2.2
  • regex 2022.3.15
  • requests 2.28.2
  • requests-oauthlib 1.3.1
  • resampy 0.2.2
  • responses 0.18.0
  • rich 13.4.2
  • rsa 4.8
  • sacremoses 0.0.49
  • scikit-image 0.19.2
  • scikit-learn 1.0.2
  • scipy 1.8.0
  • seaborn 0.11.2
  • Send2Trash 1.8.0
  • setuptools 60.2.0
  • Shapely 1.8.1.post1
  • six 1.16.0
  • smart-open 5.2.1
  • smmap 5.0.0
  • sniffio 1.2.0
  • snuggs 1.4.7
  • sortedcontainers 2.4.0
  • SoundFile 0.10.3.post1
  • soupsieve 2.3.2
  • SQLAlchemy 1.4.35
  • sqlparse 0.4.2
  • stack-data 0.2.0
  • tables 3.7.0
  • tabulate 0.9.0
  • tblib 1.7.0
  • tensorboard 2.8.0
  • tensorboard-data-server 0.6.1
  • tensorboard-plugin-wit 1.8.1
  • tensorboardX 2.5
  • termcolor 2.4.0
  • terminado 0.13.3
  • terminaltables 3.1.10
  • testpath 0.6.0
  • threadpoolctl 3.1.0
  • tifffile 2022.3.25
  • timm 0.6.11
  • tokenizers 0.11.6
  • tomli 2.0.1
  • toolz 0.11.2
  • torch 1.11.0+cu115
  • torch-tb-profiler 0.4.0
  • torchaudio 0.11.0+cu115
  • torchfile 0.1.0
  • torchmetrics 0.7.3
  • torchtext 0.12.0
  • torchvision 0.12.0+cu115
  • tornado 6.1
  • tqdm 4.65.2
  • traitlets 5.1.1
  • transformers 4.18.0
  • triton 1.1.1
  • typing_extensions 4.1.1
  • tzdata 2024.1
  • umap-learn 0.5.2
  • urllib3 1.26.18
  • visdom 0.1.8.9
  • visualdl 2.5.3
  • wcwidth 0.2.5
  • webencodings 0.5.1
  • websocket-client 1.3.2
  • Werkzeug 2.1.1
  • wheel 0.37.1
  • widgetsnbextension 3.6.0
  • wrapt 1.14.0
  • xgboost 1.5.2
  • xlwt 1.3.0
  • xxhash 3.0.0
  • yacs 0.1.8
  • yapf 0.40.2
  • yarl 1.7.2
  • zict 2.1.0
  • zipp 3.17.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions