Views
No views yet


| file | base trained on | size |
|---|---|---|
depth-control-lora.safetensors | krea/Krea-2-Raw | 862MB |
1git clone https://github.com/Tanmaypatil123/Krea-2-controlnet.git
2cd Krea-2-controlnet
3pip install -r requirements.txt
4
5hf download Patil/Krea-2-depth-controlnet depth-control-lora.safetensors --local-dir .1# Turbo base — fast, recommended (8 steps, no CFG)
2python inference.py photo.jpg -p "a futuristic spaceship interior, cinematic lighting" \
3 --lora depth-control-lora.safetensors
4
5# Raw base — undistilled (28-52 steps, CFG 3.5)
6python inference.py photo.jpg -p "..." --lora depth-control-lora.safetensors \
7 --base raw
8
9# No prompt: the depth map is the only signal
10python inference.py photo.jpg --lora depth-control-lora.safetensors --save-strip
11
12# Weaker structure adherence (more creative freedom)
13python inference.py photo.jpg -p "..." --lora depth-control-lora.safetensors --lora-scale 0.6| flag | default | notes |
|---|---|---|
-p / --prompt | "" | empty = depth-only generation |
--base | turbo | turbo or raw |
--steps | 8 turbo / 28 raw | |
--cfg | 0 turbo / 3.5 raw | classifier-free guidance |
--mu | 1.15 turbo / auto raw | timestep shift |
--lora-scale | 1.0 | control-strength dial |
--seed | 0 | |
--save-strip | off | also saves input|depth|output comparison |
1from PIL import Image
2from huggingface_hub import hf_hub_download
3from pipeline import DepthLoRAPipeline
4
5base = hf_hub_download("krea/Krea-2-Turbo", "turbo.safetensors")
6pipe = DepthLoRAPipeline(base, "depth-control-lora.safetensors")
7
8out, depth = pipe(Image.open("photo.jpg"),
9 prompt="a cozy cabin interior at dusk",
10 steps=8, cfg=0.0, mu=1.15, seed=0)
11out.save("output.png")--lora-scale below 1.0 relaxes structure adherence; above 1.0 tightens it at some quality cost.inference.py — CLIpipeline.py — full pipeline: LoRA surgery, Qwen3-VL conditioner, VAE, depth estimator, flow sampler with control injectionmmdit.py — unmodified DiT definition from the krea-2 repo