This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disclaimer: The exclusive use of random seeds to compress data in a LOSSLESS fashion is a bad idea. | |
# ( !!! much work for few gains !!! ) | |
# With that out of the way, lets do it anyway... | |
# | |
# This "programming joke exercise" took me more time than expected, | |
# but at least was somewhat interesting despite the expected outcome. | |
# The solution is not yet 100% complete and there are performance improvements not yet implement | |
# but I doubt I will have the time and motivation to improve it. | |
import enum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This script adds a "dirty" undo and redo functionality to ComfyUI | |
HOW TO 'INSTALL': | |
Place undo_redo.js in the following directory: web/scripts | |
Open the file index.html inside the web folder. | |
After line 14 - window.graph = app.graph; - add the following lines of code: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from multiprocessing.shared_memory import SharedMemory | |
import cv2 as cv | |
from .utils.generate import * # from https://github.com/rohitrango/Image-Quilting-for-Texture-Synthesis | |
# -- NOTE -- ___________________________________________________________________________________________________________ | |
# | |
# This implementation improves vanilla (a.k.a. sequential) image quilting speed via parallelization. | |
# | |
# The following is a reference to the source implementation contained in the quilting folder: |