Spaces:
Sleeping
Sleeping
Update Yolov5_Deepsort/models/common.py
Browse files
Yolov5_Deepsort/models/common.py
CHANGED
@@ -34,7 +34,7 @@ class Conv(nn.Module):
|
|
34 |
# Standard convolution
|
35 |
def __init__(self, c1, c2, k=1, s=1, p=None, g=1, act=True): # ch_in, ch_out, kernel, stride, padding, groups
|
36 |
super(Conv, self).__init__()
|
37 |
-
self.conv = nn.Conv2d(c1, c2, k, s, autopad(k, p), groups=g, bias=False)
|
38 |
self.bn = nn.BatchNorm2d(c2).float()
|
39 |
self.act = nn.SiLU().float() if act is True else (act if isinstance(act, nn.Module) else nn.Identity())
|
40 |
|
|
|
34 |
# Standard convolution
|
35 |
def __init__(self, c1, c2, k=1, s=1, p=None, g=1, act=True): # ch_in, ch_out, kernel, stride, padding, groups
|
36 |
super(Conv, self).__init__()
|
37 |
+
self.conv = nn.Conv2d(c1, c2, k, s, autopad(k, p), groups=g, bias=False).float()
|
38 |
self.bn = nn.BatchNorm2d(c2).float()
|
39 |
self.act = nn.SiLU().float() if act is True else (act if isinstance(act, nn.Module) else nn.Identity())
|
40 |
|