Spaces:
Running
Running
Clement Vachet
commited on
Commit
·
5eda9a8
1
Parent(s):
ae565a0
Fix: fix model eval
Browse files- detect_torch.py +1 -1
detect_torch.py
CHANGED
@@ -95,7 +95,7 @@ def detect(im, model, transform):
|
|
95 |
|
96 |
def load_model():
|
97 |
model = torch.hub.load('facebookresearch/detr', 'detr_resnet50', pretrained=True)
|
98 |
-
model.eval()
|
99 |
return model
|
100 |
|
101 |
def main():
|
|
|
95 |
|
96 |
def load_model():
|
97 |
model = torch.hub.load('facebookresearch/detr', 'detr_resnet50', pretrained=True)
|
98 |
+
model.eval()
|
99 |
return model
|
100 |
|
101 |
def main():
|