Skip to content

Commit

Permalink
feat(transformers): debug video classify pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
wcrzlh committed Jan 22, 2025
1 parent d8895dd commit 82602e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mindone/transformers/pipelines/video_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def postprocess(self, model_outputs, top_k=5, function_to_apply="softmax"):
if top_k > self.model.config.num_labels:
top_k = self.model.config.num_labels

if self.framework == "pt":
if self.framework == "ms":
if function_to_apply == "softmax":
probs = model_outputs.logits[0].softmax(-1)
elif function_to_apply == "sigmoid":
Expand Down

0 comments on commit 82602e3

Please sign in to comment.