Spaces:
Running
on
Zero
Running
on
Zero
image sizing
Browse files
app.py
CHANGED
|
@@ -92,7 +92,7 @@ FACE_MODEL = reactorloadfacemodel.load_model(
|
|
| 92 |
imageresize = NODE_CLASS_MAPPINGS["ImageResize+"]()
|
| 93 |
reactorfaceswap = NODE_CLASS_MAPPINGS["ReActorFaceSwap"]()
|
| 94 |
imageupscalewithmodel = NODE_CLASS_MAPPINGS["ImageUpscaleWithModel"]()
|
| 95 |
-
|
| 96 |
UPSCALE_MODEL = upscalemodelloader.load_model(model_name="ESRGAN/4x_NMKD-Siax_200k.pth")
|
| 97 |
|
| 98 |
|
|
@@ -258,8 +258,9 @@ def advance_blur(input_image):
|
|
| 258 |
image=get_value_at_index(upscaled_image, 0),
|
| 259 |
)
|
| 260 |
|
| 261 |
-
saved_image =
|
| 262 |
-
|
|
|
|
| 263 |
images=get_value_at_index(final_image, 0),
|
| 264 |
)
|
| 265 |
|
|
|
|
| 92 |
imageresize = NODE_CLASS_MAPPINGS["ImageResize+"]()
|
| 93 |
reactorfaceswap = NODE_CLASS_MAPPINGS["ReActorFaceSwap"]()
|
| 94 |
imageupscalewithmodel = NODE_CLASS_MAPPINGS["ImageUpscaleWithModel"]()
|
| 95 |
+
local_save = NODE_CLASS_MAPPINGS["Local Save"]()
|
| 96 |
UPSCALE_MODEL = upscalemodelloader.load_model(model_name="ESRGAN/4x_NMKD-Siax_200k.pth")
|
| 97 |
|
| 98 |
|
|
|
|
| 258 |
image=get_value_at_index(upscaled_image, 0),
|
| 259 |
)
|
| 260 |
|
| 261 |
+
saved_image = local_save.process_images(
|
| 262 |
+
prefix="advance_blur",
|
| 263 |
+
file_format="JPEG",
|
| 264 |
images=get_value_at_index(final_image, 0),
|
| 265 |
)
|
| 266 |
|