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/utils/__init__.py from hugaagg/IR_expeiment: direct link, hf CLI and curl.
- Browser
- Download file 803 Bytes
-
https://huggingface.co/hugaagg/IR_expeiment/resolve/main/PART1/CodeFormer/basicsr/utils/__init__.py
- Command line
-
hf download hf://hugaagg/IR_expeiment/PART1/CodeFormer/basicsr/utils/__init__.py
-
curl -L -o __init__.py https://huggingface.co/hugaagg/IR_expeiment/resolve/main/PART1/CodeFormer/basicsr/utils/__init__.py
803 Bytes
| from .file_client import FileClient | |
| from .img_util import crop_border, imfrombytes, img2tensor, imwrite, tensor2img | |
| from .logger import MessageLogger, get_env_info, get_root_logger, init_tb_logger, init_wandb_logger | |
| from .misc import check_resume, get_time_str, make_exp_dirs, mkdir_and_rename, scandir, set_random_seed, sizeof_fmt | |
| __all__ = [ | |
| # file_client.py | |
| 'FileClient', | |
| # img_util.py | |
| 'img2tensor', | |
| 'tensor2img', | |
| 'imfrombytes', | |
| 'imwrite', | |
| 'crop_border', | |
| # logger.py | |
| 'MessageLogger', | |
| 'init_tb_logger', | |
| 'init_wandb_logger', | |
| 'get_root_logger', | |
| 'get_env_info', | |
| # misc.py | |
| 'set_random_seed', | |
| 'get_time_str', | |
| 'mkdir_and_rename', | |
| 'make_exp_dirs', | |
| 'scandir', | |
| 'check_resume', | |
| 'sizeof_fmt' | |
| ] | |