fix bugradio (#455)

This commit is contained in:
lllyasviel 2023-09-20 06:00:52 -07:00 committed by GitHub
parent 5456a5784b
commit 6597b3df64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,9 +265,10 @@ class Image(
if x is None: if x is None:
return x return x
mask = "" mask = None
if self.tool == "sketch" and self.source in ["upload", "webcam"]: if self.tool == "sketch" and self.source in ["upload", "webcam"]:
assert isinstance(x, dict) if isinstance(x, dict):
x, mask = x["image"], x["mask"] x, mask = x["image"], x["mask"]
assert isinstance(x, str) assert isinstance(x, str)