Instructions to use hugaagg/IR_expeiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hugaagg/IR_expeiment with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("hugaagg/IR_expeiment", 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 PART1/CodeFormer/basicsr/setup.py from hugaagg/IR_expeiment: direct link, hf CLI and curl.
- Browser
- Download file 310 Bytes
-
https://huggingface.co/hugaagg/IR_expeiment/resolve/main/PART1/CodeFormer/basicsr/setup.py
- Command line
-
hf download hf://hugaagg/IR_expeiment/PART1/CodeFormer/basicsr/setup.py
-
curl -L -o setup.py https://huggingface.co/hugaagg/IR_expeiment/resolve/main/PART1/CodeFormer/basicsr/setup.py
310 Bytes
| from setuptools import setup, find_packages | |
| setup( | |
| name='basicsr', | |
| version='1.4.2', | |
| description='CodeFormer version of BasicSR', | |
| packages=find_packages(exclude=('options', 'datasets', 'experiments', 'results')), | |
| ext_modules=[], # 关键:不编译任何扩展 | |
| zip_safe=False | |
| ) |