VoiceCraft icon indicating copy to clipboard operation
VoiceCraft copied to clipboard

Where are the 330/830TTSEnhanced .pth models?

Open lukaszliniewicz opened this issue 1 year ago • 9 comments
trafficstars

lukaszliniewicz avatar Apr 21 '24 18:04 lukaszliniewicz

what is the error that you encounterred?

jasonppy avatar Apr 21 '24 18:04 jasonppy

I just wanted to download them.

Op zo 21 apr. 2024 20:57 schreef Puyuan Peng @.***>:

what is the error that you encounterred?

— Reply to this email directly, view it on GitHub https://github.com/jasonppy/VoiceCraft/issues/107#issuecomment-2068166063, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASB2UQKK35MNFC26SE3HQW3Y6QD3LAVCNFSM6AAAAABGRSYKY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRYGE3DMMBWGM . You are receiving this because you authored the thread.Message ID: @.***>

lukaszliniewicz avatar Apr 21 '24 18:04 lukaszliniewicz

They are not on Huggingface (https://huggingface.co/pyp1/VoiceCraft/tree/main) or their own repos there except as safetensor.

Also, what is the difference between the 330MTTSEnhanced and the HalfLibri330MTTSEnhanced?

PS. Perhaps you just haven't released them yet? Though the space seems to be using them?

lukaszliniewicz avatar Apr 21 '24 22:04 lukaszliniewicz

could you access this page? https://huggingface.co/pyp1

jasonppy avatar Apr 22 '24 01:04 jasonppy

Yes, I can access it, but I see only safetensor files for 330M/830MTTSEnhanced models.

lukaszliniewicz avatar Apr 22 '24 01:04 lukaszliniewicz

ah sorry about that, a while ago I updated the files to be safetensors, they should serve the same purpose right?

jasonppy avatar Apr 22 '24 01:04 jasonppy

Sure, but isn't the code in the repo still expecting .pth files, eg. in gradio.py:

    voicecraft_name = f"{voicecraft_model_name}.pth"
    model = voicecraft.VoiceCraft.from_pretrained(f"pyp1/VoiceCraft_{voicecraft_name.replace('.pth', '')}")
    phn2num = model.args.phn2num
    config = model.args
    model.to(device)

lukaszliniewicz avatar Apr 22 '24 02:04 lukaszliniewicz

well, .pth got replaced with ''

model = voicecraft.VoiceCraft.from_pretrained(f"pyp1/VoiceCraft_{voicecraft_name.replace('.pth', '')}")

jasonppy avatar Apr 22 '24 02:04 jasonppy

You can find the .pth files here https://huggingface.co/pyp1/VoiceCraft/tree/main

jasonppy avatar Apr 27 '24 23:04 jasonppy