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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ishengfang
/
Camera-Settings-as-Tokens-SD2

Text-to-Image
Diffusers
Safetensors
English
lora
template:diffusion-lora
Model card Files Files and versions
xet
Community

Instructions to use ishengfang/Camera-Settings-as-Tokens-SD2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use ishengfang/Camera-Settings-as-Tokens-SD2 with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("ishengfang/Camera-Settings-as-Tokens-SD2")
    
    prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • Draw Things
  • DiffusionBee
Camera-Settings-as-Tokens-SD2
3.43 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 2 commits
I-Sheng Fang
init
538ae89 over 1 year ago
  • cam_embed
    init over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    849 Bytes
    init over 1 year ago
  • pytorch_lora_weights.safetensors
    3.36 MB
    xet
    init over 1 year ago