Skip to content

Commit 9023f4c

Browse files
fixing embeddings
changed a couple of parameters in api to get rid of useless components changed gitingore to include embeddings added embeddings of nfixer.
1 parent e1e15e9 commit 9023f4c

File tree

6 files changed

+1
-13
lines changed

6 files changed

+1
-13
lines changed

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
__pycache__
22
*.ckpt
3-
*.pth
43
/ESRGAN/*
54
/SwinIR/*
65
/repositories
@@ -14,7 +13,6 @@ __pycache__
1413
/outputs
1514
/log
1615
/webui.settings.bat
17-
/embeddings
1816
/styles.csv
1917
/params.txt
2018
/styles.csv.bak

embeddings/nartfixer.pt

80.8 KB
Binary file not shown.

embeddings/nfixer.pt

60.9 KB
Binary file not shown.

embeddings/nrealfixer.pt

80.9 KB
Binary file not shown.

modules/api/api.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ def img2imgapi(self, img2imgreq: StableDiffusionImg2ImgProcessingAPI):
399399
shared.state.end()
400400

401401
b64images = list(map(encode_pil_to_base64, processed.images)) if send_images else []
402+
print('finished encoding images')
402403

403404
if not img2imgreq.include_init_images:
404405
img2imgreq.init_images = None
@@ -813,22 +814,12 @@ def invocations(self, req: InvocationsRequest):
813814
elif req.task == 'get-upscalers':
814815
response = self.get_upscalers()
815816
return response
816-
# useless
817-
# elif req.task == 'get-samplers':
818-
# response = self.get_samplers()
819-
# return response
820-
elif req.task == 'interrogate':
821-
response = self.interrogateapi(req.interrogate_payload)
822-
return response
823817
elif req.task == 'get-memory':
824818
response = self.get_memory()
825819
return response
826820
elif req.task == 'get-cmd-flags':
827821
response = self.get_cmd_flags()
828822
return response
829-
elif req.task == 'get-all-config':
830-
response = self.get_all_config()
831-
return response
832823
elif req.task == 'do-nothing':
833824
print("nothing has happened")
834825
return "nothing has happened"

modules/api/models.py

-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ class InvocationsRequest(BaseModel):
302302
extras_single_payload: Optional[ExtrasSingleImageRequest]
303303
extras_batch_payload: Optional[ExtrasBatchImagesRequest]
304304
progress_payload:Optional[ProgressRequest]
305-
interrogate_payload:Optional[InterrogateRequest]
306305
post_options_payload:Optional[dict]
307306

308307
class InvocationsErrorResponse(BaseModel):

0 commit comments

Comments
 (0)