Commit Graph

26 Commits (0baecb5f09da96bf5aaefbe11eb1739ee34e2bf7)

Author SHA1 Message Date
Chenlei Hu e33c046158
Validate ControlNetUnit using pydantic (#2847)
* Add Pydantic ControlNetUnit

Add test config

Add images field

Adjust image field handling

fix various ui

Fix most UI issues

accept greyscale image/mask

Fix infotext

Fix preset

Fix infotext

nit

Move infotext parsing test

Remove preset

Remove unused js code

Adjust test payload

By default disable unit

refresh enum usage

Align resize mode

change test func name

remove unused import

nit

Change default handling

Skip bound check when not enabled

Fix batch

Various batch fix

Disable batch hijack test

adjust test

fix test expectations

Fix unit copy

nit

Fix test failures

* Change script args back to ControlNetUnit for compatibility

* import enum for compatibility

* Fix unit test

* simplify unfold

* Add test coverage

* handle directly set np image

* re-enable batch test

* Add back canvas scribble support

* nit

* Fix batch hijack test
2024-05-06 15:40:34 -04:00
Chenlei Hu abafad27fc
Drop external_code. prefix (#2850)
* Drop external_code. prefix

* Remove unused imports
2024-05-05 11:06:15 -04:00
Chenlei Hu 86288def48
Remove legacy test (#2846) 2024-05-04 20:09:18 -04:00
Chenlei Hu ef65fec031
Move enum (#2845)
* Move enums to enums.py

* Add missing import

* Remove unused import
2024-05-04 17:56:51 -04:00
Chenlei Hu 9e61022428
🔧 Support SDXL in tests (#2254)
* 🔧 Support SDXL in tests

* 📝 docs

* nits
2023-11-12 14:12:54 -05: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
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
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 d99905418c
🔨 Extract pixel perfect calculation (#1522) 2023-06-02 18:28:44 -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 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 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 7a1eacc92e low vram vs shuffle 2023-04-15 20:07:32 -07: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 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