Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Aug 13, 2021
1 parent f71f5e3 commit 3b03eba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flash/video/classification/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def load_data(self, data: str, dataset: Optional[Any] = None) -> "LabeledVideoDa
dataset.num_classes = len(np.unique([s[1]["label"] for s in ds._labeled_videos]))
return ds

def load_sample(self, sample):
return sample

def predict_load_sample(self, sample: Dict[str, Any]) -> Dict[str, Any]:
video_path = sample[DefaultDataKeys.INPUT]
sample.update(self._encoded_video_to_dict(EncodedVideo.from_path(video_path)))
Expand Down

0 comments on commit 3b03eba

Please sign in to comment.