Downloads · 30 days
40
29% of all-time downloads
srmahapatra95/Cyberpunk-Lora-Weights
Cyberpunk-Lora-Weights is a image-to-image model from srmahapatra95. Use it when you need one image transformed into another. It is set up for diffusers. The card lists the license as mit.
This repository contains LoRA (Low-Rank Adaptation) weights designed to infuse images with a gritty, neon-drenched Cyberpunk aesthetic. These weights are fine-tuned specifically for the Z-Image-Turbo base model, allow…
Downloads · 30 days
40
29% of all-time downloads
All-time downloads
139
Public
Repo size
176 MB
Likes
0
Public
Click a slice to open those files.
.safetensors170 MB · 94%
From the Hugging Face model README
This repository contains LoRA (Low-Rank Adaptation) weights designed to infuse images with a gritty, neon-drenched Cyberpunk aesthetic. These weights are fine-tuned specifically for the Z-Image-Turbo base model, allowing for high-quality, futuristic generations in very few steps.
Since this is a LoRA for a Turbo model, you can achieve great results in just 1–4 steps.
import torch
from diffusers import AutoPipelineForImage2Image
from diffusers.utils import load_image
# Load the base Turbo model
pipe = AutoPipelineForImage2Image.from_pretrained(
"Tongyi-MAI/Z-Image-Turbo",
torch_dtype=torch.float16,
variant="fp16"
).to("cuda")
# Load this Cyberpunk LoRA
pipe.load_lora_weights("srmahapatra95/Cyberpunk-Lora-Weights")
# Initial Image
init_image = load_image("[https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/img2img-init.png](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/img2img-init.png)")
# Prompt
prompt = "cyberpunk style, futuristic city, neon lights, high tech, rain, 8k"
# Generate (Keep steps low for Turbo models)
image = pipe(prompt, image=init_image, strength=0.6, num_inference_steps=4).images[0]
image.save("cyberpunk_output.png")