We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我用的是YOLOv5s模型为基础,在backbone第九层加入了CloAttention,照着视频里的做法,修改了yolo.py文件,但是训练的时候报错: "RuntimeError: shape '[28, 2, -1, 64, 24]' is invalid for input of size 286720" 错误发生在第77行: “kv = to_kv(kv).view(b, 2, -1, self.dim_head, (h*w)//(self.window_size**2)).permute(1, 0, 2, 4, 3).contiguous() #(2 b m (H W) d)” 是维度错误,每一轮训练结束后的验证阶段开始的时候报错.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
我用的是YOLOv5s模型为基础,在backbone第九层加入了CloAttention,照着视频里的做法,修改了yolo.py文件,但是训练的时候报错:
"RuntimeError: shape '[28, 2, -1, 64, 24]' is invalid for input of size 286720"
错误发生在第77行:
“kv = to_kv(kv).view(b, 2, -1, self.dim_head, (h*w)//(self.window_size**2)).permute(1, 0, 2, 4, 3).contiguous() #(2 b m (H W) d)”
是维度错误,每一轮训练结束后的验证阶段开始的时候报错.
The text was updated successfully, but these errors were encountered: