aboutsummaryrefslogtreecommitdiffstats
path: root/modules/textual_inversion/autocrop.py
Commit message (Collapse)AuthorAgeFilesLines
* reformat file with uniform indentationw-e-w2023-11-281-104/+106
|
* fix Auto focal point crop for opencv >= 4.8.xw-e-w2023-11-281-13/+16
| | | | | | | autocrop.download_and_cache_models in opencv >= 4.8 the face detection model was updated download the base on opencv version returns the model path or raise exception
* Use os.makedirs(..., exist_ok=True)Aarni Koskela2023-06-131-2/+1
|
* Simplify a bunch of `len(x) > 0`/`len(x) == 0` style expressionsAarni Koskela2023-06-021-7/+7
|
* Reindent autocrop with 4 spacesAarni Koskela2023-05-111-100/+102
|
* imports cleanup for ruffAUTOMATIC2023-05-101-3/+1
|
* manual fixes for ruffAUTOMATIC2023-05-101-1/+1
|
* Fix up string formatting/concatenation to f-strings where feasibleAarni Koskela2023-05-091-3/+3
|
* Fix divide by 0 errorPhytoEpidemic2022-12-021-3/+3
| | | Fix of the edge case 0 weight that occasionally will pop up in some specific situations. This was crashing the script.
* update default weightscaptin4112022-10-261-8/+8
|
* download better face detection module dynamicallycaptin4112022-10-251-0/+20
|
* improve debug markers, fix algo weightingcaptin4112022-10-251-78/+129
|
* auto cropping now works with non square cropscaptin4112022-10-231-240/+269
|
* improve face detection a lotcaptin4112022-10-201-37/+62
|
* face detection algo, configurability, reusabilitycaptin4112022-10-201-0/+216
Try to move the crop in the direction of a face if it is present More internal configuration options for choosing weights of each of the algorithm's findings Move logic into its module