-
Notifications
You must be signed in to change notification settings - Fork 654
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
[Bug] KeyError: 'mmpretrain is not in the Codebases registry. #2077
Comments
well, i notice wget https://github.com/microsoft/onnxruntime/releases/download/v1.8.1/onnxruntime-linux-x64-1.8.1.tgz
tar -zxvf onnxruntime-linux-x64-1.8.1.tgz
export ONNXRUNTIME_DIR=$(pwd)/onnxruntime-linux-x64-1.8.1
export LD_LIBRARY_PATH=$ONNXRUNTIME_DIR/lib:$LD_LIBRARY_PATH And I can make it when converting a |
@ATang0729 Hi, mmpretrain is support after this PR #2003. You have to install mmdeploy from source. |
thx. I solved this problem. I installed mmdeploy both as a python package and from source originally. But my putting One more question, why don't we just install onnxruntime by wget https://github.com/microsoft/onnxruntime/releases/download/v1.8.1/onnxruntime-linux-x64-1.8.1.tgz
tar -zxvf onnxruntime-linux-x64-1.8.1.tgz
export ONNXRUNTIME_DIR=$(pwd)/onnxruntime-linux-x64-1.8.1
export LD_LIBRARY_PATH=$ONNXRUNTIME_DIR/lib:$LD_LIBRARY_PATH (source: https://github.com/open-mmlab/mmdeploy/blob/main/docs/en/get_started.md?plain=1#L145) |
@ATang0729 For build custom ops in mmdeploy for onnxruntime. If your model do not have custom ops, this part can be skipped.
|
I have also encountered the same problem. How did I solve it? Do I need to install MMDeploy as source code? https://github.com/open-https://github.com/open -mmlab/mmdeploy/blob/main/docs/en/01-how-to-build/linux-x86_ 64.md You can still follow get_ Take the latest precompiled package as example in started.md, install. Are MMDeploy and MMPretrain placed in the same directory or subdirectory? |
@6sz hi, yes. You need to install mmdeploy from source. you can install mmpretrain with |
Thank you very much for your reply. At present, I have installed MMDetection and MMPetrain, and they are working properly. I have followed the process to create a Conda virtual environment and installed mmcv. My next step should be to install according to "build MMDeploy from source" instead of installing according to "Linux x86_64". Is this right? |
Yes. But I guess that after "build MMDeploy from source", you still need to run
|
Checklist
Describe the bug
.pth
file built by mmpretrain to an onnx modelReproduction
In order to reproduce easier for u. u can just run the example code as shown below.
I am sure that I didn't make any modifications on the code or config.
Environment
Error traceback
The text was updated successfully, but these errors were encountered: