-
Notifications
You must be signed in to change notification settings - Fork 12
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
代码运行问题 #13
Comments
你好,该仓库包含的yolov5代码版本为v6.1,更新您的代码库为v6.1即可,或选择克隆本仓库的yolov5代码到本地或服务器端运行🍺 |
好的,谢谢您,现在又遇到一个问题AttributeError: module 'torch.nn' has no attribute 'Mish',这是torch版本的问题还是哪里没设置好呢?我的torch版本是1.8.0 |
请将以下代码copy至common.py(注意缩进),并将原代码中的 nn.Mish 字段更改为 Mish 字段。 class Mish(nn.Module): |
好的,解决了,十分感谢您的耐心解答~ |
您好,我在将您的代码配置在yolov5-v7.0版本上进行训练时,出现了如下错误,您知道如何解决吗?
详细报错信息如下
|
你好,我猜测可能是7.0版本的基础卷积代码更新导致的,你可以尝试使用下面的GSConv代码:
请注意,7.0版本新增了参数‘d’ (c1, c2, k, s, g, d, act),你必须让任何调用了‘GSConv’和‘Conv’类的那些类的传入参数的个数正确。 |
'ReLU' object has no attribute 'dim',用yolov5-6.1报了这个错误,应该如何解决 |
你需要提供完整的报错信息让我更好地帮你定位和修复错误。我猜测你可能使用了GSConvs(使用了ReLU),尝试使用GSConv. |
您好,我在将您的代码配置在yolov5-v6.0版本上进行训练时,出现了如下错误,您知道如何解决吗?
line 376, in kaiming_uniform_
std = gain / math.sqrt(fan)
ZeroDivisionError: float division by zero
The text was updated successfully, but these errors were encountered: