Instructions to use Nanico/dna2-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Nanico/dna2-lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("krea/Krea-2-Raw", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Nanico/dna2-lora") prompt = "A futuristic holographic projection of a glowing dna helix floating above a high-tech laboratory table in a dark, neon-lit cyberpunk city." image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Krea 2 LoRA โ Nanico/dna2-lora

- Prompt
- A futuristic holographic projection of a glowing dna helix floating above a high-tech laboratory table in a dark, neon-lit cyberpunk city.

- Prompt
- An ancient, moss-covered stone carving of a dna strand integrated into the ruins of a jungle temple, with sunlight filtering through dense leaves.

- Prompt
- A surreal cosmic nebula where swirling galaxies form the shape of a giant, shimmering dna molecule across the deep purple void of space.
A DreamBooth-LoRA for Krea 2, trained on Krea 2 RAW and shown on Krea 2 Turbo. The samples below were generated with this LoRA on Turbo (8 steps).
Trigger
Use the token dna to invoke the concept.
Samples
"A futuristic holographic projection of a glowing dna helix floating above a high-tech laboratory table in a dark, neon-lit cyberpunk city."
"An ancient, moss-covered stone carving of a dna strand integrated into the ruins of a jungle temple, with sunlight filtering through dense leaves."
"A surreal cosmic nebula where swirling galaxies form the shape of a giant, shimmering dna molecule across the deep purple void of space."
Use it with diffusers
import torch
from diffusers import Krea2Pipeline
pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda")
pipe.load_lora_weights("Nanico/dna2-lora")
image = pipe("A futuristic holographic projection of a glowing dna helix floating above a high-tech laboratory table in a dark, neon-lit cyberpunk city.", num_inference_steps=8, guidance_scale=0.0).images[0]
image.save("output.png")
- Downloads last month
- -
Model tree for Nanico/dna2-lora
Base model
krea/Krea-2-Raw

