Skip to content

Commit

Permalink
Fix some arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
rakuri255 committed Dec 28, 2024
1 parent 165b527 commit 50fbbe4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/UltraSinger.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,7 @@ def init_settings(argv: list[str]) -> Settings:
settings.ignore_audio = True
elif opt in ("--force_cpu"):
settings.force_cpu = True
if settings.force_cpu:
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
elif opt in ("--force_whisper_cpu"):
settings.force_whisper_cpu = True
elif opt in ("--force_crepe_cpu"):
Expand Down Expand Up @@ -728,18 +727,18 @@ def arg_options():
"whisper_batch_size=",
"whisper_compute_type=",
"language=",
"plot=",
"midi=",
"plot",
"midi",
"disable_hyphenation",
"disable_separation",
"disable_karaoke",
"create_audio_chunks",
"ignore_audio=",
"ignore_audio",
"force_cpu",
"force_whisper_cpu",
"force_crepe_cpu",
"format_version=",
"keep_cache=",
"keep_cache",
"musescore_path=",
"keep_numbers",
"interactive",
Expand Down

0 comments on commit 50fbbe4

Please sign in to comment.