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 Jul 9, 2021
1 parent fcffb56 commit 40b2404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flash/video/classification/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ def on_train_epoch_start(self) -> None:
encoded_dataset._video_sampler.set_epoch(self.trainer.current_epoch)
super().on_train_epoch_start()

def step(self, batch: Any, batch_idx: int) -> Any:
return super().step((batch["video"], batch["label"]), batch_idx)
def step(self, batch: Any, batch_idx: int, metrics) -> Any:
return super().step((batch["video"], batch["label"]), batch_idx, metrics)

def forward(self, x: Any) -> Any:
x = self.backbone(x)
Expand Down

0 comments on commit 40b2404

Please sign in to comment.