Instructions to use Leon1000/pixel_spritesheet_4walk_combat_32x48_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Leon1000/pixel_spritesheet_4walk_combat_32x48_v1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2511", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Leon1000/pixel_spritesheet_4walk_combat_32x48_v1") prompt = "Create a pixel art spritesheet of the character in the image. Keep the appearance the same. The spritesheet is a 6 by 4 grid of four rows and six columns of frames - First row is 3 walking frames facing down, 2 arm swing attack frames facing down, and 1 hurt frame facing down. Second row is 3 walking frames facing left, 2 arm swing attack frames facing left, and 1 hurt frame facing left. Third row is 3 walking frames facing right, 2 arm swing attack frames facing right, and 1 hurt frame facing right. Fourth row is 3 walking frames back view facing up, 2 arm swing attack frames back view facing up, and 1 hurt frame back view facing up." image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
| tags: | |
| - text-to-image | |
| - lora | |
| - diffusers | |
| - template:diffusion-lora | |
| widget: | |
| - output: | |
| url: "images/knight 2500.png" | |
| text: >- | |
| Create a pixel art spritesheet of the character in the image. Keep the | |
| appearance the same. The spritesheet is a 6 by 4 grid of four rows and six | |
| columns of frames - First row is 3 walking frames facing down, 2 arm swing | |
| attack frames facing down, and 1 hurt frame facing down. Second row is 3 | |
| walking frames facing left, 2 arm swing attack frames facing left, and 1 | |
| hurt frame facing left. Third row is 3 walking frames facing right, 2 arm | |
| swing attack frames facing right, and 1 hurt frame facing right. Fourth row | |
| is 3 walking frames back view facing up, 2 arm swing attack frames back view | |
| facing up, and 1 hurt frame back view facing up. | |
| - output: | |
| url: "images/witch 2500.png" | |
| text: >- | |
| Create a pixel art spritesheet of the girl in the image. Keep her | |
| appearance the same. The spritesheet is a 6 by 4 grid of four rows and six | |
| columns of frames - First row is 3 walking frames facing down, 2 arm swing | |
| attack frames facing down, and 1 hurt frame facing down. Second row is 3 | |
| walking frames facing left, 2 arm swing attack frames facing left, and 1 | |
| hurt frame facing left. Third row is 3 walking frames facing right, 2 arm | |
| swing attack frames facing right, and 1 hurt frame facing right. Fourth row | |
| is 3 walking frames back view facing up, 2 arm swing attack frames back view | |
| facing up, and 1 hurt frame back view facing up. | |
| - output: | |
| url: "images/werewolf 2500.png" | |
| text: >- | |
| Create a pixel art spritesheet of the character in the image. Keep the | |
| appearance the same. The spritesheet is a 6 by 4 grid of four rows and six | |
| columns of frames - First row is 3 walking frames facing down, 2 arm swing | |
| attack frames facing down, and 1 hurt frame facing down. Second row is 3 | |
| walking frames facing left, 2 arm swing attack frames facing left, and 1 | |
| hurt frame facing left. Third row is 3 walking frames facing right, 2 arm | |
| swing attack frames facing right, and 1 hurt frame facing right. Fourth row | |
| is 3 walking frames back view facing up, 2 arm swing attack frames back view | |
| facing up, and 1 hurt frame back view facing up. | |
| base_model: Qwen/Qwen-Image-Edit-2511 | |
| instance_prompt: null | |
| license: apache-2.0 | |
| # pixel_spritesheet_4walk_combat_32x48_v1 | |
| <Gallery /> | |
| ## Model description | |
| A pixel art spritesheet LoRA for small 32x48 characters, with animation frames for walking up/down/left/right, 2 attack frames with an arm swing, and 1 hurt frame. | |
| ## How to use | |
| You can use the default Qwen Image Edit 2511 workflow from ComfyUI, but you'll have to edit the subgraph to add a new node for loading this LoRA. | |
| Images should be 768x768 because that's the size of the spritesheets used in training. | |
| ## How to get pixel-perfect images | |
| To get pixel-perfect images, downscale by a factor of 4. So 768x768 images should downscale to 192x192. Using k-centroid scaling works well. | |
| ## Download model | |
| [Download](/svntax-dev/pixel_spritesheet_4walk_combat_32x48_v1/tree/main) them in the Files & versions tab. | |