mirror of
https://github.com/THUDM/CogVideo.git
synced 2025-12-02 18:52:08 +08:00
model_path load for env
This commit is contained in:
parent
5287322b70
commit
2e4b1b223b
@ -296,7 +296,7 @@ with gr.Blocks() as demo:
|
|||||||
|
|
||||||
def generate(prompt, num_inference_steps, guidance_scale, progress=gr.Progress(track_tqdm=True)):
|
def generate(prompt, num_inference_steps, guidance_scale, progress=gr.Progress(track_tqdm=True)):
|
||||||
global UP_SCALE_MODEL
|
global UP_SCALE_MODEL
|
||||||
if not UP_SCALE_MODEL:
|
if not UP_SCALE_MODEL and len(str(UP_SCALE_MODEL_CKPT).strip()) > 0:
|
||||||
# Load the upscale model with progress tracking
|
# Load the upscale model with progress tracking
|
||||||
UP_SCALE_MODEL = load_sd_upscale(UP_SCALE_MODEL_CKPT)
|
UP_SCALE_MODEL = load_sd_upscale(UP_SCALE_MODEL_CKPT)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user