6 Commits
Author SHA1 Message Date
Bruno Madeira 657dd120e1 cleaning ...
* patch_search.py renamed to synthesis_subroutines.py.
* fixed number of channels when using cv.floodFill with latents in new min cut implementation.
* make_seamless.py and make_seamless2.py use same "min_cut_patch" implementation.
* quilting.py allows to use v0 implementation, but otherwise, also shares the same as seamless nodes.
* check optional lib using importlib
2024-08-19 15:56:04 +01:00
Bruno Madeira fc1385f166 seamless nodes for latents. 2024-08-06 18:41:28 +01:00
Bruno Madeira 28fa8fea58 added node + added feature + fixes.
* new node: GuessNiceBlockSize.
* new feature: image quilting nodes get a special block size range that uses guess_nice_block_size; also works with parallel batch but the guess must be done before parallelization in order to setup the total number of steps in pbar.
* fixes: node options using shallow copy fixed; fixed parallelization error when lookup is None; fixed edge case in bse_desc_util.py.
* misc: guess_nice_block_size can be given an alternative upper bound (needed when patching H seam); guess_nice_block_size can run bse_ft only for faster analysis.
2024-08-05 00:01:07 +01:00
Bruno Madeira 0287e2d4a2 Refactoring + fixes + added node (ImageMakeSeamlessSB)
* refactored patch_search.py
* fixed H Seam position on v2
* fixed seamless node bar total steps not accounting for batch size
* added uicd logic to make_seamless2.py
* removed mains from make_seamless.py & make_seamless2.py
* other minor cleanups

- triggered error in find_patch_vx due to random gen having a value equal or lesser than zero as argument.
Was not able to reproduce the error again so far.
Conjecture: it may be the case that the min error was negative due to lack of precision when using patch v3, resulting in an empty list of candidates if tolerance is not zero; if this is the case the error should happen only when using version 3.
2024-07-31 16:10:14 +01:00
Bruno Madeira 4a315f5410 bare-bones node for seamless texture.
* implemented using 1st solution, from make_seamless.py.
* batches not yet implemented.
2024-07-29 23:55:01 +01:00
bmad4ever cd9045c2f7 code 2024-03-04 00:10:09 +00:00