-
Notifications
You must be signed in to change notification settings - Fork 1k
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 Use QAT for Segmentation with YOLOv6? #1055
Comments
Update: I changed my config to:
I then ran the following command:
But it loaded the model first and at the end gave me this error:
I got this error for both PTQ and QAT. |
Update2: I fixed the above error by adding the following function to
But now I get another error regarding calib max when I try to do PTQ
|
@Chilicyy Any thoughts on this? |
Update 3: As I mentioned above during the PTQ process, I encountered a new error related to calibration maximum (calib max). Specifically, the error message indicated that the calibrator returned None, suggesting it hasn't seen any tensor during calibration. To diagnose this, I added detailed logging and discovered that the
It seems that during the calibration phase, these layers are not receiving the expected data, leading to the calibrator returning None. Maybe the issue is because of adding the following function to the
Any suggestions? |
Update 4: I've made some changes to the
|
@zhiyelee @cfc4n @yeldarby @rainsun If it had been mentioned that the segmentation model does not support QAT, I could have explored other options instead of losing three weeks of my time. |
Search before asking
Description
Hi YOLOv6 Team,
I am currently working on a project that requires Quantization-Aware Training (QAT) for segmentation tasks using YOLOv6. I noticed that configurations like
yolov6n_hs
,yolov6n_opt
, andyolov6n_opt_qat
are available for detection but not for segmentation.To achieve QAT for segmentation, should I add the following configurations at the end of my config file:
Could you please guide me on the correct approach to enable QAT for segmentation tasks?
Are there any example configurations or guidelines available for integrating QAT with segmentation in YOLOv6?
Thank you.
Use case
No response
Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: