Spaces:
Sleeping
Sleeping
Update config.py
Browse files27 unmodified lines28293031323334353637383940414243447 unmodified lines525354555657585960616263646566676827 unmodified linesprint(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)else:for config_file in ["32k.json", "40k.json", "48k.json"]:with open(f"configs/{config_file}", "r") as f:7 unmodified linesprint(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)else:print("CUDA is not available. Make sure you have an NVIDIA GPU and CUDA installed."27 unmodified lines282930313233347 unmodified lines4243444546474827 unmodified linesprint(f"Set fp16_run to true in {config_file}")strr = Noneelse:for config_file in ["32k.json", "40k.json", "48k.json"]:with open(f"configs/{config_file}", "r") as f:7 unmodified linesprint(f"Set fp16_run to false in {config_file}")strr = Noneelse:print("CUDA is not available. Make sure you have an NVIDIA GPU and CUDA installed."
config.py+2-22