Commit Graph

13 Commits (58f620c921030eea0f3528d68849f7e052d44e3f)

Author SHA1 Message Date
Chenlei Hu 58f620c921
Add PuLID VRAM leak reproduction tests (#2891)
* Add PuLID detect test

* Add PuLID generation test
2024-05-14 22:15:27 -04:00
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 45a49daa26
fix test (#2851) 2024-05-05 16:38:47 -04:00
Chenlei Hu 22f63dc2dc
Support lama inpaint and CLIP mask in `controlnet/detect` API endpoint (#2809)
* api

* notes

* Add tests

* nit

* nit

* nit

* Fix shuffle
2024-04-25 08:50:03 -04:00
Chenlei Hu 07c2417ec0
Fix expected status code (#2808) 2024-04-24 22:28:13 -04:00
Chenlei Hu f7707d8ff5
Fix detect test for non-image return values (#2807)
* Handle tensor output from detect/ endpoint

* nit
2024-04-24 22:04:05 -04:00
Chenlei Hu bbcae309d1
Save/Use CLIP output in API (#2590)
* Add API support

* Add assertion

* Add test

* nit
2024-04-15 15:08:51 -04:00
Chenlei Hu 8af7577c45
Change API processor_res/threshold_a/threshold_b default values (#2746)
* Change API threshold_a/threshold_b/res default values

* move code

* Add tests

* update test

* Add log_context for testing

* More test

* nit

* encoding

* Change cq log encoding
2024-04-15 09:46:14 -04:00
Chenlei Hu f7aa688402
Fix seg preprocessor (#2716) 2024-03-30 15:36:41 -04:00
Chenlei Hu 4e9ac19cbc
Migrate detect_test and improve coverage (#2715)
* Migrate detection tests

* Add test results

* Skip cq disabled tests
2024-03-30 15:33:57 -04:00
liubo0902 b7a9bea231
fix image invert detect (#2356)
* fix image invert detect

*  Add unittest

---------

Co-authored-by: huchenlei <chenlei.hu@mail.utoronto.ca>
2023-12-24 21:31:51 -05:00
Chenlei Hu 9e61022428
🔧 Support SDXL in tests (#2254)
* 🔧 Support SDXL in tests

* 📝 docs

* nits
2023-11-12 14:12:54 -05: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