explaingit

blue-pen5805/comfyui-krea2-negpip

Analysis updated 2026-05-18

61PythonAudience · generalComplexity · 2/5Setup · moderate

TLDR

A ComfyUI custom node that lets you write negative weights like (blurry:-1.0) directly inside your prompt text when using Krea 2 image generation models, giving fine-grained suppression control without a separate negative prompt box.

Mindmap

mindmap
  root((ComfyUI Krea2 NegPiP))
    What it does
      Inline negative weights
      Model patching
      CLIP patching
    Parameters
      value_strength
      block_start and end
      block_stride
    Installation
      Clone to custom_nodes
      Restart ComfyUI
    Use Cases
      Suppress artifacts
      Fine-tune image output
      Krea 2 workflows
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Suppress specific visual artifacts like blurriness or low quality directly inside a Krea 2 prompt without using a separate negative prompt field

USE CASE 2

Fine-tune which transformer blocks inside the Krea 2 model are affected by the negative weighting for more targeted image control

USE CASE 3

Integrate NegPiP-style prompt control into an existing ComfyUI Krea 2 workflow with minimal node changes

What is it built with?

PythonComfyUIPyTorch

How does it compare?

blue-pen5805/comfyui-krea2-negpip0xh4ku/manga-pdf-to-epubayyouboss0011/sherlockmaps
Stars616060
LanguagePythonPythonPython
Setup difficultymoderatemoderatemoderate
Complexity2/52/53/5
Audiencegeneralgeneraldata

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 5min

Requires ComfyUI already installed with a Krea 2 model and a krea2-type CLIP loaded via CLIPLoader.

In plain English

ComfyUI is a popular node-based interface for running AI image generation models locally. This repository is a small custom extension (called a "custom node") for ComfyUI that adds a specific capability called NegPiP-style negative prompt weighting to workflows that use the Krea 2 image model. In most AI image generators, you can write a "negative prompt" to tell the model what you do not want in the image. NegPiP takes this further: instead of a separate negative prompt box, you embed negative weights directly inside your regular prompt text. For example, writing (blurry:-1.0) inside a positive prompt tells the model to suppress blurriness while still describing what you do want. This gives you finer control over the final image without needing a separate negative prompt field. The extension adds a single new node called Apply Krea2 NegPiP to ComfyUI's visual workflow editor. You place this node in your graph between the model and text encoder steps. It intercepts the Krea 2 model and its CLIP text encoder, applies the negative-weight patches internally, and returns modified versions that the rest of your workflow uses as normal. Installation is straightforward: clone the repository into ComfyUI's custom_nodes folder and restart the application. No extra configuration is needed beyond that. The node exposes several tuning parameters: you can adjust the overall strength of the negative effect, choose which internal transformer blocks inside the model to patch (with start, end, and stride controls), and enable an optional stronger effect path. The README notes that this node only works with Krea 2 model layouts and may not correctly apply negative weights to tokens that follow image embedding placeholders in a prompt. The project is quite new (created June 2026) and borrows its core idea from the original NegPiP plugin for Stable Diffusion web UI.

Copy-paste prompts

Prompt 1
I have a ComfyUI workflow using a Krea 2 model. Where exactly do I place the Apply Krea2 NegPiP node and what do I connect to its MODEL and CLIP inputs?
Prompt 2
Write me a Krea 2 portrait prompt using NegPiP syntax to suppress blurriness, overexposure, and low quality while keeping the subject sharp
Prompt 3
What is the difference between patch_txtfusion_refiners=true and false in ComfyUI-krea2-negpip and when should I enable it?
Prompt 4
How do I set block_start, block_end, and block_stride to target only the middle transformer blocks in the Krea 2 model?

Frequently asked questions

What is comfyui-krea2-negpip?

A ComfyUI custom node that lets you write negative weights like (blurry:-1.0) directly inside your prompt text when using Krea 2 image generation models, giving fine-grained suppression control without a separate negative prompt box.

What language is comfyui-krea2-negpip written in?

Mainly Python. The stack also includes Python, ComfyUI, PyTorch.

How hard is comfyui-krea2-negpip to set up?

Setup difficulty is rated moderate, with roughly 5min to a first successful run.

Who is comfyui-krea2-negpip for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub blue-pen5805 on gitmyhub

Verify against the repo before relying on details.