Skip to content
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: "EncoderDecoder: 'VIT_MLA is not in the models registry'" #1

Open
APeiZou opened this issue May 18, 2021 · 5 comments
Open

Comments

@APeiZou
Copy link

APeiZou commented May 18, 2021

hello,why is it this KeyError: "EncoderDecoder: 'VIT_MLA is not in the models registry'". I should do what to registry VIT_MLA

@XiongweiWu
Copy link
Collaborator

XiongweiWu commented May 18, 2021

@APeiZou Hi, you may just follow the installation instructions, and the VIT_MLA backbone will be automatically registered into the software.

I think the code should be ok to use but anyway I will double-check it soon since I am a bit busy with the coming ddl now. Once I finish the checking I will update here.

@EricBizet
Copy link

I am currently encountering the same issue (KeyError: "EncoderDecoder: 'VIT_MLA is not in the models registry'") while trying to run an inference and get_started.md does not provide information on setting up the VIT_MLA backbone.

Current code:

from mmseg.apis import init_segmentor, inference_segmentor, show_result_pyplot
from mmseg.core.evaluation import get_palette
config_file = 'configs/SETR_MLA_768x768_80k_base.py'
checkpoint_file = 'models/model.pth'
# build the model from a config file and a checkpoint file
model = init_segmentor(config_file, checkpoint_file, device='cuda:0')

Any updates on this one ? Thank you

@XiongweiWu
Copy link
Collaborator

@EricBizet Sorry for replying late. I will check it this weekend. Sorry again I am super busy with other 2 projects and I fail to answer you on time.

@EricBizet
Copy link

EricBizet commented Aug 7, 2021

No worries, I managed to get it to work be using this Dockerfile I made based off yours:

FROM pytorch/pytorch:1.6.0-cuda10.1-cudnn7-devel

WORKDIR /usr/src/app

RUN apt-get update && apt-get install -y git
RUN apt-get install ffmpeg libsm6 libxext6  -y

RUN pip install mmcv-full==1.3.0 -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.6.0/index.html

RUN git clone https://github.com/LARC-CMU-SMU/FoodSeg103-Benchmark-v1.git mmsegmentation
WORKDIR /usr/src/app/mmsegmentation
RUN pip install -e .

RUN pip install jupyterlab==2.2.0 timm

ENTRYPOINT ["/bin/bash", "-c", "jupyter notebook --no-browser --allow-root --ip 0.0.0.0"]

The installation instructions were about pulling the official mmseg repo which does not include the same backbone files as yours (and if doing so, your need to copy and paste files manually in the backbone folder).

Cheers,

Eric

@XiongweiWu
Copy link
Collaborator

XiongweiWu commented Aug 11, 2021

@EricBizet Thx, I also find this issue. Current install instruction is not comprehensive, and I will refine the code as well as the install instruction soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants