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

rmsandu
/
fourviews-incontext-lora

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

Instructions to use rmsandu/fourviews-incontext-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use rmsandu/fourviews-incontext-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("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("rmsandu/fourviews-incontext-lora")
    
    prompt = "[FOUR-VIEWS] a red desk lamp from multiple views;[TOP-LEFT] This photo shows a 45-degree angle of desk lamp;[TOP-RIGHT] This photo shows a high-angle shot of the lamp; [BOTTOM-LEFT] Here is a side view shot of lamp; [BOTTOM-RIGHT] The back view of the desk lamp."
    image = pipe(prompt).images[0]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
fourviews-incontext-lora
87.7 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 17 commits
rmsandu's picture
rmsandu
Update README.md
b3f5fcc verified 11 months ago
  • images
    Add generated example (#5) 11 months ago
  • .gitattributes
    2.31 kB
    initial commit 11 months ago
  • 4views.safetensors
    86 MB
    xet
    Add 5 files 11 months ago
  • README.md
    4.29 kB
    Update README.md 11 months ago
  • requirements.txt
    154 Bytes
    Create requirements.txt 11 months ago
  • train_config.yaml
    5.23 kB
    Create train_config.yaml 11 months ago