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

steven0226
/
defectforge-visa-lora

Diffusers
Safetensors
English
Chinese
stable-diffusion
stable-diffusion-xl
lora
inpainting
industrial
Model card Files Files and versions
xet
Community

Instructions to use steven0226/defectforge-visa-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use steven0226/defectforge-visa-lora with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("sd2-community/stable-diffusion-2-inpainting,diffusers/stable-diffusion-xl-1.0-inpainting-0.1", torch_dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("steven0226/defectforge-visa-lora")
    
    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
defectforge-visa-lora / lora_sd2 /capsules
7.01 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
steven0226's picture
steven0226
Publish verified DefectForge model bundle
d915a78 verified 5 days ago
  • text_token_adapter
    Publish verified DefectForge model bundle 5 days ago
  • tokenizer
    Publish verified DefectForge model bundle 5 days ago
  • unet_adapter
    Publish verified DefectForge model bundle 5 days ago
  • trainer_state.json
    1.2 kB
    Publish verified DefectForge model bundle 5 days ago