Resize image was exported as well

Signed-off-by: Alex Volkov <alex.volkov@fundbox.com>
This commit is contained in:
Alex Volkov 2022-08-28 17:31:23 -06:00 committed by hlky
parent 8662ea4623
commit 923e437bcf
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import argparse, os, sys, glob, re import argparse, os, sys, glob, re
from frontend.frontend import draw_gradio_ui from frontend.frontend import draw_gradio_ui
from frontend.ui_functions import resize_image
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument("--outdir", type=str, nargs="?", help="dir to write results to", default=None) parser.add_argument("--outdir", type=str, nargs="?", help="dir to write results to", default=None)
parser.add_argument("--outdir_txt2img", type=str, nargs="?", help="dir to write txt2img results to (overrides --outdir)", default=None) parser.add_argument("--outdir_txt2img", type=str, nargs="?", help="dir to write txt2img results to (overrides --outdir)", default=None)

View File

@ -7,14 +7,14 @@ import base64
import re import re
from frontend.frontend import draw_gradio_ui from frontend.frontend import draw_gradio_ui
from frontend.ui_functions import resize_image
""" """
This file is here to play around with the interface without loading the whole model This file is here to play around with the interface without loading the whole model
TBD - extract all the UI into this file and import from the main webui. TBD - extract all the UI into this file and import from the main webui.
""" """
def resize_image(resize_mode, im, width, height):
return im
GFPGAN = True GFPGAN = True
RealESRGAN = True RealESRGAN = True
def run_goBIG(): def run_goBIG():