1
0
mirror of synced 2024-11-14 10:47:51 +01:00

fix config

This commit is contained in:
Ftps 2023-08-19 22:13:46 +09:00
parent b3d7075ba4
commit d2ea3f1930

View File

@ -17,9 +17,9 @@ def use_fp32_config():
strr = f.read().replace("true", "false")
with open(f"configs/{config_file}", "w") as f:
f.write(strr)
with open("trainset_preprocess_pipeline_print.py", "r") as f:
with open("infer/modules/train/preprocess.py", "r") as f:
strr = f.read().replace("3.7", "3.0")
with open("trainset_preprocess_pipeline_print.py", "w") as f:
with open("infer/modules/train/preprocess.py", "w") as f:
f.write(strr)
@ -110,9 +110,9 @@ class Config:
+ 0.4
)
if self.gpu_mem <= 4:
with open("trainset_preprocess_pipeline_print.py", "r") as f:
with open("infer/modules/train/preprocess.py", "r") as f:
strr = f.read().replace("3.7", "3.0")
with open("trainset_preprocess_pipeline_print.py", "w") as f:
with open("infer/modules/train/preprocess.py", "w") as f:
f.write(strr)
elif self.has_mps():
print("No supported Nvidia GPU found")