Skip to content

Commit

Permalink
fix perceptual loss
Browse files Browse the repository at this point in the history
  • Loading branch information
nnaakkaaii committed Jul 1, 2024
1 parent cb52347 commit 49ef9b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hrdae/conf
1 change: 1 addition & 0 deletions hrdae/models/losses/perceptual.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def __init__(
if torch.cuda.is_available():
self.network.to("cuda:0")
self.network = nn.DataParallel(self.network)
self.network.eval()

def forward(self, input: Tensor, target: Tensor) -> Tensor:
b, t = input.size()[:2]
Expand Down

0 comments on commit 49ef9b1

Please sign in to comment.