Skip to content

Commit

Permalink
Fix original shape matching with crop (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
npuichigo authored Nov 10, 2024
1 parent 0e64c4e commit 911e037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fish_speech/models/vqgan/modules/fsq.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def forward(self, z) -> FSQResult:
if diff > 0:
result.z = F.pad(result.z, (left, right))
elif diff < 0:
result.z = result.z[..., left:-right]
result.z = result.z[..., -left:right]

return result

Expand Down

0 comments on commit 911e037

Please sign in to comment.