Skip to content

Commit

Permalink
24L
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMax2016 authored Jul 11, 2023
1 parent 541737e commit 4024615
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prepare/preprocess_ppg.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def load_model(path) -> Whisper:
print(dims)
model = Whisper(dims)
del model.decoder
# cut = len(model.encoder.blocks) // 2
# cut = -1 * cut
# del model.encoder.blocks[cut:]
cut = len(model.encoder.blocks) // 4
cut = -1 * cut
del model.encoder.blocks[cut:]
model.load_state_dict(checkpoint["model_state_dict"], strict=False)
model.eval()
model.half()
Expand Down

0 comments on commit 4024615

Please sign in to comment.