668 Commits

Author SHA1 Message Date
Dowon
358d1706f9 Merge branch 'dev' v24.11.1 2024-11-13 19:51:09 +09:00
Dowon
35c44a5ac3 chore: v24.11.1 2024-11-13 19:50:31 +09:00
Dowon
891fb9469d fix: missing mediapipe confidences 2024-11-13 19:50:16 +09:00
Dowon
8ddf919e1e Merge branch 'dev' 2024-11-10 18:24:16 +09:00
Dowon
3ab17ae174 chore: v24.11.0 2024-11-10 18:24:08 +09:00
Dowon
2d852bafbc chore(ci): cron test 2024-11-02 22:39:33 +09:00
pre-commit-ci[bot]
73cec6cc44 [pre-commit.ci] pre-commit autoupdate (#728)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-11-02 22:36:23 +09:00
Dowon
423fda866a fix(install): fix mediapipe version 2024-11-02 22:27:47 +09:00
Dowon
a8b51ffa76 chore: update taskfile 2024-11-02 22:27:06 +09:00
Dowon
424093bbd8 fix(scripts): LANCZOS 2024-11-02 22:25:55 +09:00
Dowon
47e3a572e4 chore(ci): refactor gitHub actions workflows 2024-09-28 01:18:41 +09:00
Dowon
18e111322c fix(ui): ad_mask_filter_method add suffix 2024-09-25 20:18:48 +09:00
pre-commit-ci[bot]
ce071b6040 [pre-commit.ci] pre-commit autoupdate (#690)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.7 → v0.6.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.7...v0.6.7)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-25 20:14:16 +09:00
Dowon
9de46de1d2 Merge remote-tracking branch 'origin/main' into dev 2024-09-25 20:13:04 +09:00
Collin Avidano
9ceb58685a Feature: Filter k most confident masks (#720)
* add filter to things that return confidences need to add ui elements to select between the two methods

* add ui elements for controlling method

* forgot to remove this

* fix incorrect early exit

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

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

* fix: pop mask only top k params

* fix: filter confidences

* refactor: change to one public function

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Dowon <ks2515@naver.com>
2024-09-25 20:12:28 +09:00
Dowon
753862017a fix(ui): rename ad_classes to ad_model_classes 2024-09-22 23:56:03 +09:00
Dowon
c439128484 refactor(scripts): optimize get_override_settings method
Refactor the get_override_settings method in the AfterDetailerScript class to improve code readability and maintainability. Removed unused parameter '_p' and added type hints for better code documentation.
2024-09-22 23:54:21 +09:00
Dowon
feefeed638 fix(scripts): fix optioninfo, add xyz options 2024-09-17 19:42:42 +09:00
Dowon
ceacc711e4 fix(scripts): copy scripts args
maybe fix #701
2024-09-09 22:13:58 +09:00
Dowon
17694f9ac2 dev version 2024-09-02 23:15:57 +09:00
Dowon
03ec9d004a Merge branch 'dev' v24.9.0 2024-09-02 23:14:20 +09:00
Dowon
5ff72ad76d chore: v24.9.0 2024-09-02 23:07:52 +09:00
Dowon
0a1fd3a4af fix(scripts): get image mask ensure L mode 2024-08-30 20:12:18 +09:00
Dowon
91f7d8617a fix(scripts): init image controlnet error 2024-08-27 19:18:00 +09:00
Dowon
bb070be961 fix(scripts): controlnet enabled 2024-08-25 15:43:27 +09:00
Dowon
fabb7ded2b fix(script): missing get_ad_model 2024-08-25 15:13:25 +09:00
Dowon
67793f076c chore: update .github 2024-08-25 14:59:58 +09:00
Dowon
47cc6b9070 fix(scripts): misc 2024-08-25 14:51:05 +09:00
Dowon
63b0d2bbde chore: exclude modules dir 2024-08-24 19:20:29 +09:00
Dowon
6090dcdaa9 fix(scripts): fix is ad enabled 2024-08-24 19:14:10 +09:00
Dowon
a3935fcc4f chore(ci): fix pypi action 2024-08-24 14:48:13 +09:00
Dowon
cbd60739e8 fix(scripts): move empty check 2024-08-24 13:59:34 +09:00
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