clarification for settings; another comment about copied files

This commit is contained in:
AUTOMATIC 2022-09-07 12:57:12 +03:00
parent 6a9b33c848
commit 5e12c23a67
3 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,5 @@
# this file is copied from CodeFormer repository. Please see comment in modules/codeformer_model.py
import math
import numpy as np
import torch

View file

@ -1,3 +1,5 @@
# this file is copied from CodeFormer repository. Please see comment in modules/codeformer_model.py
'''
VQGAN code, adapted from the original created by the Unleashing Transformers authors:
https://github.com/samb-t/unleashing-transformers/blob/master/models/vqgan.py

View file

@ -121,7 +121,7 @@ class Options:
"show_progressbar": OptionInfo(True, "Show progressbar"),
"show_progress_every_n_steps": OptionInfo(0, "Show show image creation progress every N sampling steps. Set 0 to disable.", gr.Slider, {"minimum": 0, "maximum": 32, "step": 1}),
"face_restoration_model": OptionInfo(None, "Face restoration model", gr.Radio, lambda: {"choices": [x.name() for x in face_restorers]}),
"code_former_weight": OptionInfo(0.5, "CodeFormer weight parameter", gr.Slider, {"minimum": 0, "maximum": 1, "step": 0.01}),
"code_former_weight": OptionInfo(0.5, "CodeFormer weight parameter; 0 = fix face completely; 1 = do nothing", gr.Slider, {"minimum": 0, "maximum": 1, "step": 0.01}),
}
def __init__(self):