Skip to content

Commit 6e8f4f5

Browse files
authored
fix(diffusers): consider options only in form of key/value (#5277)
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 662cfc2 commit 6e8f4f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/python/diffusers/backend.py

+4
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,13 @@ def LoadModel(self, request, context):
168168
# We are storing all the options in a dict so we can use it later when
169169
# generating the images
170170
for opt in options:
171+
if ":" not in opt:
172+
continue
171173
key, value = opt.split(":")
172174
self.options[key] = value
173175

176+
print(f"Options: {self.options}", file=sys.stderr)
177+
174178
local = False
175179
modelFile = request.Model
176180

0 commit comments

Comments
 (0)