Fix half argument (#1683) (#1775)

* for GTX1650

* testing torch-profiler

* no more profiler & change default audio

* longer slice

* fluid container

* cache rmvpe and ui tweaks

* get my changes back after merge

* format code

* only load rmvpe when necessary

* fix rmvpe & config bug

* fix is_half again

* manual sync with upstream

* fix bool() for is_half

* revert changes for PR

* revert again

* typo

* match lower case
This commit is contained in:
Zzzyt 2024-01-30 11:51:40 +08:00 committed by GitHub
parent 401db68aba
commit f513f0b2e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,13 +11,13 @@ i_part = int(sys.argv[3])
if len(sys.argv) == 7:
exp_dir = sys.argv[4]
version = sys.argv[5]
is_half = bool(sys.argv[6])
is_half = sys.argv[6].lower() == "true"
else:
i_gpu = sys.argv[4]
exp_dir = sys.argv[5]
os.environ["CUDA_VISIBLE_DEVICES"] = str(i_gpu)
version = sys.argv[6]
is_half = bool(sys.argv[7])
is_half = sys.argv[7].lower() == "true"
import fairseq
import numpy as np
import soundfile as sf