Commit Graph

128 Commits (442398bb9fdc8f42e48ce02636242933a855afee)

Author SHA1 Message Date
Joseph Catrambone 869602ffb0 Correctly return image. Perform a copy of detected_map because of 'ValueError: At least one stride in the given numpy array is negative'. Will have to ask why this happens. 2023-03-31 10:02:58 -07:00
Joseph Catrambone 78833dce35 Add MediaPipe Face conditioning as a step. 2023-03-30 16:30:41 -07:00
Michael cd2f25529c Added a method to get the list of preprocessors 2023-03-17 16:26:59 -07:00
ljleb b8d236cc09
Revert "add back preprocessor in api" 2023-03-17 05:15:07 -04:00
ljleb 34ff08d2fe add back preprocessor 2023-03-17 03:55:17 -04:00
ljleb 296c791d27
Revert "Added a new API call to get the preprocessor list" 2023-03-17 03:48:07 -04:00
Michael 8a03b2a082 use a better name in the function 2023-03-15 10:01:46 -07:00
mishafarms 57a1cfb65d Merge remote-tracking branch 'origin/main' into api_preprocessors
# Conflicts:
#	scripts/controlnet.py
#	scripts/external_code.py
2023-03-15 07:25:03 -07:00
ljleb e1fe7421c9 merge main 2023-03-15 01:51:52 -04:00
Michael cb46a182df Added a new API call to get the preprocessor list 2023-03-14 22:28:17 -07:00
ljleb fd753f22a1 workaround for is_img2img and is_ui 2023-03-14 22:06:05 -04:00
ljleb 40934b81b9 more tests 2023-03-14 18:28:31 -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 571e4c9413 remove is_img2img from args, fix 2023-03-13 16:49:37 -04:00
ljleb a9f9613f1a add back changes 2023-03-13 14:48:05 -04:00
Kakigōri Maker 094c79bbb0
Revert "Deprecate `/controlnet/*2img` web API in favor of new alwayson_scripts support" 2023-03-14 02:05:29 +09:00
ljleb 73922d57fa deprecation message 2023-03-13 04:16:04 -04:00
ljleb d2258de440 restore initial value 2023-03-13 04:05:57 -04:00
ljleb fe37cb2f6f txt2img fix 2023-03-13 04:00:48 -04:00
ljleb f6186bc2f9 move globals to global_state file 2023-03-13 03:07:41 -04:00
ljleb 545715c37e use correct function 2023-03-12 23:30:04 -04:00
ljleb 53806d4a5e fix obvious bugs 2023-03-12 23:28:42 -04:00
ljleb 8d8342c6d1 use kwargs 2023-03-06 00:54:01 -05:00
ljleb 2b748a8104 feedback 2023-03-05 23:11:27 -05:00
ljleb a6dfc39115 feedback 2023-03-05 23:00:03 -05:00
ljleb 228f12d917 merge main 2023-03-05 14:37:11 -05:00
kft334 ac8007cce2
Fix detect endpoint 2023-03-05 12:17:47 -05:00
Yoshitada Kurozumi b49d3375ca Add binary preprocessor 2023-03-06 01:09:34 +09:00
ljleb 9108199a22 allow int for resize_mode in api requests 2023-03-04 10:28:37 -05:00
ljleb 7f63b8cc15 merge main 2023-03-04 10:03:03 -05:00
ljleb 57ed434ee4 static script cache 2023-03-04 09:43:47 -05:00
ljleb 7d4f274ecc use external_code 2023-03-04 09:25:18 -05:00
ljleb 525e19133f refact 2023-03-04 08:36:33 -05:00
ljleb 09a403de79 basic external code api 2023-03-03 20:12:55 -05:00
ljleb 44a92862a6 dont use existing deprecated field in api 2023-03-02 21:52:25 -05:00
Mikubill 3a1c5b9f3c fix: add missing line (#415) 2023-02-27 19:57:39 +00:00
ljleb 937a7016fc fix: extend grayscale mask 2023-02-27 14:44:46 -05:00
ljleb 38a11aac39 fix no input image in cn unit 2023-02-27 10:22:47 -05:00
Mikubill 511e254c48 fix: backward compatibility 2023-02-27 08:00:24 +00:00
Ashen a3f1ab8aaf 🔀 resolve conflict w.r.t. latest changes to api.py
Merge branch 'main' into feature/guidance-start

# Conflicts:
#	scripts/api.py
2023-02-26 23:33:35 -08:00
Kakigōri Maker 1159888286
fix: minor fix for deprecated_defaults 2023-02-27 16:09:06 +09:00
ljleb 2ba29fb14d refact 2023-02-26 23:35:24 -05:00
ljleb 335a094475 make selectable script work 2023-02-26 22:57:23 -05:00
ljleb 48f0480d95 warning 2023-02-26 22:10:09 -05:00
ljleb 2b378db229 remove limit in case we want batch size 2023-02-26 21:37:59 -05:00
ljleb 2547d9d514 found the bug 2023-02-26 21:12:02 -05:00
ljleb 65c66ebee6 return pil 2023-02-26 20:42:18 -05:00
ljleb 38347c020b refact 2023-02-26 20:33:15 -05:00
ljleb a08d817c02 replace img2img route, refactor 2023-02-26 18:55:28 -05:00
ljleb 8c9bbb4410 refact 2023-02-26 17:45:42 -05:00
ljleb 97c32eb95c refcat 2023-02-26 17:00:43 -05:00
ljleb 73cbaf78e4 merge /controlnet/txt2img routes, hide old fields 2023-02-26 15:15:46 -05:00
Ashen 440927d671 🧱 Apply "Guidance Start" parameter related change to api.py and xyz_grid_support.py 2023-02-26 10:58:37 -08:00
ljleb 733b719620 tested concurrent requests 2023-02-26 11:21:30 -05:00
ljleb a03d1b64e4 queue lock reset on except 2023-02-26 10:53:26 -05:00
ljleb ffb580bb16 fix queue lock concurrency (hopefully) 2023-02-26 01:40:56 -05:00
ljleb c478e73de2 override sd txt2img init 2023-02-26 01:23:38 -05:00
ljleb 9aae869582 small refact 2023-02-25 23:56:55 -05:00
ljleb e8c8ea365d fix small overlook 2023-02-25 23:17:41 -05:00
ljleb 59c0d5b35e API multi cn 2023-02-25 22:37:42 -05:00
kft334 7237d01445
Update api.py 2023-02-24 23:41:10 -05:00
kft334 36bda3843d
Update api.py 2023-02-24 23:36:37 -05:00
kft334 a8fbf70f82
Update api.py 2023-02-24 22:58:07 -05:00
Mikubill 9fd195629a fix: use proper preset for p_res API (#194) 2023-02-24 12:28:39 +00:00
Mikubill 9468e02b61 fix: use proper default vals for API (#329) 2023-02-24 12:02:11 +00:00
Mikubill 07524b6700 fix: api, use pipeline directly 2023-02-24 11:45:05 +00:00
Mikubill 3691d1130b fix: issues with API access (#335, #194) 2023-02-24 11:20:13 +00:00
Kakigōri Maker d23a95bf6c
Merge pull request #280 from 105gun/get-cn-model-api
Add an api to get cn models list
2023-02-22 17:38:25 +09:00
105gun 59d3c66aba Add an api to get cn models list 2023-02-22 15:47:36 +08:00
Sang 7f9ccc821d changed thresholds to floating point variable 2023-02-21 21:09:50 -08:00
Sang 559395f4e0 fixed api 2023-02-21 20:54:49 -08:00
Mikubill caa56b7dc6 minor fix and #276 2023-02-22 04:07:12 +00:00
Mikubill 1b2cf8dd13 fix: add workaround for inpaint models (#256, #54, #253, #112, #233, #144, #78) 2023-02-21 11:38:55 +00:00
Kakigōri Maker 670a196bb3
Update api.py 2023-02-21 10:43:49 +09:00
KotoriKoi 6eebe50698
Update api.py
If the api is called, Controlnet does not take effect. Please try to put api.py under sd-webui/scripts.
2023-02-21 06:46:17 +08:00
Mikubill 6d9a3c854a fix: import issue (#239) 2023-02-20 16:17:23 +00:00
Sang 5eb42ef174 separate api.py file + control image return 2023-02-19 07:50:06 -08:00