Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ItsMaxNorm
/
SafeDiffusion-R1

Text-to-Image
Diffusers
Safetensors
stable-diffusion
safety
safe-generation
grpo
steering-reward
nsfw-removal
safediffusion-r1
Model card Files Files and versions
xet
Community

Instructions to use ItsMaxNorm/SafeDiffusion-R1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use ItsMaxNorm/SafeDiffusion-R1 with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("ItsMaxNorm/SafeDiffusion-R1", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
SafeDiffusion-R1
6.4 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
ItsMaxNorm's picture
ItsMaxNorm
Fix inference snippet: use snapshot_download for subfolder loading
b4c3b65 verified 3 days ago
  • compact
    Release compact variant (full SD pipeline) 3 days ago
  • empty-positive
    Release empty-positive variant (full SD pipeline) 3 days ago
  • scaled
    Release scaled variant (full SD pipeline) 3 days ago
  • .gitattributes
    1.52 kB
    initial commit 3 days ago
  • README.md
    3.5 kB
    Fix inference snippet: use snapshot_download for subfolder loading 3 days ago