Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Akegarasu committed Dec 30, 2023
1 parent 6f98309 commit 4371255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mikazuki/app/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async def create_toml_file(request: Request):
json_data = await request.body()
config = json.loads(json_data.decode("utf-8"))

gpu_ids = config.pop("graphic_card", ["0"])
gpu_ids = config.pop("gpu_ids", ["0"])
suggest_cpu_threads = 8 if len(train_utils.get_total_images(config["train_data_dir"])) > 200 else 2
model_train_type = config.pop("model_train_type", "sd-lora")
trainer_file = trainer_mapping[model_train_type]
Expand Down

0 comments on commit 4371255

Please sign in to comment.