You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read the README carefully. 我已经仔细阅读了README上的操作指引。
I want to train my custom dataset, and I have read the tutorials for training your custom data carefully and organize my dataset correctly; (FYI: We recommand you to apply the config files of xx_finetune.py.) 我想训练自定义数据集,我已经仔细阅读了训练自定义数据的教程,以及按照正确的目录结构存放数据集。(FYI: 我们推荐使用xx_finetune.py等配置文件训练自定义数据集。)
I have pulled the latest code of main branch to run again and the problem still existed. 我已经拉取了主分支上最新的代码,重新运行之后,问题仍不能解决。
Search before asking
I have searched the YOLOv6 issues and found no similar questions.
Question
Hi,
I tried to use QAT for the detection model as described in the following link.
I downloaded the checkpoint and scale and followed the instructions. When I tried to do PTQ with the final version of YOLOv6, I got the following error:
Loading state_dict from ./assets/yolov6s_v2_reopt.pt for fine-tuning...
Traceback (most recent call last):
File "C:\Users\Hamed\YOLOv6-det\tools\train.py", line 143, in <module>
main(args)
File "C:\Users\Hamed\YOLOv6-det\tools\train.py", line 128, in main
trainer = Trainer(args, cfg, device)
File "C:\Users\Hamed\YOLOv6-det\yolov6\core\engine.py", line 58, in __init__
model = self.get_model(args, cfg, self.num_classes, device)
File "C:\Users\Hamed\YOLOv6-det\yolov6\core\engine.py", line 424, in get_model
model = load_state_dict(weights, model, map_location=device)
File "C:\Users\Hamed\YOLOv6-det\yolov6\utils\checkpoint.py", line 13, in load_state_dict
ckpt = torch.load(weights, map_location=map_location)
File "C:\Users\Hamed\miniconda3\envs\yolov6\lib\site-packages\torch\serialization.py", line 809, in load
return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
File "C:\Users\Hamed\miniconda3\envs\yolov6\lib\site-packages\torch\serialization.py", line 1172, in _load
result = unpickler.load()
File "C:\Users\Hamed\miniconda3\envs\yolov6\lib\site-packages\torch\serialization.py", line 1165, in find_class
return super().find_class(mod_name, name)
AttributeError: Can't get attribute 'SimConv' on <module 'yolov6.layers.common' from 'C:\\Users\\Hamed\\YOLOv6-det\\yolov6\\layers\\common.py'>
Then, I used version 3 of YOLOv6 and the PTQ worked, but when I tried to do QAT, it gave me a new error. I tried different solutions, but none of them worked. In between I got anchors_init error that I figured it out.
Do you have any suggestions or solutions? Why don't the instructions provided by the authors work?
Before Asking
I have read the README carefully. 我已经仔细阅读了README上的操作指引。
I want to train my custom dataset, and I have read the tutorials for training your custom data carefully and organize my dataset correctly; (FYI: We recommand you to apply the config files of xx_finetune.py.) 我想训练自定义数据集,我已经仔细阅读了训练自定义数据的教程,以及按照正确的目录结构存放数据集。(FYI: 我们推荐使用xx_finetune.py等配置文件训练自定义数据集。)
I have pulled the latest code of main branch to run again and the problem still existed. 我已经拉取了主分支上最新的代码,重新运行之后,问题仍不能解决。
Search before asking
Question
Hi,
I tried to use QAT for the detection model as described in the following link.
https://github.com/meituan/YOLOv6/blob/main/tools/qat/README.md
I downloaded the checkpoint and scale and followed the instructions. When I tried to do PTQ with the final version of YOLOv6, I got the following error:
Then, I used version 3 of YOLOv6 and the PTQ worked, but when I tried to do QAT, it gave me a new error. I tried different solutions, but none of them worked. In between I got
anchors_init
error that I figured it out.Do you have any suggestions or solutions? Why don't the instructions provided by the authors work?
Additional
No response
The text was updated successfully, but these errors were encountered: