You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can change from detector.yolo.darknet import Darknet in darknet2onnx.py to detector.yolo.darknet_trt import Darknet, and it will work.
Thank you for your reply. I'll try it on
ARNING ⚠️ no model scale passed. Assuming scale='n'.
TypeError Traceback (most recent call last) in <cell line: 4>()
2
3 # Load a model
----> 4 model = YOLO('ECA.yaml') # load a custom model
5
6
4 frames /content/Google_Drive/MyDrive/yolov11/ultralytics-main/ultralytics/nn/tasks.py in parse_model(d, ch, verbose)
1062 c2 = ch[f]
1063
-> 1064 m_ = nn.Sequential(*(m(*args) for _ in range(n))) if n > 1 else m(*args) # module
1065 t = str(m)[8:-2].replace("main.", "") # module type
1066 m.np = sum(x.numel() for x in m_.parameters()) # number params
TypeError: ECAAttention.init() takes from 2 to 3 positional arguments but 4 were given
The text was updated successfully, but these errors were encountered: