Commit Graph

145 Commits (2b44ac8d6b3f022bf67f3d00a5a446caf9d73228)

Author SHA1 Message Date
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
Chenlei Hu 7c695c9d9a
🐛 Delay import of mmpose (#1866) 2023-08-04 19:11:44 -04: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
Leye Hu 5fc952793a
fix: runtime error for directml in pidinet (#1654) 2023-06-18 13:43:46 -04:00
lingyu.hai 9789d097fe fix runtime error for multi gpu in pidinet 2023-06-13 15:05:21 +08:00
lllyasviel 69f5760a32
fix dependency (#1595)
* fix dependency

* fix dependency
2023-06-08 17:50:56 -07:00
lllyasviel 34df0a3374
prepare for future preprocessors (#1552) 2023-06-04 14:18:05 -07:00
Chenlei Hu 5b681b071b
New feature: integrated openpose editor (#1454)
🎨 nits

🎨 Load alert screen when no editor is detected.

🔧 add option to hide edit button

🐛 Resolve conflicts during rebase

🚧 Set use preview as input after edit

🐛 Fix merge conflict
2023-06-04 15:54:35 -04:00
lvmin 9985eafc19 remove old codes 2023-05-06 10:48:04 -07:00
lvmin 99008f6b86 rename 2023-05-06 10:32:50 -07:00
lvmin a57a8f71e0 fix all ratio problems 2023-05-06 10:27:17 -07:00
huchenlei 1c1ff7b7d5 📝 Replace pipe operator on type annotation with 3.8 compatible syntax 2023-05-02 16:26:32 -04:00
huchenlei 99820f8db7 📝 Use 3.8 compatible syntax 2023-05-02 16:13:24 -04:00
huchenlei a96b98e4fc 📝 add back type annotation on BodyResult 2023-05-02 13:48:38 -04:00
lvmin 53e5bb4d6f remove dangerous options, add leres++ 2023-05-02 01:29:01 -07:00
lvmin f715763d9e fix strange openpose problem 2023-05-02 00:30:36 -07:00