Krea 2 Lineart Edit LoRA Turns Sketches Into Rendered Images

ComfyUI Wikinews

Two community LoRAs for Krea-2-Raw paint a finished image while following your lineart, using the Ostris edit nodes and a Realistic Lineart preprocessor in ComfyUI.

krea2_lineart_edit adds two LoRAs for Krea-2-Raw that turn a lineart sketch into a fully rendered image: you supply the lines and a prompt describing the final look, and the model paints inside them. Downloads already passed 570 with a public demo Space, and the LoRAs run on the existing Ostris edit nodes in ComfyUI.
Lineart inputRendered result
Lineart inputFully rendered output following the lines

Two LoRAs, two levels of fidelity

The release includes two variants trained for the lineart format, for example extracted from a photo with the Realistic Lineart preprocessor from comfyui_controlnet_aux:

  • krea2_lineart_edit_v1.safetensors: the faithful one, following the sketch most closely.
  • krea2_lineart_coarse_edit_v1.safetensors: a looser interpretation that takes more stylistic freedom with your lines.

The comparison table above uses the coarse variant in its example workflow.

How to run it in ComfyUI

The LoRAs plug into the existing Krea 2 edit pipeline rather than introducing new nodes:

  1. Load the Krea-2-Raw base checkpoint.
  2. Load either LoRA file in ComfyUI/models/loras/.
  3. Feed your lineart into the LoadImage node. The LoRAs work best with the Realistic Lineart preprocessor style, so run photos through it first.
  4. Describe the final image in the TextEncodeKrea2OstrisEdit node: style, colors, setting.
  5. Queue the prompt with the Krea2OstrisEditModelPatch node in the graph.

If you want to test before downloading anything, there is a hosted demo Space where you can try both variants online.

Availability

Both LoRAs are free on Hugging Face at Cierpliwy/krea2_lineart_edit, under the Krea-2 community license. The example workflow lineart_example.json ships in the repo, and the required Ostris edit nodes plus the lineart preprocessor come from ComfyUI-Krea2-Ostris-Edit and comfyui_controlnet_aux.

Comments

Sign in with GitHub to join the discussion.

Loading comments…
Krea 2 Lineart Edit LoRA Turns Sketches Into Rendered Images | ComfyUI Wiki