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
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!