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")
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
๐
Ask for provider support
Model tree for Heartsync/Flux-NSFW-uncensored
Base model
black-forest-labs/FLUX.1-dev