aboutsummaryrefslogtreecommitdiff
path: root/modules/api/api.py
diff options
context:
space:
mode:
authorStephen <farrenzo47@gmail.com>2022-10-22 15:42:00 -0400
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-23 09:26:56 +0300
commit9e1a8b7734a2881451a2efbf80def011ea41ba49 (patch)
tree6152fdbd31d2c3eed60cc7a83ca6b163f80ee11f /modules/api/api.py
parenta7c213d0f5ebb10722629b8490a5863f9ce6c4fa (diff)
non-implemented mask with any type
Diffstat (limited to 'modules/api/api.py')
-rw-r--r--modules/api/api.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/api/api.py b/modules/api/api.py
index a04f2428..3df6ff96 100644
--- a/modules/api/api.py
+++ b/modules/api/api.py
@@ -72,6 +72,10 @@ class Api:
if init_images is None:
raise HTTPException(status_code=404, detail="Init image not found")
+ mask = img2imgreq.mask
+ if mask:
+ raise HTTPException(status_code=400, detail="Mask not supported yet")
+
populate = img2imgreq.copy(update={ # Override __init__ params
"sd_model": shared.sd_model,