Commit Graph

86 Commits (d5137f063ebd1d31384957a8d3bea61ba5940fff)

Author SHA1 Message Date
catboxanon cde4619c5d
Repair ControlNet infotext parsing (#1833)
* Repair infotext parsing

🚧 Listen png info buttons

WIP

New infotext format

nits

nits

nits

rebase

refactor active unit counts

* nits

* nit

---------

Co-authored-by: huchenlei <chenlei.hu@mail.utoronto.ca>
2023-08-23 22:27:34 -04:00
Chenlei Hu 4fa9190436
Reland Reland "Port DW Pose preprocessor" (#1892)
* Port DW Pose preprocessor (#1856)

*  Add dependencies

* 🚧 wip

* 🚧 wip

* 🚧 download models

* 🚧 Minor fixes

* 🔧 update gitignore

* 🐛 Fix normalization issue

* 🚧 load DW model only when DW preprocessor is selected

*  Change test config

* 🎨 nits

* 🐛 Fix A1111 safe torch issue

📝 v1.1.235 (#1859)

Revert "Port DW Pose preprocessor (#1856)" (#1860)

This reverts commit 0d3310f599.

Reland "Port DW Pose preprocessor" (#1861)

* Revert "Revert "Port DW Pose preprocessor (#1856)" (#1860)"

This reverts commit 17e100e1fe.

* 🐛 Fix install.py

📝 v1.1.236 (#1862)

🐛 Delay import of mmpose (#1866)

📝 v1.1.237 (#1868)

🐛 Fix all keypoints invalid issue (#1871)

🐛 lazy import

🚧 update test expectation

🚧 Switch to onnx

🚧 solve onnx package issue

🔧 Check cuda in more efficient way

🎨 Format code

🔧 Make onnx runtime optional

* Use cv2 to load and run model on cpu

* nit
2023-08-09 00:21:18 -04:00
Chenlei Hu 4fd548b4d2
Revert "Reland dw pose onnx (#1890)" (#1891)
This reverts commit e141d33be9.
2023-08-07 17:50:12 -04:00
Chenlei Hu e141d33be9
Reland dw pose onnx (#1890)
* Port DW Pose preprocessor (#1856)

*  Add dependencies

* 🚧 wip

* 🚧 wip

* 🚧 download models

* 🚧 Minor fixes

* 🔧 update gitignore

* 🐛 Fix normalization issue

* 🚧 load DW model only when DW preprocessor is selected

*  Change test config

* 🎨 nits

* 🐛 Fix A1111 safe torch issue

📝 v1.1.235 (#1859)

Revert "Port DW Pose preprocessor (#1856)" (#1860)

This reverts commit 0d3310f599.

Reland "Port DW Pose preprocessor" (#1861)

* Revert "Revert "Port DW Pose preprocessor (#1856)" (#1860)"

This reverts commit 17e100e1fe.

* 🐛 Fix install.py

📝 v1.1.236 (#1862)

🐛 Delay import of mmpose (#1866)

📝 v1.1.237 (#1868)

🐛 Fix all keypoints invalid issue (#1871)

🐛 lazy import

* 🚧 update test expectation

* 🚧 Switch to onnx

* 🚧 solve onnx package issue

* 🔧 Check cuda in more efficient way

* 🎨 Format code
2023-08-07 17:35:37 -04:00
Chenlei Hu af34f51449
🐛 Fix cv2 color channel issue in unittest (#1878) 2023-08-05 20:16:23 -04:00
lvmin 20d25bb546 Revert "Port DW Pose preprocessor (#1856)"
This reverts commit 0d3310f599.
2023-08-05 02:58:03 -07:00
Chenlei Hu 8f44b22ee5
Reland "Port DW Pose preprocessor" (#1861)
* Revert "Revert "Port DW Pose preprocessor (#1856)" (#1860)"

This reverts commit 17e100e1fe.

* 🐛 Fix install.py
2023-08-04 16:04:02 -04:00
Chenlei Hu 17e100e1fe
Revert "Port DW Pose preprocessor (#1856)" (#1860)
This reverts commit 0d3310f599.
2023-08-04 15:13:51 -04:00
Chenlei Hu 0d3310f599
Port DW Pose preprocessor (#1856)
*  Add dependencies

* 🚧 wip

* 🚧 wip

* 🚧 download models

* 🚧 Minor fixes

* 🔧 update gitignore

* 🐛 Fix normalization issue

* 🚧 load DW model only when DW preprocessor is selected

*  Change test config

* 🎨 nits

* 🐛 Fix A1111 safe torch issue
2023-08-04 15:02:58 -04:00
Abdullah Alfaraj b4cdd10283
[API]: expose the filter functionality to api (#1667)
* [API]: expose the filter functionality to the api

* add basic unit_test for the filter api endpoint

* rename filter_list to filter

* 🚧 Return all filters throught API call

---------

Co-authored-by: huchenlei <chenlei.hu@mail.utoronto.ca>
2023-07-17 23:38:50 -04:00
ljleb 6ed97a7da2
Remove `importlib.reload`s (#1775)
* move external_code.py for python module caching

* remove importlib reload

* add test

* rename

---------

Co-authored-by: ljleb <set>
2023-07-08 16:52:16 -04:00
storyicon 17e9ca6c3b
feat: update get_unique_axis0 (#1567)
Signed-off-by: storyicon <yuanchao@bilibili.com>
2023-07-03 16:02:04 -04:00
Chenlei Hu 0b7f43107c
Add unittest on numpy random seed (#1698) 2023-06-23 20:55:15 -04:00
Chenlei Hu faa0d055a8
🐛 Allow functionally equiv stale units (#1695)
* 🐛 Allow functionally equiv stale units

* 🔇 demote stale warning to debug level

* 🐛 Update keys check

*  Add unittests
2023-06-23 17:16:38 -04:00
Chenlei Hu c02375a435
Add test on choose_input_image (#1691) 2023-06-23 14:58:37 -04:00
Chenlei Hu 16805be062
[Reland] 🔨 Refactor bound check for threshold and resolution (#1675)
* 🔨 Refactor bound check for threshold and resolution (#1668)

* 🔨 Refactor bound check for threshold and resolution

* nits

* 🐛 Fix bound check. Add more unittest.

* Fix param value used in logs
2023-06-22 21:38:12 -04:00
lllyasviel f58807c5f1 Revert "🔨 Refactor bound check for threshold and resolution (#1668)"
This reverts commit 2d5785b43f.
2023-06-22 03:02:45 -07:00
Chenlei Hu 2d5785b43f
🔨 Refactor bound check for threshold and resolution (#1668)
* 🔨 Refactor bound check for threshold and resolution

* nits
2023-06-21 22:05:00 -04:00
Chenlei Hu 18a7abdd7f
Add `preview as input` button (#1529)
*  Allow use preview

* 🐛 fix kwargs issue
2023-06-04 14:06:55 -04:00
Chenlei Hu 591b3de809
[Reland] Extract Prepare Mask logic (#1528)
* 🔨 Extract prepare mask logic

* 🐛 return Image instead of nparray

* 🐛 rename variable so that same variable always have same type

* 🎨 nits
2023-06-02 22:18:56 -04:00
lllyasviel 3c41f1546e
Revert "Extract prepare mask logic (#1525)" (#1527)
This reverts commit d7faaa491c.
2023-06-02 18:51:41 -07:00
Chenlei Hu d7faaa491c
Extract prepare mask logic (#1525)
* 🔨 Extract prepare mask logic

* 🐛 return Image instead of nparray
2023-06-02 21:05:05 -04:00
Chenlei Hu d99905418c
🔨 Extract pixel perfect calculation (#1522) 2023-06-02 18:28:44 -04:00
huchenlei bbe357e6ac Add cache for preprocessors 2023-05-21 13:36:03 -04:00
lvmin 0cf1c97815 Merge branch 'main' of https://github.com/zombieyang/sd-webui-controlnet into zombieyang-main 2023-05-06 11:03:49 -07:00
unknown 74b32affa5 add modules detail test 2023-05-06 23:49:22 +08:00
ljleb 3476c48d8d fix tests 2023-05-05 16:27:40 -04:00
ljleb 4abbf4d125 less changes 2023-05-05 14:50:52 -04:00
ljleb ab83f84c6b attempt to fix test 2023-05-05 14:40:14 -04:00
ljleb a03b2f8a68 remove old enpoint test 2023-05-05 14:20:06 -04:00
ljleb c4dea407eb guessmode -> control_mode 2023-05-05 14:10:40 -04:00
ljleb 274645d0c7 merge 'main' into this branch 2023-05-05 14:05:38 -04:00
ljleb 9be24fc425 add back test but only for non-flat args 2023-05-05 13:19:06 -04:00
ljleb c41cad6f49 remove args test 2023-05-05 13:13:33 -04:00
ljleb c5ea2f7027 add back main just to be sure 2023-05-05 12:32:48 -04:00
ljleb 31c52c8244 remove flat args 2023-05-05 12:28:26 -04:00
ramyma 5d387abf19
fix: Raise 500 exception instead of returning an error on `detect` API call (#863)
fix: Raise 422 exception instead of returning an error on `detect` API call
2023-05-03 22:03:32 -04:00
lvmin 0a4589e373 better codes, version flag 2023-05-03 00:42:49 -07:00
lllyasviel f20d0fa396
assert we have really tested preprocessors 2023-05-02 15:47:52 -07:00
huchenlei 47b7bafa83 Only test depth and openpose_full preprocessor 2023-05-02 17:58:03 -04:00
huchenlei 1a54ad4ffa 🐛 Exclude clip_vision preprocessor 2023-05-02 17:50:13 -04:00
huchenlei 0f915bf983 Add txt2img test with preprocessors 2023-05-02 17:50:13 -04:00
huchenlei e6b6993b6d 🐛 handles np float types when serializing JSON 2023-04-28 22:05:09 -04:00
huchenlei 3875a16abe Add json encoding logic 2023-04-28 17:35:50 -04:00
huchenlei 09296b1684 Refactor openpose data representation 2023-04-28 16:30:04 -04:00
huchenlei 55171dc9f9 Add end to end unittest on openpose preprocessor 2023-04-28 14:57:55 -04:00
huchenlei 99cda2f13e Rename dir to avoid module name conflict 2023-04-27 23:42:25 -04:00
huchenlei e9007fa1c1 Add openpose detection test 2023-04-27 22:14:40 -04:00
lvmin e7c264bf50 try fix github test 2023-04-26 20:51:46 -07:00
ljleb 0342759629
ignore extra args from api and fix param count (#1013)
* fix api

* automatic param count

* add new control param in tests

* add new control param in tests
2023-04-24 01:08:43 -04:00