Translate console logs

This commit is contained in:
Cohee
2023-08-13 17:40:21 +03:00
parent d44ca03567
commit fa1735b373

View File

@@ -66,7 +66,7 @@ class Config:
or "1070" in self.gpu_name
or "1080" in self.gpu_name
):
print("16/10系显卡和P40强制单精度")
print("Forcing full precision for 16/10 series cards.")
self.is_half = False
config_file_change_fp32()
else:
@@ -84,12 +84,12 @@ class Config:
# with open("trainset_preprocess_pipeline_print.py", "w") as f:
# f.write(strr)
elif torch.backends.mps.is_available():
print("没有发现支持的N卡, 使用MPS进行推理")
print("No compatible GPU found, using MPS for inference.")
self.device = "mps"
self.is_half = False
config_file_change_fp32()
else:
print("没有发现支持的N卡, 使用CPU进行推理")
print("No compatible GPU found, using CPU for inference.")
self.device = "cpu"
self.is_half = False
config_file_change_fp32()