donghuna commited on
Commit
c3b75f9
·
verified ·
1 Parent(s): 293340f

Update handler.py

Browse files
Files changed (1) hide show
  1. 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]]: