thomaseding commited on
Commit
50ad87f
1 Parent(s): 53cca15

Update readme

Browse files
Files changed (2) hide show
  1. .vscode/settings.json +2 -0
  2. README.md +2 -4
.vscode/settings.json CHANGED
@@ -5,6 +5,8 @@
5
  "downsample",
6
  "downsampled",
7
  "downsampler",
 
 
8
  "Eding",
9
  "getdata",
10
  "getpixel",
 
5
  "downsample",
6
  "downsampled",
7
  "downsampler",
8
+ "downscaled",
9
+ "downscaler",
10
  "Eding",
11
  "getdata",
12
  "getpixel",
README.md CHANGED
@@ -28,9 +28,7 @@ There is no preprocessor. Instead, supply a black and white checkerboard image a
28
 
29
  The script `gen_checker.py` can be used to generate checkerboard images of arbitrary sizes. (https://huggingface.co/thomaseding/pixelnet/blob/main/gen_checker.py) Example: `python gen_checker.py --upscale-dims 512x512 --dims 70x70 --output-file control.png` to generate a 70x70 checkerboard image upscaled to 512x512 pixels.
30
 
31
- ![grid5x5](https://huggingface.co/thomaseding/pixelnet/resolve/main/example-control-images/5x5.png)
32
-
33
- ![grid16x16](https://huggingface.co/thomaseding/pixelnet/resolve/main/example-control-images/16x16.png)
34
 
35
  ### FAQ:
36
 
@@ -40,7 +38,7 @@ A: From my experience SD has a hard time creating genuine pixel art (even with d
40
 
41
  Q: Should I use this model with a post-processor?
42
 
43
- A: Yes, I still recommend you do post-processing to clean up the image. This model is not perfect and will still have artifacts. Note that none of the sample output images are post-processed; they are raw outputs from the model. Consider sampling the image based on the location of the control grid checker faces. I will provide a custom script specialized for this in the near future.
44
 
45
  Q: Does the model support non-square grids?
46
  A: Kind of. I trained it with some non-perfect square grids (when pre-upscaled checkerboards are not a factor of the upscaled image size), so in that sense it should work fine. I also trained it with some checkerboard images with genuine non-square rectangular faces (e.g. double-wide pixels).
 
28
 
29
  The script `gen_checker.py` can be used to generate checkerboard images of arbitrary sizes. (https://huggingface.co/thomaseding/pixelnet/blob/main/gen_checker.py) Example: `python gen_checker.py --upscale-dims 512x512 --dims 70x70 --output-file control.png` to generate a 70x70 checkerboard image upscaled to 512x512 pixels.
30
 
31
+ The script `controlled_downscale.py` is a custom downscaler made specifically for this model. You provide both the generated image and the control image used to generate it. It will downscale according to the control grid. (https://huggingface.co/thomaseding/pixelnet/blob/main/controlled_downscale.py) Example: `python controlled_downscale.py --control diffusion_control.png --input diffusion_output.png --output-downscaled downscaled.png --output-quantized quantized.png --trim-cropped-edges true`
 
 
32
 
33
  ### FAQ:
34
 
 
38
 
39
  Q: Should I use this model with a post-processor?
40
 
41
+ A: Yes, I still recommend you do post-processing to clean up the image. This model is not perfect and will still have artifacts. Note that none of the sample output images are post-processed; they are raw outputs from the model. Consider sampling the image based on the location of the control grid checker faces. The provided `controlled_downscale.py` script can do this for you. You can take the output of this script (presumably the `--output-downscaled` file) and then run it through a different post-processor (e.g. to refine the color palette).
42
 
43
  Q: Does the model support non-square grids?
44
  A: Kind of. I trained it with some non-perfect square grids (when pre-upscaled checkerboards are not a factor of the upscaled image size), so in that sense it should work fine. I also trained it with some checkerboard images with genuine non-square rectangular faces (e.g. double-wide pixels).