Spaces:
Sleeping
Sleeping
Update Yolov5_Deepsort/models/common.py
Browse files
Yolov5_Deepsort/models/common.py
CHANGED
|
@@ -234,6 +234,7 @@ class AutoShape(nn.Module):
|
|
| 234 |
def __init__(self, model):
|
| 235 |
super(AutoShape, self).__init__()
|
| 236 |
self.model = model.eval()
|
|
|
|
| 237 |
|
| 238 |
def autoshape(self):
|
| 239 |
print('AutoShape already enabled, skipping... ') # model already converted to model.autoshape()
|
|
|
|
| 234 |
def __init__(self, model):
|
| 235 |
super(AutoShape, self).__init__()
|
| 236 |
self.model = model.eval()
|
| 237 |
+
self.model = self.model.float()
|
| 238 |
|
| 239 |
def autoshape(self):
|
| 240 |
print('AutoShape already enabled, skipping... ') # model already converted to model.autoshape()
|