Instructions to use perilli/OCS_Models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use perilli/OCS_Models with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("perilli/OCS_Models", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download I2I/Face Restoring/Codeformer/codeformer-v0.1.0.pth from perilli/OCS_Models: direct link, hf CLI and curl.
- Browser
- Download file 377 MB
-
https://huggingface.co/perilli/OCS_Models/resolve/b60e09a77458f2defea945da0bdb9858be8ddee8/I2I/Face%20Restoring/Codeformer/codeformer-v0.1.0.pth
- Command line
-
hf download 'hf://perilli/OCS_Models@b60e09a77458f2defea945da0bdb9858be8ddee8/I2I/Face Restoring/Codeformer/codeformer-v0.1.0.pth'
-
curl -L -o codeformer-v0.1.0.pth https://huggingface.co/perilli/OCS_Models/resolve/b60e09a77458f2defea945da0bdb9858be8ddee8/I2I/Face%20Restoring/Codeformer/codeformer-v0.1.0.pth
377 MB
- Xet hash:
- 0ae7ea7cab0b5e8916a19330ddc5cc8aa83177ccd23779dc48225a37f14f3517
- Size of remote file:
- 377 MB
- SHA256:
- 1009e537e0c2a07d4cabce6355f53cb66767cd4b4297ec7a4a64ca4b8a5684b7
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.