Chenlei Hu
2d73f31f1b
🐛 Disable flaky tests ( #2232 )
2023-11-04 23:17:09 -04:00
Chenlei Hu
36a7ed567c
🐛 Init webui only once in tests ( #2228 )
2023-11-04 17:59:11 -04:00
Chenlei Hu
27c522029e
Fix CI tests ( #2220 )
...
* 🔧 setup CI
* 🐛 Fix path
* cd
* set working dir
* fix openpose tests
* Fix web_api tests
* Fix batch hijack tests
* change coverage dir
* 📝 Add doc
2023-11-04 00:48:22 -04:00
lllyasviel
1d5402326d
sdxl support (for SAI/HuggingFace/diffuser/community models) ( #1952 )
...
sdxl support (for SAI/HuggingFace/diffuser/community models)
1.1.400
2023-09-04 10:41:42 -07:00
Chenlei Hu
664ac74cae
Relands #2033 ( #2038 )
...
* 🎨 re-format api.py
* Add pose json to api response
* Simplify response format
* fix
2023-09-04 09:06:46 -04:00
lllyasviel
7bdcb9079a
Revert "Add openpose json to API response ( #2033 )"
...
This reverts commit e2cd3b91a8 .
2023-09-04 05:38:19 -07:00
Chenlei Hu
e2cd3b91a8
Add openpose json to API response ( #2033 )
...
* 🎨 re-format api.py
* Add pose json to api response
* Simplify response format
2023-09-03 17:33:05 -04:00
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
ljleb
07ef8a750a
Multi-ControlNet Batch ( #683 )
...
* add back preprocessor
* reload imports for people that update without restarting webui
* remeove img2img tab tracker (replaced by batch hijack)
* batch hijack script
* update gradio ui
* new options (used by batch hijack)
* demeter violation
* clear detected_map
* bug fixes, boys scout and whitespace
* demeter (tests)
* batch tests
* fix alwayson script args in api tests
* extract cn unit image type
* update instead of buggy set
* update readme
* carousel -> gallerie output
* fix index in unit batch iterator
* fix hook unregistering all callbacks
* dont modify hook
* fix non-cn batch
* fix responsiveness
* dont need queue here
* state no change
* readme
* name
* fix ui, bump version
* loopback less important
* interrupt batch if no input image
* keep batch mode in sync
* typo
2023-04-23 16:35:31 -04:00
lvmin
2c71749d82
see if pass test, 5th attempt
2023-04-20 02:04:19 -07:00
lvmin
33be4f47af
see if pass test, 4th attempt
2023-04-20 00:31:08 -07:00
lvmin
4ba62a6470
see if pass test, 2nd attempt
2023-04-19 23:49:52 -07:00
lvmin
b382654ed7
see if pass test
2023-04-19 23:37:44 -07:00
lvmin
c07a140cdd
use text consistent to a1111 resizing
2023-04-18 00:56:21 -07:00
lvmin
1a18328a95
fix tests and revise high-res fix
2023-04-17 17:52:37 -07:00
lvmin
86873af29e
fix tests
2023-04-17 17:22:14 -07:00
lvmin
42158b1b43
major update - ControlNet 1.1 GUI
2023-04-17 16:53:20 -07:00
lvmin
7a1eacc92e
low vram vs shuffle
2023-04-15 20:07:32 -07:00
Vespinian
fbcbe6f84b
Added a 0 controlunit tests in alwayson script to test the default units created in a normal API call, should also test for mismatch max units vs given units
2023-04-04 20:20:53 -04:00
Vespinian
177379ffe5
Revert "Experiment: add 2 tests that change the max model option to test 2 max_model with 1 unit"
...
This reverts commit 31aacd242f .
2023-04-04 20:10:59 -04:00
Vespinian
31aacd242f
Experiment: add 2 tests that change the max model option to test 2 max_model with 1 unit
2023-04-03 22:53:29 -04:00
Vespinian
c99056ba95
Use the deprecated routes in the deprecated route tests
2023-03-31 14:08:30 -04:00
Vespinian
bf0cee86aa
Forgot to add assert_status_ok in default params test
2023-03-31 11:47:50 -04:00
Vespinian
f58ad01a32
Added some basic img2img tests
2023-03-31 11:31:29 -04:00
Vespinian
eb493b628f
removed unused import
2023-03-31 11:27:00 -04:00
Vespinian
ef5bd8442d
comment fix
2023-03-31 01:00:33 -04:00
Vespinian
014c741235
added comment
2023-03-31 00:59:54 -04:00
Vespinian
c51fde4498
Added experimental stderr parsing in assert_status_ok
2023-03-31 00:52:36 -04:00
Vespinian
212bbb9c55
switch from using var to select between alwayson and deprecated to using update dict method
2023-03-30 23:39:00 -04:00
Vespinian
a2e9b50f4b
Patched unit module being None, by passing default_unit.module value if None in the parse_remote_call function, Updated test so they execute the tests correctly with controlnet units either in alwayson_scripts or with the control_units param
2023-03-29 20:48:18 -04:00
ljleb
fd753f22a1
workaround for is_img2img and is_ui
2023-03-14 22:06:05 -04:00
ljleb
2db7eee81e
test image dict getter
2023-03-14 20:46:16 -04:00
ljleb
e0d94846f4
add test for mask property
2023-03-14 19:51:39 -04:00
ljleb
40934b81b9
more tests
2023-03-14 18:28:31 -04:00
ljleb
1506fe6dae
give up on patch and temp test with ljleb branch
2023-03-14 15:30:46 -04:00
ljleb
2c2ad09e46
try patch to see if workflow fixes itself
2023-03-14 15:07:45 -04:00
ljleb
d4477a5ed2
add back external code tests
2023-03-14 14:49:04 -04:00
ljleb
28bfda8df4
bypass external code tests for now
2023-03-13 20:31:12 -04:00
ljleb
3c273363df
revert relative imports
2023-03-13 20:19:19 -04:00
ljleb
88919de14b
workaround for torch check
2023-03-13 20:10:21 -04:00
ljleb
91fbfb56b2
temp remove external_code tests
2023-03-13 17:03:41 -04:00
ljleb
4bca649a3a
remove is_img2img from args
2023-03-13 16:55:57 -04:00
ljleb
4cff986240
test dict args, test external_code
2023-03-13 16:32:22 -04:00
Mikubill
bbd5dd2a0e
fix: add UniPC to vanilla samplers ( #577 ), add tests
2023-03-13 09:43:26 +00:00