-
Notifications
You must be signed in to change notification settings - Fork 227
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
TypeError: 'ABCMeta' Object is not subscriptable when configuring mmseg model for PTQ and QAT #652
Comments
Hi, I remember having this issue at first when using MMRazor, but I can't remember the exact solution. I think it was coming from the Python version. I was using Python 3.8, now I'm using Python 3.10 and I don't have this error anymore. I hope this can help |
@Veccoy Upgrading Python to version 3.10, while keeping the rest of the package versions unchanged, resulted in the following error: Here is my current setup: mmcv: 2.1.0 Could you share the specific versions of Python and other packages in your working environment? Thanks! |
Hi, MMRazor does not work with PyTorch 2.x unfortunately, or you have to modified the code deeply. You can see in several script that some code parts are not run if you don't have the right Torch version (I don't know why they did this...) Try downgrading your PyTorch version to 1.13.1. You can find below my requirement file for the experiments I made, there may be useless dependencies in it. # Base requirements
ftfy
future>=0.18.2
joblib>=1.4.2
numpy==1.26.4
onnx>=1.13.0
onnx-graphsurgeon
onnxscript
regex
setuptools==60.5.0
tensorboard>=2.16.2
torch_tb_profiler # for model profiling visualization
torch==1.13.1
torchtext==0.14.1
torchvision==0.14.1
# MMLab requirements
openmim
mmengine
mmcv>=2.0.0
mmpretrain>=1.0.0
# Already installed from source
mmcls>=1.0.0rc6
mmdet>=3.0.0
mmsegmentation>1.0.0
mmrazor>=1.0.0 |
@Veccoy Thank you ! Indeed, downgrading PyTorch version to 1.13.1 works. |
Hi,
I am working on configuring a custom config file for the stdc1 model in MMsegmentation using the Cityscapes dataset, with the aim of performing both PTQ and QAT. For reference, I have looked at the following MMRazor config files:
However, I am encountering the following error during both PTQ and QAT:
Since the provided config is limited for mmcls, could you please guide me on how to properly modify the config file for the stdc1 model and Cityscapes dataset?
Below is the config files I wrote:
For ptq_openvino_stdc1_4xb12-80k_cityscapes-512x1024.py
For qat_openvino_stdc1_4xb12-80k_cityscapes-512x1024.py:
The text was updated successfully, but these errors were encountered: