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

有没有哪里隐藏了对模型的half #977

Closed
4 tasks done
TD-wzw opened this issue Dec 7, 2023 · 0 comments
Closed
4 tasks done

有没有哪里隐藏了对模型的half #977

TD-wzw opened this issue Dec 7, 2023 · 0 comments
Labels
question Further information is requested

Comments

@TD-wzw
Copy link

TD-wzw commented Dec 7, 2023

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

  • I have searched the YOLOv6 issues and found no similar questions.

Question

我用pytorch的fx图模式对模型进行量化报错
preds, s_featmaps = self.qat_model(images)
File "/opt/conda/lib/python3.7/site-packages/torch/fx/graph_module.py", line 616, in wrapped_call
raise e.with_traceback(None)
RuntimeError: expected scalar type Float but found Half
我没看到哪里有对模型做.half()也没看到哪对数据做.half(),并且打印出来的images.dtype和qat_model.dtype都是float32,好奇怪啊

Additional

No response

@TD-wzw TD-wzw added the question Further information is requested label Dec 7, 2023
@TD-wzw TD-wzw closed this as completed Dec 7, 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