Commit Graph

636 Commits

Author SHA1 Message Date
Dowon
fbbe127c9e fix: add PL rule 2024-08-24 13:58:08 +09:00
Dowon
652da215ac chore: dev version 2024-08-24 13:52:39 +09:00
Dowon
79a74819cb refactor(script): reduce complexity 2024-08-24 13:51:11 +09:00
Dowon
18d8db995f fix(scripts): fix ad_save_images_dir 2024-08-24 13:35:37 +09:00
Dowon
d705c6e30a feat(scripts): update pr options 2024-08-24 13:34:20 +09:00
Dowon
a3506f3222 Merge remote-tracking branch 'origin/dev' into dev 2024-08-24 13:16:21 +09:00
bluelovers
cc0a11393c feat: add ad_save_images_dir (#689)
* feat: add `ad-save-images`

https://github.com/Bing-su/adetailer/issues/688

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* feat: only enable `ad_save_images_dir` when not empty

https://github.com/Bing-su/adetailer/pull/689#issuecomment-2300057990

* fix: F401 `pathlib.PurePath` imported but unused

https://results.pre-commit.ci/run/github/632823919/1724229072.nxpHBQU4QvaIJ8IOFayT1Q

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-24 13:16:12 +09:00
Dowon
a00a4cf12d feat: #678 opts 2024-08-21 21:44:30 +09:00
Dowon
7c8c103be2 chore: include hypothesis 2024-08-21 21:44:08 +09:00
LoganBooker
38db25b483 Add dynamic denoising and inpaint bbox sizing (#678)
* Added dynamic denoising and inpaint bbox sizing

* Dynamic denoising: Once bboxes are available from the predictor, it is possible to calculate the size of the crop region relative to the original image size. Using this value, we can modulate the "Inpaint denoising strength" based on the region size, with smaller regions getting higher denoising, and smaller areas less.
* Several algorithms were tested, ultimately, a configurable power value worked best. Values between 2-4 are recommended (1 is equivalent to linear).

* Try match inpaint/bbox size: Again, using bbox sizes, we can determine more optimal dimensions and aspect ratio for the inpaint width and height.
* Only active for SDXL, as the model natively handles various dimensions and aspect ratios.

* Don't use inpaint/bbox matching if user has specified their own width and height

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Remove math.isclose.

* Remove math import

* Remove unneeded formatting

* Better descriptions for new features in settings.

* Tidy up bbox matching, filter out more resolutions earlier

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add strict and free inpaint bbox size matching

* Strict: SDXL only, same as original implementation
* Free (prefer smaller or larger): Theoretically works with any model. Adjusts the inpaint region to match the aspect ratio of the bbox exactly, favouring either the smaller dimension or larger dimension of the original inpaint region. We also round up (if needed) to the closest 8 pixels to make the dimensions nicer to diffusion/upscalers. "Prefer smaller" is the better option, as it will usually very closely match the original inpaint sizes.
* Also added a threshold to the difference between the original inpaint size and adjusted size, and ignore the adjusted size if it's very similar.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Use or for checking thresholds on new inpaint dimensions

* Rework free mode to a single setting

Should now always pick optimal dimensions

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-18 14:48:48 +09:00
pre-commit-ci[bot]
d3a38aa331 [pre-commit.ci] pre-commit autoupdate (#681)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.5.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.6...v0.5.7)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-15 19:44:07 +09:00
Dowon
25e7509fe0 Merge branch 'dev' v24.8.0 2024-08-03 13:20:15 +09:00
Dowon
4f3daa7609 chore: v24.8.0 2024-08-03 13:20:07 +09:00
Dowon
7664737d82 chore: update pre-commit 2024-08-03 13:08:20 +09:00
Dowon
23e3c5d778 feat(script): same sampler option 2024-08-03 13:07:06 +09:00
Dowon
cdb7bd6357 fix: suppress mediapipe error 2024-08-03 13:07:06 +09:00
pre-commit-ci[bot]
b700b354d5 [pre-commit.ci] pre-commit autoupdate (#666)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.2 → v0.5.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.2...v0.5.5)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-03 13:06:59 +09:00
Dowon
1985fa13e1 fix(scripts): before process 2024-07-20 17:27:38 +09:00
Dowon
62591c43bd fix: fix typo 2024-07-20 17:23:37 +09:00
Dowon
53998d67f1 fix(scripts): revert exif prompt 2024-07-20 17:21:08 +09:00
Dowon
db3be81c4e feat: add controlnet union model 2024-07-17 20:27:56 +09:00
Dowon
ab845cf596 chore: dev version 2024-07-17 20:21:35 +09:00
Dowon
ae98eb90ed stype: fix ruff warnings 2024-07-17 20:20:32 +09:00
pre-commit-ci[bot]
0a9b7fdc3a [pre-commit.ci] pre-commit autoupdate (#648)
updates:
- [github.com/rbubley/mirrors-prettier: v3.3.2 → v3.3.3](https://github.com/rbubley/mirrors-prettier/compare/v3.3.2...v3.3.3)
- [github.com/astral-sh/ruff-pre-commit: v0.4.9 → v0.5.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.9...v0.5.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-17 20:17:09 +09:00
Dowon
a17f97643e fix(scripts): fix default scheduler 2024-07-17 20:13:22 +09:00
Dowon
a7d961131e Merge branch 'dev' v24.6.0 2024-06-16 09:32:49 +09:00
Dowon
d8aaaa8265 chore: update pre-commit 2024-06-16 09:31:31 +09:00
Dowon
45e13bb46c chore: v24.6.0 2024-06-16 09:30:58 +09:00
Dowon
9f52c852c2 fix(install): protobuf==3 available 2024-06-13 20:01:49 +09:00
pre-commit-ci[bot]
872f55a15a [pre-commit.ci] pre-commit autoupdate (#632)
updates:
- [github.com/rbubley/mirrors-prettier: v3.2.5 → v3.3.1](https://github.com/rbubley/mirrors-prettier/compare/v3.2.5...v3.3.1)
- [github.com/astral-sh/ruff-pre-commit: v0.4.5 → v0.4.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.5...v0.4.8)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-13 19:50:58 +09:00
pre-commit-ci[bot]
60853a0c82 [pre-commit.ci] pre-commit autoupdate (#628)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.4 → v0.4.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.4...v0.4.5)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-02 13:01:05 +09:00
Dowon
a479f60f40 feat(ui): use InputAccodian 2024-06-02 13:00:19 +09:00
Dowon
a79a472c6b fix: typeerror typo 2024-06-02 12:47:42 +09:00
Dowon
6dd603d2cd fix: open-clip-torch version 2024-06-02 12:44:54 +09:00
Dowon
72647e5bfa fix: version requirements 2024-05-27 23:45:53 +09:00
Dowon
479f5f4a2e fix: hard english 2024-05-27 23:24:20 +09:00
Dowon
ba039cbbae feat: check hf mirror, use local cache 2024-05-22 00:34:22 +09:00
Dowon
0fd53ce2f3 fix(setting): max taps, needs_reload_ui 2024-05-22 00:16:53 +09:00
Dowon
a89c01d357 Merge branch 'dev' v24.5.1 2024-05-20 20:37:45 +09:00
Dowon
cf83cd0436 chore: v24.5.1 2024-05-20 20:33:58 +09:00
Dowon
a655127eee fix(install): revert use uv 2024-05-20 20:32:20 +09:00
Dowon
6c357b3910 fix: remove global variable 2024-05-20 00:54:11 +09:00
Dowon
125dd6159c chore: dev version 2024-05-20 00:14:13 +09:00
Dowon
ad0271d6bc fix(scripts): 4 default taps 2024-05-20 00:13:51 +09:00
Dowon
2f9b9ab0f6 feat: concurrent download models 2024-05-20 00:11:01 +09:00
Dowon
599c3cc7fc refactor: generic int | float typing 2024-05-19 23:54:38 +09:00
Dowon
9d1b6bf64a fix: numpy typing error 2024-05-19 23:36:20 +09:00
Dowon
fb5401e22b fix(install): fix empty package error 2024-05-19 23:25:22 +09:00
Dowon
397a724a73 Merge branch 'dev' v24.5.0 2024-05-19 21:01:04 +09:00
Dowon
944be82461 fix(ci): update pypi action 2024-05-19 21:00:38 +09:00