Ensure ascii false for json dump, and fix bug

This commit is contained in:
litagin02
2024-01-02 22:58:17 +09:00
parent 98ee6f4c69
commit 1546bd4ec5
4 changed files with 18 additions and 18 deletions

View File

@@ -57,7 +57,7 @@ def initialize(model_name, batch_size, epochs, save_every_steps, bf16_run):
return False, "Step 1, Error: pretrainedフォルダが見つかりません。"
with open(config_path, "w", encoding="utf-8") as f:
json.dump(config, f, indent=2)
json.dump(config, f, indent=2, ensure_ascii=False)
if not os.path.exists("config.yml"):
shutil.copy(src="default_config.yml", dst="config.yml")
# yml_data = safe_load(open("config.yml", "r", encoding="utf-8"))