Spaces:
Running
Running
TheStinger
commited on
Commit
•
fa7a4d0
1
Parent(s):
2387ecd
Update config.py
Browse files
config.py
CHANGED
@@ -28,17 +28,7 @@ def use_fp32_config():
|
|
28 |
|
29 |
print(f"Set fp16_run to true in {config_file}")
|
30 |
|
31 |
-
|
32 |
-
"trainset_preprocess_pipeline_print.py", "r", encoding="utf-8"
|
33 |
-
) as f:
|
34 |
-
strr = f.read()
|
35 |
-
|
36 |
-
strr = strr.replace("3.0", "3.7")
|
37 |
-
|
38 |
-
with open(
|
39 |
-
"trainset_preprocess_pipeline_print.py", "w", encoding="utf-8"
|
40 |
-
) as f:
|
41 |
-
f.write(strr)
|
42 |
else:
|
43 |
for config_file in ["32k.json", "40k.json", "48k.json"]:
|
44 |
with open(f"configs/{config_file}", "r") as f:
|
@@ -52,17 +42,7 @@ def use_fp32_config():
|
|
52 |
|
53 |
print(f"Set fp16_run to false in {config_file}")
|
54 |
|
55 |
-
|
56 |
-
"trainset_preprocess_pipeline_print.py", "r", encoding="utf-8"
|
57 |
-
) as f:
|
58 |
-
strr = f.read()
|
59 |
-
|
60 |
-
strr = strr.replace("3.7", "3.0")
|
61 |
-
|
62 |
-
with open(
|
63 |
-
"trainset_preprocess_pipeline_print.py", "w", encoding="utf-8"
|
64 |
-
) as f:
|
65 |
-
f.write(strr)
|
66 |
else:
|
67 |
print(
|
68 |
"CUDA is not available. Make sure you have an NVIDIA GPU and CUDA installed."
|
|
|
28 |
|
29 |
print(f"Set fp16_run to true in {config_file}")
|
30 |
|
31 |
+
strr = None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
else:
|
33 |
for config_file in ["32k.json", "40k.json", "48k.json"]:
|
34 |
with open(f"configs/{config_file}", "r") as f:
|
|
|
42 |
|
43 |
print(f"Set fp16_run to false in {config_file}")
|
44 |
|
45 |
+
strr = None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
else:
|
47 |
print(
|
48 |
"CUDA is not available. Make sure you have an NVIDIA GPU and CUDA installed."
|