Compare commits

..

No commits in common. "58059485c73341ef6a0cb2ad2a8bd74daf7097b8" and "5bfce892279e640c6166b3d52dde23fffa505aa8" have entirely different histories.

4 changed files with 9 additions and 10 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 299 KiB

View File

@ -42,11 +42,11 @@ EXAMPLE_PROMPT = {
"examples/flf2v_input_last_frame.png", "examples/flf2v_input_last_frame.png",
}, },
"vace-1.3B": { "vace-1.3B": {
"src_ref_images": 'examples/bag.jpg,examples/heben.png', "src_ref_images": './bag.jpg,./heben.png',
"prompt": "优雅的女士在精品店仔细挑选包包,她身穿一袭黑色修身连衣裙,搭配珍珠项链,展现出成熟女性的魅力。手中拿着一款复古风格的棕色皮质半月形手提包,正细致地观察其工艺与质地。店内灯光柔和,木质装潢营造出温馨而高级的氛围。中景,侧拍捕捉女士挑选瞬间,展现其品味与气质。" "prompt": "优雅的女士在精品店仔细挑选包包,她身穿一袭黑色修身连衣裙,搭配珍珠项链,展现出成熟女性的魅力。手中拿着一款复古风格的棕色皮质半月形手提包,正细致地观察其工艺与质地。店内灯光柔和,木质装潢营造出温馨而高级的氛围。中景,侧拍捕捉女士挑选瞬间,展现其品味与气质。"
}, },
"vace-14B": { "vace-14B": {
"src_ref_images": 'examples/bag.jpg,examples/heben.png', "src_ref_images": './bag.jpg,./heben.png',
"prompt": "优雅的女士在精品店仔细挑选包包,她身穿一袭黑色修身连衣裙,搭配珍珠项链,展现出成熟女性的魅力。手中拿着一款复古风格的棕色皮质半月形手提包,正细致地观察其工艺与质地。店内灯光柔和,木质装潢营造出温馨而高级的氛围。中景,侧拍捕捉女士挑选瞬间,展现其品味与气质。" "prompt": "优雅的女士在精品店仔细挑选包包,她身穿一袭黑色修身连衣裙,搭配珍珠项链,展现出成熟女性的魅力。手中拿着一款复古风格的棕色皮质半月形手提包,正细致地观察其工艺与质地。店内灯光柔和,木质装潢营造出温馨而高级的氛围。中景,侧拍捕捉女士挑选瞬间,展现其品味与气质。"
} }
} }
@ -74,7 +74,7 @@ def _validate_args(args):
elif "flf2v" in args.task: elif "flf2v" in args.task:
args.sample_shift = 16 args.sample_shift = 16
elif "vace" in args.task: elif "vace" in args.task:
args.sample_shift = 8.0 args.sample_shift = 3.0
# The default number of frames are 1 for text-to-image tasks and 81 for other tasks. # The default number of frames are 1 for text-to-image tasks and 81 for other tasks.
@ -490,10 +490,10 @@ def generate(args):
) )
elif "vace" in args.task: elif "vace" in args.task:
if args.prompt is None: if args.prompt is None:
args.prompt = EXAMPLE_PROMPT[args.task]["prompt"] args.prompt = EXAMPLE_PROMPT[args.model_name]["prompt"]
args.src_video = EXAMPLE_PROMPT[args.task].get("src_video", None) args.src_video = EXAMPLE_PROMPT[args.model_name].get("src_video", None)
args.src_mask = EXAMPLE_PROMPT[args.task].get("src_mask", None) args.src_mask = EXAMPLE_PROMPT[args.model_name].get("src_mask", None)
args.src_ref_images = EXAMPLE_PROMPT[args.task].get("src_ref_images", None) args.src_ref_images = EXAMPLE_PROMPT[args.model_name].get("src_ref_images", None)
logging.info(f"Input prompt: {args.prompt}") logging.info(f"Input prompt: {args.prompt}")
if args.use_prompt_extend and args.use_prompt_extend != 'plain': if args.use_prompt_extend and args.use_prompt_extend != 'plain':

View File

@ -87,10 +87,9 @@ def usp_dit_forward_vace(
c, get_sequence_parallel_world_size(), c, get_sequence_parallel_world_size(),
dim=1)[get_sequence_parallel_rank()] dim=1)[get_sequence_parallel_rank()]
hints = []
for block in self.vace_blocks: for block in self.vace_blocks:
c, c_skip = block(c, **new_kwargs) c = block(c, **new_kwargs)
hints.append(c_skip) hints = torch.unbind(c)[:-1]
return hints return hints