mirror of
https://github.com/xiph/opus.git
synced 2025-06-05 15:03:39 +00:00
RDOVAE model update
This commit is contained in:
parent
574c766c0c
commit
c4b83ae62d
3 changed files with 3 additions and 3 deletions
|
@ -231,7 +231,7 @@ if __name__ == '__main__':
|
|||
total_loss = rate_loss + (distortion_loss_hard_quant + distortion_loss_soft_quant) / 2
|
||||
|
||||
if args.enable_first_frame_loss:
|
||||
total_loss = total_loss + 0.5 * torch.relu(first_frame_loss - distortion_loss_hard_quant)
|
||||
total_loss = .97*total_loss + 0.03 * first_frame_loss
|
||||
|
||||
|
||||
total_loss.backward()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue