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

How to perform quantization #103

Open
escorciav opened this issue Feb 21, 2023 · 0 comments
Open

How to perform quantization #103

escorciav opened this issue Feb 21, 2023 · 0 comments
Labels
question Further information is requested

Comments

@escorciav
Copy link

escorciav commented Feb 21, 2023

❔Question

Dear @debapriyamaji, thanks a lot for providing the code of YOLOv5Pose. I was wondering,

  • Did you release the scripts (functions, classes, utilities) for quantization?

  • Could you please provide more details about the mixed-precision results?

Any pointer it's highly appreciated, as it's my first time using Pytorch quantization API.

Additional context

  • I'm using the Pytorch Quantization API. I added the corresponding torch.quantization.QuantStub/DeQuantStub & nn.quantized.FloatFunctional boilerplate.

  • ATM I achieve low performance with static PTQ & QINT8. I'm testing on my desktop CPU, i.e., I haven't done on-device testing yet.

Results

Dataset: COCO-val
Quantization type: Static PTQ
Model: yolov5s6_pose_640_ti_lite/last.pt (md5sum: f3a72894e9d0d4a4095174b0e795d7b8)
Data type: QINT8

 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets= 20 ] =  0.079
 Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets= 20 ] =  0.289
 Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets= 20 ] =  0.012
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets= 20 ] =  0.053
 Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets= 20 ] =  0.118
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets= 20 ] =  0.248
 Average Recall     (AR) @[ IoU=0.50      | area=   all | maxDets= 20 ] =  0.618
 Average Recall     (AR) @[ IoU=0.75      | area=   all | maxDets= 20 ] =  0.147
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets= 20 ] =  0.171
 Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets= 20 ] =  0.353

000000006471_pred

@escorciav escorciav added the question Further information is requested label Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant