ZiqianLiu commited on
Commit
7de540a
1 Parent(s): 55f6076

Upload 12 files

Browse files
modules/__init__.py ADDED
File without changes
modules/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (175 Bytes). View file
 
modules/__pycache__/images.cpython-310.pyc ADDED
Binary file (169 Bytes). View file
 
modules/__pycache__/processing.cpython-310.pyc ADDED
Binary file (948 Bytes). View file
 
modules/__pycache__/scripts.cpython-310.pyc ADDED
Binary file (625 Bytes). View file
 
modules/__pycache__/scripts_postprocessing.cpython-310.pyc ADDED
Binary file (189 Bytes). View file
 
modules/__pycache__/shared.cpython-310.pyc ADDED
Binary file (812 Bytes). View file
 
modules/images.py ADDED
File without changes
modules/processing.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class StableDiffusionProcessing:
2
+
3
+ def __init__(self, init_imgs):
4
+ self.init_images = init_imgs
5
+ self.width = init_imgs[0].width
6
+ self.height = init_imgs[0].height
7
+ self.extra_generation_params = {}
8
+
9
+
10
+ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
11
+
12
+ def __init__(self, init_img):
13
+ super().__init__(init_img)
modules/scripts.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+
4
+ class Script:
5
+ pass
6
+
7
+
8
+ def basedir():
9
+ return os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
10
+
11
+
12
+ class PostprocessImageArgs:
13
+ pass
modules/scripts_postprocessing.py ADDED
File without changes
modules/shared.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class Options:
2
+ img2img_background_color = "#ffffff" # Set to white for now
3
+
4
+
5
+ class State:
6
+ interrupted = False
7
+
8
+ def begin(self):
9
+ pass
10
+
11
+ def end(self):
12
+ pass
13
+
14
+
15
+ opts = Options()
16
+ state = State()
17
+ cmd_opts = None
18
+ sd_upscalers = []
19
+ face_restorers = []