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.74601247604005, | |
| "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.409584421664476, | |
| "max_memory_allocated_mb": 29447.33642578125, | |
| "max_memory_reserved_mb": 30018.0 | |
| }, | |
| { | |
| "sample_id": "00010", | |
| "seconds": 10.320461552590132, | |
| "max_memory_allocated_mb": 29441.8037109375, | |
| "max_memory_reserved_mb": 30018.0 | |
| }, | |
| { | |
| "sample_id": "00020", | |
| "seconds": 10.796305868774652, | |
| "max_memory_allocated_mb": 29449.732421875, | |
| "max_memory_reserved_mb": 29970.0 | |
| }, | |
| { | |
| "sample_id": "00046", | |
| "seconds": 10.216528940945864, | |
| "max_memory_allocated_mb": 29452.8291015625, | |
| "max_memory_reserved_mb": 29914.0 | |
| }, | |
| { | |
| "sample_id": "00081", | |
| "seconds": 16.076401822268963, | |
| "max_memory_allocated_mb": 29707.44775390625, | |
| "max_memory_reserved_mb": 30432.0 | |
| }, | |
| { | |
| "sample_id": "00096", | |
| "seconds": 11.01413843780756, | |
| "max_memory_allocated_mb": 29457.6689453125, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "00102", | |
| "seconds": 11.219270527362823, | |
| "max_memory_allocated_mb": 29460.08203125, | |
| "max_memory_reserved_mb": 30338.0 | |
| }, | |
| { | |
| "sample_id": "00104", | |
| "seconds": 10.117006793618202, | |
| "max_memory_allocated_mb": 29457.6689453125, | |
| "max_memory_reserved_mb": 30334.0 | |
| }, | |
| { | |
| "sample_id": "00137", | |
| "seconds": 10.239395670592785, | |
| "max_memory_allocated_mb": 29461.1689453125, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "00138", | |
| "seconds": 10.329833008348942, | |
| "max_memory_allocated_mb": 29461.1689453125, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "00141", | |
| "seconds": 10.219908181577921, | |
| "max_memory_allocated_mb": 29461.1689453125, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "00301", | |
| "seconds": 10.226216446608305, | |
| "max_memory_allocated_mb": 29461.1689453125, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "00377", | |
| "seconds": 10.327857051044703, | |
| "max_memory_allocated_mb": 29461.1689453125, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "00497", | |
| "seconds": 10.183653473854065, | |
| "max_memory_allocated_mb": 29461.1689453125, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "00543", | |
| "seconds": 12.076201051473618, | |
| "max_memory_allocated_mb": 29459.7900390625, | |
| "max_memory_reserved_mb": 30338.0 | |
| }, | |
| { | |
| "sample_id": "hard1", | |
| "seconds": 10.228615511208773, | |
| "max_memory_allocated_mb": 29467.4560546875, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "hard2", | |
| "seconds": 14.571477565914392, | |
| "max_memory_allocated_mb": 29466.0771484375, | |
| "max_memory_reserved_mb": 30344.0 | |
| }, | |
| { | |
| "sample_id": "hard3", | |
| "seconds": 10.649950537830591, | |
| "max_memory_allocated_mb": 29467.42578125, | |
| "max_memory_reserved_mb": 30334.0 | |
| }, | |
| { | |
| "sample_id": "lowscore_0117", | |
| "seconds": 10.171203088015318, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "lowscore_0129", | |
| "seconds": 10.175553943961859, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "lowscore_0131", | |
| "seconds": 10.173424795269966, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "lowscore_0134", | |
| "seconds": 10.336432099342346, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "pic_535", | |
| "seconds": 10.198797024786472, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "pic_739", | |
| "seconds": 10.232191141694784, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "pic_812", | |
| "seconds": 10.204877778887749, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "pic_891", | |
| "seconds": 10.199575614184141, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "pic_915", | |
| "seconds": 11.906894356012344, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "pic_939", | |
| "seconds": 11.002489645034075, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "ppt_0009", | |
| "seconds": 10.328853510320187, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "ppt_0010", | |
| "seconds": 10.317520879209042, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "ppt_0022", | |
| "seconds": 10.197387281805277, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| }, | |
| { | |
| "sample_id": "ppt_0041", | |
| "seconds": 10.204391211271286, | |
| "max_memory_allocated_mb": 29476.3037109375, | |
| "max_memory_reserved_mb": 30336.0 | |
| } | |
| ] | |
| } |