Spaces:
Running on Zero
Running on Zero
Download src/wavegen_v_spec/__init__.py from LeeSangHoon/WaveGen: direct link, hf CLI and curl.
- Browser
- Download file 497 Bytes
-
https://huggingface.co/spaces/LeeSangHoon/WaveGen/resolve/main/src/wavegen_v_spec/__init__.py
- Command line
-
hf download hf://spaces/LeeSangHoon/WaveGen/src/wavegen_v_spec/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/LeeSangHoon/WaveGen/resolve/main/src/wavegen_v_spec/__init__.py
497 Bytes
| """WaveGen V-Spec training and waveform generation.""" | |
| __version__ = "0.1.0" | |
| INFERENCE_METHOD_CHOICES = ("Prompt_xt_Anchor", "baseline", "mismatch") | |
| def normalize_inference_method(value: str) -> str: | |
| """Resolve the former public name while recording the current method name.""" | |
| if value == "mismatch": | |
| return "Prompt_xt_Anchor" | |
| if value in ("Prompt_xt_Anchor", "baseline"): | |
| return value | |
| raise ValueError("inference_method must be Prompt_xt_Anchor or baseline") | |