kex0
b6fdff6549
force disable `reutrn_grid` #62
2023-05-28 02:23:36 +02:00
kex0
fd7d2ca826
fixed visualizer, fixed mask width/height
2023-05-12 01:05:27 +02:00
kex0
5930ba5056
added YuNet detector, improved masks
...
+added YuNet face detection and set as new default
https://opencv.org/opencv-face-detection-cascade-classifier-vs-yunet/
+masks no longer combine even if they overlap
+improved mask resizing
2023-05-12 00:28:13 +02:00
kex0
caecdecd00
added "Swap 🎭 " button to regenerate faces
...

Sadly the results won't show up in the webui, I couldn't figure out how to do that.
2023-05-06 08:50:54 +02:00
kex0
69c95fd399
fix `Load generation parameters from images`
2023-05-05 12:53:15 +02:00
kex0
47ed8f107a
#49 possible solution
2023-05-05 12:08:05 +02:00
kex0
fc79eef1c2
added seed, steps, cfg_scale, resolution overrides
2023-05-05 09:01:58 +02:00
kex0
e1ebb22b70
added prompt override, denoising slider,....
...
mask_blur slider, inpaint_full_res_padding slider,...
2023-05-05 03:08:44 +02:00
kex0
c13a8922a5
major update (works in txt2img) wip
...
TODO:
+ add option to face swap using secondary prompt in txt2img
+ add denoising_strength slider for txt2img
+ add mask_blur slider for txt2img
+ add inpaint_full_res_padding slider for txt2img
? fix batch_size and n_iter for txt2img
+ cleanup
2023-05-04 14:48:45 +02:00
kex0
b7db0118fb
move to separate tab WIP
2023-04-07 14:52:45 +02:00
kex0
60e259d846
option to save to original image folder
2023-03-16 03:02:46 +01:00
Robert Barron
4d5efefcb8
simplify some code
2023-03-12 20:36:41 -07:00
Robert Barron
dfb0117f6e
fix bug in OpenCV rotation
...
The center of the face was being reported as the center in the internally-cropped image, not the center
in the original mask. When the code that detects which face corresponds to which mask ran, it samples
the mask at the center of each face, but since the center was wrong, it would use the default index 0.
2023-03-12 20:23:23 -07:00
Robert Barron
84e411e946
face rotation: refactor rotation calculation into a shared function & fix a minor bug in OpenCV case
...
The OpenCV path includes code to handle if FaceMesh finds 2+ faces when trying to get
the FaceMesh corresponding to an OpenCV face, by selecting the face that best matches the
OpenCV face. Normally FaceMesh only returns 1 face, but in the case where it found 2+ faces,
the previous version would break. (I think, I don't have any examples that trigger this path.)
2023-03-12 07:44:38 -07:00
Robert Barron
794a839c9d
fix bug in "fixed inverted masks not working" change that broke face swapping more than 1 face per image
2023-03-12 07:33:00 -07:00
Robert Barron
1846ca8114
generateImages2: try to simplify generateImages
2023-03-12 06:20:56 -07:00
kex0
d4249ebd65
fixed inverted masks not working
2023-03-12 02:17:48 +01:00
kex0
df8b31bd1a
skip seed and steps when using image geninfo
2023-03-09 18:33:14 +01:00
kex0
db6765884c
exposed rotation_threshold variable
...

2023-03-08 21:34:28 +01:00
kex0
4b77d124c8
fixed masks being saved even with no detection
2023-03-08 21:03:47 +01:00
kex0
e65f9d0db9
rotate face before generating so it's always uprigth...
...
...SD famously gives terrible results when faces are sideways, not anymore.
2023-03-06 23:29:03 +01:00
kex0
35f38a6db7
added option to load gen parameters from images
...
useful when you want to quickly "enhance" faces on images generated with automatic1111
2023-03-03 14:48:15 +01:00
kex0
ae2ecac6ed
existing masks can now have any extension, small...
...
...ui changes
2023-01-30 22:45:03 +01:00
kex0
15587fd4d0
update visualizer on detector change
2023-01-30 21:09:47 +01:00
Sean Barrett
3b9aead378
new face detector using OpenCV combined with FaceMesh
2023-01-29 17:51:42 -08:00
kex0
a2e6ec8aca
#18 preserve image size
2023-01-29 22:01:23 +01:00
Sean Barrett
d08174ae7b
fix uninitialized suffix variable
2023-01-29 12:27:10 -08:00
kex0
fe11e52d18
now correctly showing all images in the webui
2023-01-29 09:21:18 +01:00
kex0
5d35c043c4
fix batch count multiface numbering and...
...
...save directory when "Save image even if face was not found" is enabled
2023-01-29 08:50:50 +01:00
kex0
b01e504995
fix last commit
2023-01-29 04:34:31 +01:00
kex0
a6a0512044
#15 disable grid generation
2023-01-29 04:32:24 +01:00
kex0
337fff0b09
#15 now correctly numbering files
...
when batch count is > 1
2023-01-29 02:59:32 +01:00
kex0
2b023f09ef
fix #14 and counting faces when path is not used
2023-01-28 00:48:37 +01:00
kex0
1accdc7c4f
added option to generate using existing masks
...
new `Existing masks` tab
2023-01-26 22:06:10 +01:00
kex0
9aa4a04d98
added option to keep the original filename
2023-01-25 22:30:30 +01:00
kex0
01c646ab01
fix bug caused by previous commit
2023-01-24 17:05:45 +01:00
kex0
634b27c2b5
handle exception when opening corrupted/incomplete image
2023-01-24 16:56:33 +01:00
kex0
b28a243219
fixed not being able to save jpg when original had alpha
2023-01-24 06:37:35 +01:00
kex0
7b2849c741
improved memory management
...
fixed corner case exception when dilating low-res mask
2023-01-24 02:42:46 +01:00
kex0
c1673e3ded
cleanup
2023-01-22 20:51:26 +01:00