Spaces:
Sleeping
Sleeping
Update config.py
Browse files27 unmodified lines2829303132333435363738394041313233347 unmodified lines42434455565758596061626364654546474827 unmodified lines
print(f"Set fp16_run to true in {config_file}")
with open( "trainset_preprocess_pipeline_print.py", "r", encoding="utf-8" ) as f: strr = f.read()
strr = strr.replace("3.0", "3.7")
with open( "trainset_preprocess_pipeline_print.py", "w", encoding="utf-8" ) as f: f.write(strr) strr = None else: for config_file in ["32k.json", "40k.json", "48k.json"]: with open(f"configs/{config_file}", "r") as f:7 unmodified lines
print(f"Set fp16_run to false in {config_file}")
with open( "trainset_preprocess_pipeline_print.py", "r", encoding="utf-8" ) as f: strr = f.read()
strr = strr.replace("3.7", "3.0")
with open( "trainset_preprocess_pipeline_print.py", "w", encoding="utf-8" ) as f: f.write(strr) strr = None else: print( "CUDA is not available. Make sure you have an NVIDIA GPU and CUDA installed."config.py+2-22