Skip to content

Newer Model support for LanPaint on diffusers #77

@chaserhkj

Description

@chaserhkj

Hi, I wish to use newer models (ZImage, Qwen-Image, etc.) with LanPaint on diffusers. The main reason of using diffusers is mostly batch processing, as well as exploring some other automated workflows like externally invoked through MCP by LLM agents or auto detailer. ComfyUI's principle design makes its API and automated integration really a pain to work with.

I know the existence of LanPaintBench, but that project does not support newer models and is not really maintained.

I have started a new WIP proper port of lanpaint onto diffusers, and I will be willing to maintain it onwards as well. I am opening this issue mainly to have a tracked reference here, but I also have a few questions regarding the implementation and algorithms:

  1. What are the biggest change in the underlying math for the newer models to diverge from the old math that works for SD?
  2. It seems that some maths of LanPaintBench and ComfyUI versions are done slightly different, I am not 100% sure if they are equivalent, does the ComfyUI version of the algorithm have more validity since it is more maintained?
  3. The sigma functions sigma_x and sigma_y seem to be different from LanPaintBench version and ComfyUI version. Is this just a change of heuristics? Does this mean the heuristics used in the ComfyUI version is better?

Thanks a lot for this amazing project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions