Closed moonsh closed 1 year ago
Hi, @moonsh
Sorry for late reply, I have fixed the dataloader for ncnn quantization, you can apply the code change according to https://github.com/open-mmlab/mmdeploy/pull/2018
@irexyc No problem!. Thank you for the update!
Checklist
Describe the bug
The below command I tried for generating INT8 litehrnet model.
python tools/deploy.py configs/mmpose/pose-detection_ncnn-int8_static-256x192.py ../mmpose/configs/body_2d_keypoint/topdown_heatmap/coco/td-hm_litehrnet-18_8xb64-210e_coco-256x192.py ../mmpose/litehrnet18_coco_256x192.pth demo/resources/human-pose.jpg --work-dir litehrnet_ncnn --device cpu --dump-info --quant --quant-image-dir imagenet-sample-images/
However, it keeps failing when it's generating a quant table. and error message is below
AttributeError: 'ConfigDict' object has no attribute '_env_variables' mmengine - ERROR - tools/deploy.py - create_process - 82 - ncnn quant table failed.
Reproduction
python tools/deploy.py configs/mmpose/pose-detection_ncnn-int8_static-256x192.py ../mmpose/configs/body_2d_keypoint/topdown_heatmap/coco/td-hm_litehrnet-18_8xb64-210e_coco-256x192.py ../mmpose/litehrnet18_coco_256x192.pth demo/resources/human-pose.jpg --work-dir litehrnet_ncnn --device cpu --dump-info --quant --quant-image-dir imagenet-sample-images/
Environment
Error traceback
No response