Update render.py
parent
13a1929d0f
commit
32c3282944
|
|
@ -16,8 +16,13 @@ def run(*args):
|
|||
dataurl = get_error()
|
||||
vids_pack = [dataurl]
|
||||
component_names = t2v_helpers_args.get_component_names()
|
||||
# api check
|
||||
num_components = len(component_names)
|
||||
affected_args = args[2:] if len(args) > num_components else args
|
||||
# TODO: change to i+2 when we will add the progress bar
|
||||
args_dict = {component_names[i]: args[i+2] for i in range(0, len(component_names))}
|
||||
args_dict = {
|
||||
component_names[i]: affected_args[i] for i in range(0, num_components)
|
||||
}
|
||||
model_type = args_dict['model_type']
|
||||
t2v_helpers_args.i1_store_t2v = f'<p style=\"font-weight:bold;margin-bottom:0em\">text2video extension for auto1111 — version 1.3b </p><video controls loop><source src="{dataurl}" type="video/mp4"></video>'
|
||||
keep_pipe_in_vram = opts.data.get("modelscope_deforum_keep_model_in_vram") if opts.data is not None and opts.data.get("modelscope_deforum_keep_model_in_vram") is not None else 'None'
|
||||
|
|
|
|||
Loading…
Reference in New Issue