Text-to-Image
English
Not-For-All-Audiences

NSFW-Uncensored

Uncensored Image Generation Model

Model Description

This model is a playground that minimizes censorship restrictions, allowing exploration of the technical possibilities of AI-based image generation. Through various prompts, you can test censorship boundaries and verify the actual performance of image generation AI.

Example code

import torch
from diffusers import AutoPipelineForText2Image

# PEFT ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ํ•„์š” (LoRA ๋กœ๋”ฉ์šฉ)
from peft import PeftModel, PeftConfig

# ๊ธฐ๊ธฐ ์„ค์ •
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

# ๊ธฐ๋ณธ ๋ชจ๋ธ ๋กœ๋“œ
print("๊ธฐ๋ณธ FLUX ๋ชจ๋ธ ๋กœ๋“œ ์ค‘...")
pipe = AutoPipelineForText2Image.from_pretrained(
    "black-forest-labs/FLUX.1-dev", 
    torch_dtype=torch.float16  # bfloat16 ๋Œ€์‹  float16 ์‚ฌ์šฉ
)
pipe.to(device)

# Uncensored LoRA ๋กœ๋“œ
print("Uncensored LoRA ๋กœ๋“œ ์ค‘...")
pipe.load_lora_weights(
    'Heartsync/Flux-NSFW-uncensored', 
    weight_name='lora.safetensors',
    adapter_name="uncensored"
)

# ์ด๋ฏธ์ง€ ์ƒ์„ฑ
prompt = "A woman in a sheer white dress standing on a beach at sunset, backlit so her silhouette is visible through the thin fabric, shot with Canon EOS R5, 85mm f/1.2 lens, golden hour natural lighting, professional composition, hyperrealistic detail, masterpiece quality, 8K resolution."
negative_prompt = "text, watermark, signature, cartoon, anime, illustration, painting, drawing, low quality, blurry"

# ์‹œ๋“œ ์„ค์ •
seed = 42
generator = torch.Generator(device=device).manual_seed(seed)

# ์ด๋ฏธ์ง€ ์ƒ์„ฑ
image = pipe(
    prompt=prompt,
    negative_prompt=negative_prompt,
    guidance_scale=7.0,
    num_inference_steps=28,
    width=1024,
    height=1024,
    generator=generator,
).images[0]

# ์ด๋ฏธ์ง€ ์ €์žฅ
image.save("generated_image.png")
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Heartsync/Flux-NSFW-uncensored

Finetuned
(410)
this model

Spaces using Heartsync/Flux-NSFW-uncensored 2