Format code (#874)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
85d0d709e0
commit
232213a522
|
@ -5,7 +5,13 @@ from multiprocessing import cpu_count
|
||||||
|
|
||||||
|
|
||||||
def use_fp32_config():
|
def use_fp32_config():
|
||||||
for config_file in ["32k.json", "40k.json", "48k.json", "48k_v2.json", "32k_v2.json"]:
|
for config_file in [
|
||||||
|
"32k.json",
|
||||||
|
"40k.json",
|
||||||
|
"48k.json",
|
||||||
|
"48k_v2.json",
|
||||||
|
"32k_v2.json",
|
||||||
|
]:
|
||||||
with open(f"configs/{config_file}", "r") as f:
|
with open(f"configs/{config_file}", "r") as f:
|
||||||
strr = f.read().replace("true", "false")
|
strr = f.read().replace("true", "false")
|
||||||
with open(f"configs/{config_file}", "w") as f:
|
with open(f"configs/{config_file}", "w") as f:
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
now_dir = os.getcwd()
|
now_dir = os.getcwd()
|
||||||
sys.path.append(now_dir)
|
sys.path.append(now_dir)
|
||||||
import traceback, pdb
|
import traceback, pdb
|
||||||
|
|
Loading…
Reference in New Issue