Commit Graph

162 Commits (8a8a42e4168c7edf89ff7030232f87ae3ee56b8b)

Author SHA1 Message Date
Chenlei Hu 69d80e5a57
Add Anyline Preprocessor (#2904) 2024-05-19 11:12:49 -04:00
Austin Zhou e338a861dc
add __init__.py to avoid error msg: No module named 'annotator.util' (#2896)
Co-authored-by: Austin Zhou <zeroyone@gmail.com>
2024-05-16 10:47:53 -04:00
Chenlei Hu 442398bb9f
Port SDForge's preprocessor structure (#2754)
* wip

* wip2

* wip3

* fix issues

* Add scribble xdog

* port legacy processors

* nit

* Add tests

* Fix modules test

* Add back normal_dsine

* Remove legacy code

* Remove code

* Add tests

* rename param

* Linter ignore

* fix is_image

* fix is_image

* nit

* nit

* Better assertion message

* Add back ip-adapter-auto

* Add test

* Fix various tag matching

* fix

* Add back preprocessor cache

* Add back sparse ctrl

* fix test failure

* Add log
2024-04-17 22:28:56 -04:00
Chenlei Hu a5f9d59717
Add clip mask support (#2721)
* Add clip mask support

* nit

* Add tests
2024-03-31 12:13:51 -04:00
青龍聖者@bdsqlsz 2a210f0489
Fix Download Link (#2705)
Fix Download Link
2024-03-27 16:00:56 +08:00
青龍聖者@bdsqlsz bcd0322e87
Support New Softedge Preprocesser NormalDsine (#2701)
Support New Softedge Preprocesser NormalDsine
2024-03-26 20:11:57 +08:00
Chenlei Hu 2091b6fb21
Fix type (#2691) 2024-03-14 22:32:35 -04:00
Chenlei Hu b379b90ab4
Fix device for multi-gpu env (#2690) 2024-03-14 22:27:16 -04:00
Chenlei Hu aa2aa812e8
Remove dep basicsr (#2682)
* Remove dep basicsr

* nit
2024-03-05 21:52:19 -05:00
Nashihikari a87ca82ba4
type error in depth zoe, converting numpy type into int (#2650) 2024-02-18 21:52:38 -05:00
h3rmit 1d39c2ab58
Compatibility fixes for WebUI < v1.5.0 (#2647)
* fix: backward compatibility of clipvision with webui v1.3.0

* fix: backward compatibility with webui < v1.5.0

* nits

---------

Co-authored-by: huchenlei <chenlei.hu@mail.utoronto.ca>
2024-02-17 10:13:09 -05:00
青龍聖者@bdsqlsz 0c8d8d9b2c default use safe steps = 2 2024-01-24 12:39:32 +08:00
青龍聖者@bdsqlsz d1d28443a0 Update __init__.py 2024-01-24 12:39:32 +08:00
青龍聖者@bdsqlsz 15f78b13eb add util 2024-01-24 12:39:32 +08:00
青龍聖者@bdsqlsz 70ef227f25 update 2024-01-24 12:39:32 +08:00
Chenlei Hu f1f9493deb
🐛 Fix clip device (#2560) 2024-01-23 11:35:39 -05:00
ShawnTung e949858924
fix: removed the 'with' statement causing AttributeError: __enter__ (#2556) 2024-01-23 08:05:12 -05:00
Chenlei Hu e5adb1697d
Add depth_anything (#2544)
*  Add depth_anything

* Fix various issues

* Add tests
2024-01-22 16:14:26 -05:00
Chenlei Hu 5287a4e04c
Revert " Apply a small patch(devices.get_device_for)" (#2508) 2024-01-19 20:30:37 -05:00
fuchen.ljl ecd33eb82b
Apply a small patch(devices.get_device_for) (#2503)
* clipvision

device=devices.get_device_for("controlnet")

* lama 

segmentation.py
devices.get_device_for("controlnet")

* devices.get_device_for 

run.py
device=devices.get_device_for("controlnet")

* Update __init__.py

map_location=devices.get_device_for("controlnet")
2024-01-19 11:41:01 -05:00
Chenlei Hu cb3ddc4aaf
🔥 Remove hand_refiner_portable submodule (#2496) 2024-01-18 21:13:05 -05:00
Chenlei Hu 0a8e71af58
🔧 Add option to run CLIP preprocessor on CPU (#2495) 2024-01-18 20:30:12 -05:00
storyicon 8b5f7c1d0e
feat: significantly optimize the time consumption of clip vision (#2474)
Signed-off-by: storyicon <storyicon@foxmail.com>
2024-01-15 10:36:34 -05:00
Chenlei Hu eaa18bb213
Reland "Add Densepose (TorchScript)" (#2459)
* Revert "Revert "Add Densepose (TorchScript)""

* 🐛 Fix unload
2024-01-11 21:09:17 -05:00
Chenlei Hu 6e649def2b
Revert "Add Densepose (TorchScript)" (#2457) 2024-01-11 08:15:19 -05:00
Fannovel16 7734e372ec
Add Densepose (TorchScript) (#2314)
* Add annotator DensePose

* Register densepose

* fix densepose and add filters

* Change alias

---------

Co-authored-by: 青龍聖者@bdsqlsz <qinglongshengzhe@gmail.com>
2024-01-11 00:35:56 -06:00
Chenlei Hu 7247119255
Hand refiner preprocessor (#2394)
* Add hand refiner submodule

* Add depth_hand_refiner reprocessor

* Install script for hand refiner dependenceis

* Sync submodules

* Format

* Support cpu

* Handle unload module

* 🐛 Fix name conflict
2024-01-03 21:33:14 -05:00
Yilong Guo 4cf15d1c9c
Fix anime_face_segment model load (#2391) 2024-01-02 09:54:02 -05:00
Chenlei Hu 125f8e8bd2
🐛 Use opencv for onnx model inference in animal openpose (#2376) 2023-12-31 12:10:53 -05:00
青龍聖者@bdsqlsz 79948d8c29
Add Animal Pose Preprocessor (RTMPose AP-10K) (#2293)
* add support for animal pose

* Update __init__.py

* fix typo

* flatten json result list

* format files

* remove unused functions

* 🚧 Support edit

* nits

* fix test expecetations

---------

Co-authored-by: huchenlei <chenlei.hu@mail.utoronto.ca>
2023-12-23 15:55:21 -05:00
青龍聖者@bdsqlsz 01e4574d8e Fix issues #2312 caused by capitalization 2023-12-18 15:19:59 +08:00
Chenlei Hu a13bd2febe
Add render_openposes_json API endpoint (#2325)
* Add render_openpose_json API endpoint

* nits
2023-12-12 22:07:52 -05:00
Chenlei Hu 10bd9b25f6
Add anime_face_segment (#2279)
Update __init__.py

update add aliases

Update global_state.py

fix typo

fix typo2

Update __init__.py

Update __init__.py

Update __init__.py

Update __init__.py

Update __init__.py

Update __init__.py

Update __init__.py

Update __init__.py

RGB2BGR

fix for device

fix for special resolution

Co-authored-by: 青龍聖者@bdsqlsz <qinglongshengzhe@gmail.com>
2023-11-21 22:43:55 -05:00
Chenlei Hu 8395e4348f
🔨 fix deprecation warnings (#2278) 2023-11-21 22:15:56 -05:00
fuchen.ljl 247483b0e0
Update __init__.py (#2248)
Fix Controlnet cannot support the -- use CPU parameter, built-in will still load cuda
2023-11-12 21:43:34 -05:00
lllyasviel 3011ff6e70
support all recent ip-adapters
support all recent ip-adapters
2023-10-31 19:49:08 -07:00
lllyasviel f77c5eb5fa
fix ipadapter-plus (#2065) 2023-09-05 21:35:10 -07: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
lvmin 4085421694 fix zoe 2023-08-28 05:50:32 -07:00
Chenlei Hu 0cfc88b6a8
🐛 DWPose face keypoint num fix (#1917) 2023-08-13 20:07:03 -04:00
Chenlei Hu 50b5436bb3
🐛 Fix normalization issue (#1913) 2023-08-13 14:08:19 -04:00
Chenlei Hu d67f31a3a7
🐛 Handle no detection case (#1904) 2023-08-10 21:56:41 -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
lvmin 20d25bb546 Revert "Port DW Pose preprocessor (#1856)"
This reverts commit 0d3310f599.
2023-08-05 02:58:03 -07:00
Chenlei Hu 82a6213631
🐛 Fix all keypoints invalid issue (#1871) 2023-08-04 21:41:50 -04:00