akhaliq HF staff commited on
Commit
f1c7d36
1 Parent(s): 4216567

update readme

Browse files
Files changed (1) hide show
  1. README.md +20 -0
README.md CHANGED
@@ -1,6 +1,26 @@
 
1
  This Stable diffusion checkpoint allows you to generate pixel art sprite sheets from four different angles.
2
  These first images are my results after merging this model with another model trained on my wife. merging another model with this one is the easiest way to get a consistent character with each view. still requires a bit of playing around with settings in img2img to get them how you want. for left and right, I suggest picking your best result and mirroring. after you are satisfied take your photo into photoshop or Krita, remove the background, and scale to the desired size. after this you can scale back up to display your results; this also clears up some of the color murkiness in the initial outputs.
3
  ![final sheet.png](https://s3.amazonaws.com/moonup/production/uploads/1667278292305-63028bc42db53f7d9f38dadb.png)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  ___
5
  ___
6
  For the front view use "PixelartFSS"
 
1
+
2
  This Stable diffusion checkpoint allows you to generate pixel art sprite sheets from four different angles.
3
  These first images are my results after merging this model with another model trained on my wife. merging another model with this one is the easiest way to get a consistent character with each view. still requires a bit of playing around with settings in img2img to get them how you want. for left and right, I suggest picking your best result and mirroring. after you are satisfied take your photo into photoshop or Krita, remove the background, and scale to the desired size. after this you can scale back up to display your results; this also clears up some of the color murkiness in the initial outputs.
4
  ![final sheet.png](https://s3.amazonaws.com/moonup/production/uploads/1667278292305-63028bc42db53f7d9f38dadb.png)
5
+
6
+ ### 🧨 Diffusers
7
+
8
+ This model can be used just like any other Stable Diffusion model. For more information,
9
+ please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion).
10
+
11
+ You can also export the model to [ONNX](https://huggingface.co/docs/diffusers/optimization/onnx), [MPS](https://huggingface.co/docs/diffusers/optimization/mps) and/or [FLAX/JAX]().
12
+
13
+ ```python
14
+ #!pip install diffusers transformers scipy torch
15
+ from diffusers import StableDiffusionPipeline
16
+ import torch
17
+ model_id = "Onodofthenorth/SD_PixelArt_SpriteSheet_Generator"
18
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
19
+ pipe = pipe.to("cuda")
20
+ prompt = "PixelartLSS"
21
+ image = pipe(prompt).images[0]
22
+ image.save("./pixel.png")
23
+ ```
24
  ___
25
  ___
26
  For the front view use "PixelartFSS"