Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -18,7 +18,7 @@ class EndpointHandler:
|
|
18 |
'donghuna/timesformer-base-finetuned-k400-diving48',
|
19 |
ignore_mismatched_sizes=True
|
20 |
)
|
21 |
-
self.model.classifier = torch.nn.Linear(self.model.classifier.in_features, 48) # 48 output classes
|
22 |
self.model.eval()
|
23 |
|
24 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
|
18 |
'donghuna/timesformer-base-finetuned-k400-diving48',
|
19 |
ignore_mismatched_sizes=True
|
20 |
)
|
21 |
+
# self.model.classifier = torch.nn.Linear(self.model.classifier.in_features, 48) # 48 output classes
|
22 |
self.model.eval()
|
23 |
|
24 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|