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
- Draw Things
- DiffusionBee
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]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.
Trigger words
You should use The main object in the picture is a red baseball cap with a smooth fabric texture and a curved to trigger the image generation.
You should use semi-round shape. The cap is oriented with the back facing towards the viewer to trigger the image generation.
You should use showcasing an adjustable black plastic strap with small holes for sizing. The cap features white stitch details to trigger the image generation.
You should use including a central stitch line dividing the back into two symmetrical panels and two small circular white stitched holes to trigger the image generation.
You should use one on each panel. The cap has no visible text or logos. to trigger the image generation.
Download model
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.
- Downloads last month
- 3
Model tree for theponpon/red_baseball_cap_cutouts
Base model
black-forest-labs/FLUX.1-dev