diff options
| author | captin411 <captindave@gmail.com> | 2022-10-19 03:18:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-19 03:18:26 -0700 |
| commit | abeec4b63029c2c4151a78fc395d312113881845 (patch) | |
| tree | ff7343dbf1ba75093067c088b7b695a0454ff3ed /models | |
| parent | f894dd552f68bea27476f1f360ab8e79f3a65b4f (diff) | |
| download | stable-diffusion-webui-gfx803-abeec4b63029c2c4151a78fc395d312113881845.tar.gz | |
Add auto focal point cropping to Preprocess images
This algorithm plots a bunch of points of interest on the source
image and averages their locations to find a center.
Most points come from OpenCV. One point comes from an
entropy model. OpenCV points account for 50% of the weight and the
entropy based point is the other 50%.
The center of all weighted points is calculated and a bounding box
is drawn as close to centered over that point as possible.
Diffstat (limited to 'models')
0 files changed, 0 insertions, 0 deletions
