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

theponpon
/
red_baseball_cap_cutouts

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

Instructions to use theponpon/red_baseball_cap_cutouts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use theponpon/red_baseball_cap_cutouts 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("theponpon/red_baseball_cap_cutouts")
    
    prompt = "The main object in the picture is a red baseball cap with a smooth fabric texture and a curved, semi-round shape. The cap is oriented with the back facing towards the viewer, showcasing an adjustable black plastic strap with small holes for sizing. The cap features white stitch details, including a central stitch line dividing the back into two symmetrical panels and two small circular white stitched holes, one on each panel. The cap has no visible text or logos. The object is supported by a white background, which provides a clean and unobtrusive backdrop that sharply contrasts with the vibrant red color of the cap."
    image = pipe(prompt).images[0]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • Draw Things
  • DiffusionBee
red_baseball_cap_cutouts
344 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
theponpon's picture
theponpon
Add 2 files
e1cf9dc verified almost 2 years ago
  • images
    Add 2 files almost 2 years ago
  • .gitattributes
    2.31 kB
    initial commit almost 2 years ago
  • README.md
    2.31 kB
    initial commit almost 2 years ago
  • flux_lora_v1_32_pro2dev_no_trigger_3.safetensors
    344 MB
    xet
    Add 2 files almost 2 years ago