Skip to content

Commit 29bf807

Browse files
Cleanup. (#9838)
1 parent 2559dee commit 29bf807

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

comfy/audio_encoders/audio_encoders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_sd(self):
3131
def encode_audio(self, audio, sample_rate):
3232
comfy.model_management.load_model_gpu(self.patcher)
3333
audio = torchaudio.functional.resample(audio, sample_rate, self.model_sample_rate)
34-
out, all_layers = self.model(audio.to(self.load_device), sr=self.model_sample_rate)
34+
out, all_layers = self.model(audio.to(self.load_device))
3535
outputs = {}
3636
outputs["encoded_audio"] = out
3737
outputs["encoded_audio_all_layers"] = all_layers

comfy/audio_encoders/wav2vec2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def __init__(
238238
device=device, dtype=dtype, operations=operations
239239
)
240240

241-
def forward(self, x, sr=16000, mask_time_indices=None, return_dict=False):
241+
def forward(self, x, mask_time_indices=None, return_dict=False):
242242
x = torch.mean(x, dim=1)
243243

244244
if self.do_normalize:

0 commit comments

Comments
 (0)