Closed zhanghui-china closed 1 year ago
hi, you need to change val_dataloader
in model_config to set calibration dataset for trt-int8
.
pls tellme how to do
hi, pls. refer to this doc: https://mmdeploy.readthedocs.io/en/latest/05-supported-backends/tensorrt.html#int8-support
This issue is marked as stale because it has been marked as invalid or awaiting response for 7 days without any further response. It will be closed in 5 days if the stale label is not removed or if there is no further response.
This issue is closed because it has been stale for 5 days. Please open a new issue if you have similar issues or you have any new updates now.
Checklist
Describe the bug
when i execute cuda_resnet.sh
python tools/deploy.py \ configs/mmpretrain/classification_tensorrt-int8_static-224x224.py \ /home1/zhanghui/mmpretrain/configs/resnet/resnet50_8xb32_in1k.py \ /home1/zhanghui/resnet50_batch256_imagenet_20200708-cfb998bf.pth \ /home1/zhanghui/mmpretrain/demo/demo.JPEG \ --work-dir mmdeploy_models/mmpretrain/resnet50 \ --device cuda:0 \ --dump-info
it shows:FileNotFoundError: [Errno 2] No such file or directory: 'data/imagenet/val
Reproduction
export MMDEPLOY_DIR=/home1/zhanghui/mmdeploy cd ${MMDEPLOY_DIR} sh ./cuda_resnet50.sh
Environment
Error traceback