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

Himanshu806
/
FluxHyperRealFill

Diffusers
Safetensors
FluxFillPipeline
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Diffusers

    How to use Himanshu806/FluxHyperRealFill with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import FluxFillPipeline
    from diffusers.utils import load_image
    
    image = load_image("https://huggingface.co/datasets/diffusers/diffusers-images-docs/resolve/main/cup.png")
    mask = load_image("https://huggingface.co/datasets/diffusers/diffusers-images-docs/resolve/main/cup_mask.png")
    
    # switch to "mps" for apple devices
    pipe = FluxFillPipeline.from_pretrained("Himanshu806/FluxHyperRealFill", dtype=torch.bfloat16, device_map="cuda")
    image = pipe(
        prompt="a white paper cup",
        image=image,
        mask_image=mask,
        height=1632,
        width=1232,
        guidance_scale=30,
        num_inference_steps=50,
        max_sequence_length=512,
        generator=torch.Generator("cpu").manual_seed(0)
    ).images[0]
    image.save(f"flux-fill-dev.png")
  • Notebooks
  • Google Colab
  • Kaggle
FluxHyperRealFill
58.1 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
Himanshu-AT
inital commit
ef9d3e4 over 1 year ago
  • scheduler
    inital commit over 1 year ago
  • text_encoder
    inital commit over 1 year ago
  • text_encoder_2
    inital commit over 1 year ago
  • tokenizer
    inital commit over 1 year ago
  • tokenizer_2
    inital commit over 1 year ago
  • transformer
    inital commit over 1 year ago
  • vae
    inital commit over 1 year ago
  • .gitattributes
    1.57 kB
    inital commit over 1 year ago
  • .gitignore
    7 Bytes
    inital commit over 1 year ago
  • ae.safetensors
    335 MB
    xet
    inital commit over 1 year ago
  • flux1-fill-dev.safetensors
    23.8 GB
    xet
    inital commit over 1 year ago
  • model_index.json
    540 Bytes
    inital commit over 1 year ago