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

YoloV5-DSConv 后报错,我使用的yolov5 7.0版本 #54

Open
nortorious opened this issue Nov 29, 2024 · 1 comment
Open

YoloV5-DSConv 后报错,我使用的yolov5 7.0版本 #54

nortorious opened this issue Nov 29, 2024 · 1 comment

Comments

@nortorious
Copy link

nortorious commented Nov 29, 2024

`Traceback (most recent call last):
File "D:\Github Project\yolov5-7.0\train.py", line 900, in
main(opt)

File "D:\Github Project\yolov5-7.0\train.py", line 763, in main
train(opt.hyp, opt, device, callbacks)

File "D:\Github Project\yolov5-7.0\train.py", line 168, in train
model = Model(cfg, ch=3, nc=nc, anchors=hyp.get('anchors')).to(device) # create

File "D:\Github Project\yolov5-7.0\models\yolo.py", line 277, in init
self.model, self.save = parse_model(deepcopy(self.yaml), ch=[ch]) # model, savelist

File "D:\Github Project\yolov5-7.0\models\yolo.py", line 516, in parse_model
m_ = nn.Sequential(*(m(*args) for _ in range(n))) if n > 1 else m(*args) # module

File "D:\Github Project\yolov5-7.0\models\common.py", line 2102, in init
self.m = nn.Sequential(*(Bottleneck_DSConv(c_, c_, shortcut, g, e=1.0) for _ in range(n)))

File "D:\Github Project\yolov5-7.0\models\common.py", line 2102, in
self.m = nn.Sequential(*(Bottleneck_DSConv(c_, c_, shortcut, g, e=1.0) for _ in range(n)))

File "D:\Github Project\yolov5-7.0\models\common.py", line 2090, in init
self.cv1 = DSConv2D(c1, c_, 1, 1)

File "D:\Github Project\yolov5-7.0\models\common.py", line 2081, in init
self.conv = DSConv(inc, ouc, k, s, p, g,d)

TypeError: init() takes from 4 to 7 positional arguments but 8 were given`

@Mizokuiam
Copy link

Great observation! Let me add some thoughts...

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

2 participants