mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
f0b1bb0327
The previous algorithm errored if the image wasn't divisible by the tile size. I've reimplemented it from scratch to mitigate this issue. The new algorithm is simpler. We create a pool of tiles, then use them to create an image composed completely of tiles. If there is any awkwardly sized space on the edge of the image, the tiles are cropped to fit. Finally, paste the original image over the tile image. I've added a jupyter notebook to do a smoke test of infilling methods, and 10 test images. The other infill algorithms can be easily tested with the notebook on the same images, though I didn't set that up yet. Tested and confirmed this gives results just as good as the earlier infill, though of course they aren't the same due to the change in the algorithm. |
||
---|---|---|
.. | ||
basicsr | ||
depth_anything | ||
dw_openpose | ||
infill_methods | ||
realesrgan | ||
__init__.py | ||
canny.py | ||
hed.py | ||
invisible_watermark.py | ||
lineart_anime.py | ||
lineart.py | ||
pngwriter.py | ||
safety_checker.py | ||
seamless.py | ||
util.py |