Skip to content

Commit

Permalink
Hotfix voiuce extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
henryruhs committed Apr 10, 2024
1 parent 596d84c commit 63ea269
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions facefusion/voice_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ def prepare_audio_chunk(temp_audio_chunk : AudioChunk, chunk_size : int, trim_si
temp_audio_chunks = []

for index in range(0, audio_chunk_size, step_size):
temp_audio_chunk = temp_audio_chunk[:, index:index + chunk_size]
temp_audio_chunks.append(temp_audio_chunk)
temp_audio_chunks.append( temp_audio_chunk[:, index:index + chunk_size])
temp_audio_chunk = numpy.concatenate(temp_audio_chunks, axis = 0)
temp_audio_chunk = temp_audio_chunk.reshape((-1, chunk_size))
return temp_audio_chunk, pad_size
Expand Down

0 comments on commit 63ea269

Please sign in to comment.