Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Salesforce
/
FOFPred

Image-to-Image
Diffusers
Safetensors
optical-flow prediction
motion prediction
diffusion
Model card Files Files and versions
xet
Community
11

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

  • Libraries
  • Diffusers

    How to use Salesforce/FOFPred with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    from diffusers.utils import load_image
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("Salesforce/FOFPred", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Turn this cat into a dog"
    input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
    
    image = pipe(image=input_image, prompt=prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
FOFPred
15.6 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 11 commits
kahnchana's picture
kahnchana
Update README.md
015be20 verified 4 months ago
  • mllm
    Upload FOFPred pipeline (#1) 5 months ago
  • processor
    Upload FOFPred pipeline (#1) 5 months ago
  • scheduler
    Upload FOFPred pipeline (#9) 5 months ago
  • transformer
    Upload FOFPred pipeline (#9) 5 months ago
  • vae
    Upload FOFPred pipeline (#7) 5 months ago
  • .gitattributes
    1.66 kB
    Upload FOFPred pipeline (#6) 5 months ago
  • README.md
    2.23 kB
    Update README.md 4 months ago
  • model_index.json
    474 Bytes
    Upload FOFPred pipeline (#7) 5 months ago
  • pipeline_fofpred.py
    74.7 kB
    Upload FOFPred pipeline (#9) 5 months ago
  • scheduler_fofpred.py
    8.4 kB
    Upload FOFPred pipeline (#7) 5 months ago
  • transformer_fofpred.py
    115 kB
    Upload FOFPred pipeline (#7) 5 months ago