Instructions to use shiyi123/firered with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use shiyi123/firered 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("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("shiyi123/firered") 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
- Local Apps Settings
- Draw Things
| { | |
| "average_seconds": 10.703467212733813, | |
| "average_max_memory_allocated_mb": 29474.08074951172, | |
| "average_max_memory_reserved_mb": 30294.75, | |
| "pipeline_memory_after_load_mb": { | |
| "max_memory_allocated_mb": 29439.33544921875, | |
| "max_memory_reserved_mb": 30038.0 | |
| }, | |
| "peak_image_max_memory_allocated_mb": 29707.44775390625, | |
| "peak_image_max_memory_reserved_mb": 30432.0, | |
| "image_seconds": [ | |
| { | |
| "sample_id": "00004", | |
| "seconds": 9.236036043614149, | |
| "max_memory_allocated_mb": 29447.33642578125, | |
| "max_memory_reserved_mb": 30018.0 | |
| }, | |
| { | |
| "sample_id": "00010", | |
| "seconds": 10.271659795194864, | |
| "max_memory_allocated_mb": 29441.8037109375, | |
| "max_memory_reserved_mb": 30018.0 | |
| }, | |
| { | |
| "sample_id": "00020", | |
| "seconds": 10.944287959486246, | |
| "max_memory_allocated_mb": 29449.732421875, | |
| "max_memory_reserved_mb": 29970.0 | |
| }, | |
| { | |
| "sample_id": "00046", | |
| "seconds": 10.813921574503183, | |
| "max_memory_allocated_mb": 29452.8291015625, | |
| "max_memory_reserved_mb": 29914.0 | |
| }, | |
| { | |
| "sample_id": "00081", | |
| "seconds": 15.983006078749895, | |
| "max_memory_allocated_mb": 29707.44775390625, | |
| "max_memory_reserved_mb": 30432.0 | |
| }, | |
| { | |
| "sample_id": "00096", | |
| "seconds": 10.16619573906064, | |
| "max_memory_allocated_mb": 29457.6689453125, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "00102", | |
| "seconds": 10.71473590284586, | |
| "max_memory_allocated_mb": 29460.08203125, | |
| "max_memory_reserved_mb": 30338.0 | |
| }, | |
| { | |
| "sample_id": "00104", | |
| "seconds": 10.077278394252062, | |
| "max_memory_allocated_mb": 29457.6689453125, | |
| "max_memory_reserved_mb": 30334.0 | |
| }, | |
| { | |
| "sample_id": "00137", | |
| "seconds": 10.282365284860134, | |
| "max_memory_allocated_mb": 29461.1689453125, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "00138", | |
| "seconds": 10.163432039320469, | |
| "max_memory_allocated_mb": 29461.1689453125, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "00141", | |
| "seconds": 10.167018886655569, | |
| "max_memory_allocated_mb": 29461.1689453125, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "00301", | |
| "seconds": 12.296083223074675, | |
| "max_memory_allocated_mb": 29461.1689453125, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "00377", | |
| "seconds": 10.824112802743912, | |
| "max_memory_allocated_mb": 29461.1689453125, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "00497", | |
| "seconds": 10.180811941623688, | |
| "max_memory_allocated_mb": 29461.1689453125, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "00543", | |
| "seconds": 11.959970477968454, | |
| "max_memory_allocated_mb": 29459.7900390625, | |
| "max_memory_reserved_mb": 30338.0 | |
| }, | |
| { | |
| "sample_id": "hard1", | |
| "seconds": 10.331887748092413, | |
| "max_memory_allocated_mb": 29467.4560546875, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "hard2", | |
| "seconds": 11.8638944812119, | |
| "max_memory_allocated_mb": 29466.0771484375, | |
| "max_memory_reserved_mb": 30344.0 | |
| }, | |
| { | |
| "sample_id": "hard3", | |
| "seconds": 10.562207151204348, | |
| "max_memory_allocated_mb": 29467.42578125, | |
| "max_memory_reserved_mb": 30334.0 | |
| }, | |
| { | |
| "sample_id": "lowscore_0117", | |
| "seconds": 10.195360783487558, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "lowscore_0129", | |
| "seconds": 10.211823482066393, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "lowscore_0131", | |
| "seconds": 10.200677294284105, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "lowscore_0134", | |
| "seconds": 11.953703992068768, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "pic_535", | |
| "seconds": 10.995044033974409, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "pic_739", | |
| "seconds": 10.241289999336004, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "pic_812", | |
| "seconds": 10.328495021909475, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "pic_891", | |
| "seconds": 10.318411137908697, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "pic_915", | |
| "seconds": 10.20509060099721, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "pic_939", | |
| "seconds": 10.198470249772072, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "ppt_0009", | |
| "seconds": 10.204355873167515, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "ppt_0010", | |
| "seconds": 10.208926256746054, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "ppt_0022", | |
| "seconds": 10.208691131323576, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "ppt_0041", | |
| "seconds": 10.201705425977707, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| } | |
| ] | |
| } |