From 87faf3de2a51fc9018aaf00037a0669bcdc77fdf Mon Sep 17 00:00:00 2001 From: Chaoses-Ib Date: Mon, 16 Dec 2024 02:17:58 +0800 Subject: [PATCH] docs(Models): add saving checkpoints (#82) --- docs/Models/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/Models/README.md b/docs/Models/README.md index 92770bc..e4930fb 100644 --- a/docs/Models/README.md +++ b/docs/Models/README.md @@ -29,6 +29,17 @@ model, clip, vae = CivitAICheckpointLoader('https://civitai.com/models/101055?mo model, clip, vae = CivitAICheckpointLoader('https://civitai.com/models/101055/sd-xl?modelVersionId=128078') ``` +### Saving checkpoints +The `CheckpointSave` node can be used to save a checkpoint. + +For example: +```python +with Workflow(): + model, clip, vae = CheckpointLoaderSimple('v1-5-pruned-emaonly.ckpt') + CheckpointSave(model, clip, vae, 'checkpoints/new-model') +``` +The checkpoint will be saved to the output directory, e.g. `D:\ComfyUI\output\checkpoints\new-model_00001_.safetensors`. + ## LoRA ### [CivitAI](https://github.com/Chaoses-Ib/civitai_comfy_nodes) ```python