Flask/React web server now merged, but needs fixes.

* due to changes in the metadata written to PNG files, web server cannot
display images
* issue is identified and will be fixed in next 24h
* Python 3.9 required for flask/react web server; environment must be
updated.
This commit is contained in:
Lincoln Stein 2022-09-16 14:52:25 -04:00
parent d1a2c4cd8c
commit 00d2d0e90e
2 changed files with 6 additions and 6 deletions

View File

@ -19,8 +19,7 @@ from uuid import uuid4
from ldm.gfpgan.gfpgan_tools import real_esrgan_upscale from ldm.gfpgan.gfpgan_tools import real_esrgan_upscale
from ldm.gfpgan.gfpgan_tools import run_gfpgan from ldm.gfpgan.gfpgan_tools import run_gfpgan
from ldm.generate import Generate from ldm.generate import Generate
from ldm.dream.pngwriter import PngWriter, PromptFormatter from ldm.dream.pngwriter import PngWriter
from modules.parameters import parameters_to_command, create_cmd_parser from modules.parameters import parameters_to_command, create_cmd_parser
@ -29,10 +28,11 @@ USER CONFIG
""" """
output_dir = "outputs/" # Base output directory for images output_dir = "outputs/" # Base output directory for images
host = 'localhost' # Web & socket.io host #host = 'localhost' # Web & socket.io host
host = '0.0.0.0' # Web & socket.io host
port = 9090 # Web & socket.io port port = 9090 # Web & socket.io port
verbose = False # enables copious socket.io logging verbose = False # enables copious socket.io logging
additional_allowed_origins = ['http://localhost:5173'] # additional CORS allowed origins additional_allowed_origins = ['http://localhost:9090'] # additional CORS allowed origins
""" """

View File

@ -3,7 +3,7 @@ channels:
- pytorch - pytorch
- defaults - defaults
dependencies: dependencies:
- python=3.8.5 - python>=3.9
- pip=20.3 - pip=20.3
- cudatoolkit=11.3 - cudatoolkit=11.3
- pytorch=1.11.0 - pytorch=1.11.0
@ -20,7 +20,7 @@ dependencies:
- realesrgan==0.2.5.0 - realesrgan==0.2.5.0
- test-tube>=0.7.5 - test-tube>=0.7.5
- streamlit==1.12.0 - streamlit==1.12.0
- pillow==9.2.0 - pillow==6.2.0
- einops==0.3.0 - einops==0.3.0
- torch-fidelity==0.3.0 - torch-fidelity==0.3.0
- transformers==4.19.2 - transformers==4.19.2