CivArchive
    ← All articles
    Published November 7, 2024by Lucifie

    Create an inpaint model from a checkpoint model

    6.1K views23 reactions10 comments on CivitAI130 collected
    inpaintresource guide

    This mini tutorial will show you how to create an inpaint model from any checkpoint model.

    I have tested this approach on a few models now and it always worked.

    SD 1.5

    1. Open Checkpoint Merger in webUI

    2. Select the 1.5 inpaint model in Model A Get the 1.5 inpaint model here

    3. Select your desired model in Model B

    4. Select the 1.5 base model in Model C Get the 1.5 base model here

    5. Use the same Custome Name as your Model B

    6. Set Multiplier to 1

    7. Set Interpolation Mode to Add Difference

    8. Select safetensor format

    9. Click Merge and wait a few seconds

    In the model folder you will find a new file: LazymixRealAmateur20.inpainting.safetensors

    SDXL

    Follow the same steps as above but use this models.

    • Model A: sd_xl_base_1.0_inpainting_0.1.safetensors

    • Model B: Your desired checkpoint

    • Model C: sd_xl_base_1.0_fp16_vae.safetensors

    If you try to create an inpaint model from BigLust v1.0 you might get the following error: TypeError: argument 'metadata': 'dict' object cannot be converted to 'PyString'

    Following steps will fix it:

    • Open section metadata and disable checkbox save metadata

    • Click read metadata from selected checkpoints

    • Click Merge and wait a few seconds

    In the model folder you will find a new file: bigLust_v10.inpainting.safetensors