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

已解决: RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.cuda.HalfTensor) should be the same #21

Open
dorannn opened this issue Jun 22, 2023 · 5 comments

Comments

@dorannn
Copy link

dorannn commented Jun 22, 2023

在position coding时,输入固定float,在yolo训练val时会自动进行半精度训练,将position()输出类型转换成input就好
position(......).to(x.dtype)

@Deargoodnight
Copy link

哥们,问一哈,可以搞到自然语言处理用吗?

@dorannn
Copy link
Author

dorannn commented Jan 7, 2024

哥们,问一哈,可以搞到自然语言处理用吗?

不知道呀,我是目标检测

@JasonYangCode
Copy link

Good Job!

@wuxiaohui0
Copy link

在position coding时,输入固定float,在yolo训练val时会自动进行半精度训练,将position()输出类型转换成input就好 position(......).to(x.dtype)

这个是不是会导致模型在val的时候会造成模型的结果不可复现。

@dorannn
Copy link
Author

dorannn commented Nov 30, 2024

在position coding时,输入固定float,在yolo训练val时会自动进行半精度训练,将position()输出类型转换成input就好 position(......).to(x.dtype)

这个是不是会导致模型在val的时候会造成模型的结果不可复现。

不太清楚,如果用yolov6的话,不可复现会有提示,其他不知道

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants