Image-to-Image
Diffusers
Safetensors
image-editing
pixel-art
sprite-sheet
animation
rgba
transparent-background
lora
Instructions to use irotem98/Codex-Pets-Sprite-Sheet-Generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use irotem98/Codex-Pets-Sprite-Sheet-Generator 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("Boogu/Boogu-Image-0.1-Edit", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("irotem98/Codex-Pets-Sprite-Sheet-Generator") 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
Download sprite_sheet_config.json from irotem98/Codex-Pets-Sprite-Sheet-Generator: direct link, hf CLI and curl.
- Browser
- Download file 814 Bytes
-
https://huggingface.co/irotem98/Codex-Pets-Sprite-Sheet-Generator/resolve/main/sprite_sheet_config.json
- Command line
-
hf download hf://irotem98/Codex-Pets-Sprite-Sheet-Generator/sprite_sheet_config.json
-
curl -L -o sprite_sheet_config.json https://huggingface.co/irotem98/Codex-Pets-Sprite-Sheet-Generator/resolve/main/sprite_sheet_config.json
814 Bytes
| { | |
| "base_model": "Boogu/Boogu-Image-0.1-Edit", | |
| "vae_checkpoint_step": 2000, | |
| "lora_checkpoint_step": 21000, | |
| "lora_rank": 8, | |
| "reference_mode": "sheet-first", | |
| "sprite_cell_size": [192, 208], | |
| "packed_row_size": [576, 624], | |
| "output_sheet_size": [1536, 2288], | |
| "row_names": [ | |
| "idle", | |
| "run right", | |
| "run left", | |
| "wave", | |
| "jump", | |
| "failed", | |
| "waiting", | |
| "running", | |
| "review", | |
| "look dirs 1-8", | |
| "look dirs 9-16" | |
| ], | |
| "row_frame_counts": [6, 8, 8, 4, 5, 8, 6, 6, 6, 8, 8], | |
| "default_inference_steps": 50, | |
| "default_text_guidance": 4.0, | |
| "default_image_guidance": 1.0, | |
| "default_row_batch_size": 1, | |
| "default_alpha_threshold": 0.5, | |
| "alpha_cleanup": "largest_8_connected_component_per_cell", | |
| "outline_cleanup": "strict_black_two_pixel_outer_edge_band_per_cell" | |
| } | |