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
Commit History
-
Update model_index.json for trust_remote_code (#5)
Verified signature- Update model_index.json for trust_remote_code (34345355e43b8380aaf78dc017c864bfcd48c476) Co-authored-by: Kanchana Ranasinghe <kahnchana@users.noreply.huggingface.co>d9feba5 -
Upload FOFPred pipeline (#2)
Verified signature- Upload FOFPred pipeline (6c29b53dd39080e42a25b11bef37314791bc16c6) Co-authored-by: Kanchana Ranasinghe <kahnchana@users.noreply.huggingface.co>abdd865 -
Upload FOFPred pipeline (#1)
Verified signature- Upload FOFPred pipeline (7a2615bed9549db58f2b50b808765c20ce63bd7e) - Update README.md (17aaec0c287d89e869600266b6454ec4d00b956e) - Update README.md (2a6ac3e14d63eff380832c26c5279244ff51019a) - Update model_index.json (669ea4745db25931eecd69ae69c3eb0346634f30) Co-authored-by: Kanchana Ranasinghe <kahnchana@users.noreply.huggingface.co>e5e3587
-
initial commit
Verified signature27d477a