mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-21 05:53:24 -07:00
fix: updates web-ui to use PNG files instead of JPGs for previews
This commit is contained in:
parent
7f64e9dc3f
commit
fbae9385f1
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ def create_flask_app(s2c, c2s, s2flask, kwargs):
|
|||
log = logging.getLogger('werkzeug')
|
||||
log.disabled = True
|
||||
model_path = Path(kwargs.get('saved_models_path', ''))
|
||||
filename = 'preview.jpg'
|
||||
filename = 'preview.png'
|
||||
preview_file = str(model_path / filename)
|
||||
|
||||
def gen():
|
||||
|
|
|
@ -404,7 +404,7 @@ def main(**kwargs):
|
|||
zoom)
|
||||
# io.show_image(wnd_name, preview_pane_image)
|
||||
model_path = Path(kwargs.get('saved_models_path', ''))
|
||||
filename = 'preview.jpg'
|
||||
filename = 'preview.png'
|
||||
preview_file = str(model_path / filename)
|
||||
cv2.imwrite(preview_file, preview_pane_image)
|
||||
s2flask.put({'op': 'show'})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue