Instructions to use diffusion-gif/any2ego with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusion-gif/any2ego with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("diffusion-gif/any2ego") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Download code_support/loader_patch.json from diffusion-gif/any2ego: direct link, hf CLI and curl.
- Browser
- Download file 985 Bytes
-
https://huggingface.co/diffusion-gif/any2ego/resolve/main/code_support/loader_patch.json
- Command line
-
hf download hf://diffusion-gif/any2ego/code_support/loader_patch.json
-
curl -L -o loader_patch.json https://huggingface.co/diffusion-gif/any2ego/resolve/main/code_support/loader_patch.json
985 Bytes
| { | |
| "note": "Installer patches only exact known original files, never unknown local edits.", | |
| "files": [ | |
| { | |
| "path": "generator_defaults.py", | |
| "previous_sha256": "f576a6ceaa29cfb78ba8d783ddadf52bffcfb5f30a8740d55f9e55af1b0a4369", | |
| "new_sha256": "48195fb1515b26d0bc6440db02d3181bd1ab536143bc44b5c251c7247b2cdc4a" | |
| }, | |
| { | |
| "path": "diffusion/infer_caption.py", | |
| "previous_sha256": "377b52f76012189f6ca779c645d2891a8769e160c27a11d09a5591889de93aeb", | |
| "new_sha256": "c3882d05e91dd7cc4ad55d4f5d56d001c1cf028a16aa33e491a833bfb3d6583a" | |
| }, | |
| { | |
| "path": "diffusion/infer_vace_hoi.py", | |
| "previous_sha256": "37e8ecb9f92551d048524226f22f4c0f86086eb69ca6e9a7bf56d69b47c955d4", | |
| "new_sha256": "db5e8bfe8d5ff45e0dc29dfcbdb1bab4e70febd9d66dedc46a1f6404f73224fb" | |
| }, | |
| { | |
| "path": "model_resources.py", | |
| "previous_sha256": null, | |
| "new_sha256": "d7449d7c527adbe7645d1ffe1942e22cc411ad7afe59a40f652ebf5da3f1daf1" | |
| } | |
| ] | |
| } | |