Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
b46c64c6
Commit
b46c64c6
authored
Oct 24, 2022
by
Stephen
Committed by
AUTOMATIC1111
Oct 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean
parent
db9ab1a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
api.py
modules/api/api.py
+0
-4
models.py
modules/api/models.py
+1
-1
No files found.
modules/api/api.py
View file @
b46c64c6
...
...
@@ -42,9 +42,6 @@ class Api:
# convert base64 to PIL image
return
Image
.
open
(
io
.
BytesIO
(
imgdata
))
def
__processed_info_to_json
(
self
,
processed
):
return
json
.
dumps
(
processed
.
info
)
def
text2imgapi
(
self
,
txt2imgreq
:
StableDiffusionTxt2ImgProcessingAPI
):
sampler_index
=
sampler_to_index
(
txt2imgreq
.
sampler_index
)
...
...
@@ -116,7 +113,6 @@ class Api:
b64images
.
append
(
base64
.
b64encode
(
buffer
.
getvalue
()))
if
(
not
img2imgreq
.
include_init_images
):
# remove img2imgreq.init_images and img2imgreq.mask
img2imgreq
.
init_images
=
None
img2imgreq
.
mask
=
None
...
...
modules/api/models.py
View file @
b46c64c6
...
...
@@ -69,7 +69,7 @@ class PydanticModelGenerator:
field
=
underscore
(
k
),
field_alias
=
k
,
field_type
=
field_type_generator
(
k
,
v
),
field_value
=
v
.
default
,
field_value
=
v
.
default
)
for
(
k
,
v
)
in
self
.
_class_data
.
items
()
if
k
not
in
API_NOT_ALLOWED
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment