15 Commits

Author SHA1 Message Date
changhaowuwu
8b195a5adb security: replace eval() with safe boolean parsing
Replace all uses of eval() on environment variables and command-line
arguments with safe string comparison. eval() allows arbitrary code
execution when given untrusted input, making it a security risk.

The fix uses .lower() in ("true", "1", "yes") which produces
identical behavior for all valid boolean inputs while preventing
code injection. This pattern is already used in config.py.

Affected files (10 call sites):
- GPT_SoVITS/inference_webui.py (is_share, is_half)
- GPT_SoVITS/inference_webui_fast.py (is_share, is_half)
- GPT_SoVITS/prepare_datasets/1-get-text.py (is_half)
- GPT_SoVITS/prepare_datasets/2-get-hubert-wav32k.py (is_half)
- GPT_SoVITS/prepare_datasets/2-get-sv.py (is_half)
- GPT_SoVITS/prepare_datasets/3-get-semantic.py (is_half)
- tools/uvr5/webui.py (is_half, is_share)
- tools/subfix_webui.py (is_share)
2026-02-25 22:08:01 +01:00
XXXXRT666
53cac93589
Refactor: Format Code with Ruff and Update Deprecated G2PW Link (#2255)
* ruff check --fix

* ruff format --line-length 120 --target-version py39

* Change the link for G2PW Model

* update pytorch version and colab
2025-04-07 16:42:47 +08:00
RVC-Boss
13573a1b06
fix torch.load 2025-03-26 15:22:01 +08:00
RVC-Boss
1867780d56
https://github.com/RVC-Boss/GPT-SoVITS/issues/2048
https://github.com/RVC-Boss/GPT-SoVITS/issues/2048
2025-02-14 12:01:27 +08:00
XXXXRT666
ea56b814bd
Chores (#1422)
Make Gradio Great Again
附带vs2017下载链接
增加了各种数据集检查,若缺失会弹出warning
修复了warning乱弹的bug
修复了参考音频混合只能上传一条的bug
修复了下载G2PW Model出现import错误的bug
修复了Windows训练无N卡在预处理阶段的报错
2024-08-13 16:31:12 +08:00
RVC-Boss
124faf6bcf
Add files via upload 2024-08-07 16:30:00 +08:00
XXXXRT666
805dbd7ff2
Remove warnings and add some warnings (#1408) 2024-08-06 18:37:55 +08:00
XXXXRT666
a3f5fb9614
v1v2 Version Switching (#1391)
v1v2 Version Switching
2024-08-06 12:00:51 +08:00
RVC-Boss
bce451a2d1
fix cpu+fp16 inference issue
fix cpu+fp16 inference issue
2024-08-01 21:47:30 +08:00
Lion
1963eb01cc support cpu training, use cpu training on mac 2024-03-13 22:24:32 +08:00
Wu Zichen
3029560356 Fix indentation issue 2024-01-26 01:40:18 +08:00
RVC-Boss
8e54a36f2c
Update 3-get-semantic.py 2024-01-25 23:28:16 +08:00
Wu Zichen
07a5339691 mps support 2024-01-24 19:37:47 +08:00
Blaise
0d3d47f3c3 more code refactor 2024-01-16 17:14:18 +01:00
RVC-Boss
41ca6028d6
Add files via upload 2024-01-16 17:38:48 +08:00