From b820e9f6a0f38b03a90edf54800fa7ec73da09d2 Mon Sep 17 00:00:00 2001 From: gexy5 Date: Tue, 14 Jun 2022 15:07:41 +0800 Subject: [PATCH] add omnivore Signed-off-by: gexy5 --- omnivore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omnivore.py b/omnivore.py index fac3b53..1d2ab94 100644 --- a/omnivore.py +++ b/omnivore.py @@ -101,7 +101,7 @@ class Omnivore(NNOperator): outs = self.model(inputs) post_act = torch.nn.Softmax(dim=1) - preds = post_act(outs) + preds = post_act(outs,input_type="video") pred_scores, pred_classes = preds.topk(k=self.topk) labels = [self.classmap[int(i)] for i in pred_classes[0]] scores = [round(float(x), 5) for x in pred_scores[0]]