summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrafting Rayman <156515434+GraftingRayman@users.noreply.github.com>2025-01-17 10:59:45 +0000
committerGitHub <noreply@github.com>2025-01-17 10:59:45 +0000
commitfebd45814cd41560c5247aacb111d8d013f3a303 (patch)
tree6462946b4b354073060d7d7df5c2d14bccd69aec
downloadComfyui-reactor-node-febd45814cd41560c5247aacb111d8d013f3a303.tar.gz
Add files via upload
-rw-r--r--modules/__init__.py0
-rw-r--r--modules/images.py0
-rw-r--r--modules/processing.py13
-rw-r--r--modules/scripts.py13
-rw-r--r--modules/scripts_postprocessing.py0
-rw-r--r--modules/shared.py19
6 files changed, 45 insertions, 0 deletions
diff --git a/modules/__init__.py b/modules/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/modules/__init__.py
diff --git a/modules/images.py b/modules/images.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/modules/images.py
diff --git a/modules/processing.py b/modules/processing.py
new file mode 100644
index 0000000..649c3a1
--- /dev/null
+++ b/modules/processing.py
@@ -0,0 +1,13 @@
+class StableDiffusionProcessing:
+
+ def __init__(self, init_imgs):
+ self.init_images = init_imgs
+ self.width = init_imgs[0].width
+ self.height = init_imgs[0].height
+ self.extra_generation_params = {}
+
+
+class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
+
+ def __init__(self, init_img):
+ super().__init__(init_img)
diff --git a/modules/scripts.py b/modules/scripts.py
new file mode 100644
index 0000000..276dfb4
--- /dev/null
+++ b/modules/scripts.py
@@ -0,0 +1,13 @@
+import os
+
+
+class Script:
+ pass
+
+
+def basedir():
+ return os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+
+
+class PostprocessImageArgs:
+ pass
diff --git a/modules/scripts_postprocessing.py b/modules/scripts_postprocessing.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/modules/scripts_postprocessing.py
diff --git a/modules/shared.py b/modules/shared.py
new file mode 100644
index 0000000..a1dc871
--- /dev/null
+++ b/modules/shared.py
@@ -0,0 +1,19 @@
+class Options:
+ img2img_background_color = "#ffffff" # Set to white for now
+
+
+class State:
+ interrupted = False
+
+ def begin(self):
+ pass
+
+ def end(self):
+ pass
+
+
+opts = Options()
+state = State()
+cmd_opts = None
+sd_upscalers = []
+face_restorers = []