VoiceCraft icon indicating copy to clipboard operation
VoiceCraft copied to clipboard

Possible Use Before Defined

Open ColeMurray opened this issue 11 months ago • 4 comments

https://github.com/jasonppy/VoiceCraft/blob/master/inference_speech_editing_scale.py#L127

ColeMurray avatar Apr 01 '24 07:04 ColeMurray

could you elaborate?

jasonppy avatar Apr 01 '24 14:04 jasonppy

could you elaborate?

end can be returned as not defined due to the if statement and it not being declared prior.

yumlevi avatar Apr 01 '24 23:04 yumlevi

does it happen with the demo example? If not, it could be some error when you specify target_transcript and edit_type in cell 5 of inference_speech_editing.ipynb. for example, right now the code only support single edits, and therefore you shouldn't change more than one span in the target_transcript.

(inference_speech_editing_scale.py does support multiple edits, but I haven't gotten the time to make a runnable example)

jasonppy avatar Apr 02 '24 00:04 jasonppy

Or you can reply here your orig_transcirpt, target_transcript, and edit_type.

jasonppy avatar Apr 02 '24 00:04 jasonppy