-
Notifications
You must be signed in to change notification settings - Fork 142
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
Carafe #53
Comments
你发下命令 看看 |
也可以先clone我新的代码 因为昨天进行了一次大更新 |
你好,我是基于您的代码对我的v6.0的common.py和yolo.py进行了修改。具体修改如下 在common.py中添加了如下内容:
在yolo.py中添加了CARAFE,修改如下: 运行的具体指令如下: |
好的,我看看,您有空也可以看看我结合您代码进行的更改是否存在问题。即使不结合trans,仅在yolov5-6.0.yaml中基于上述修改替换CARAFE算子依然报上述错误“: yolo.py in parse_model c2_ = make_divisible(c2 * gw, 8) TypeError: unsupported operand type(s) for *: 'NoneType' and 'float' ” |
clone您新的代码并在您的文件夹下运行指令“python train.py --weights weights/yolov5s.pt --cfg models/yolov5s-carafe.yaml --data data/Weld2009.yaml --epoch 300 --batch-size 8 --img 608 --device '0' --name l-Cara”后报错如下“File "train.py", line 416, in train |
好的 今天更新 不过我先测下yolov7的结构 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
❔Question
你好,我在尝试采用carafe算子进行训练时,报错如下:
yolo.py in parse_model
c2_ = make_divisible(c2 * gw, 8)
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
请问该如何解决呢?是哪里没设置对吗?
Additional context
The text was updated successfully, but these errors were encountered: