from wu import WUPipeline base_model_path = "tencent/HunyuanImage-3.0-Instruct" pg_model_path = "tencent/HY-WU" pipeline = WUPipeline( base_model_path=base_model_path, pg_model_path=pg_model_path, device_map="auto", moe_impl="eager", moe_drop_tokens=False, ) prompt = "以图1为底图,将图2公仔穿的衣物换到图1人物身上;保持图1人物、姿态和背景不变,自然贴合并融合。" # prompt_en = Using Figure 1 as the base image, replace the clothing on the character in Figure 1 with the outfit worn by the figurine in Figure 2. Keep the character, pose, and background of Figure 1 unchanged, ensuring the new clothing fits naturally and blends seamlessly. imgs_input = ["./assets/input_1_1.png", "./assets/input_1_2.png"] sample = pipeline.generate(prompt=prompt, imgs_input=imgs_input, diff_infer_steps=50, seed=42, verbose=2) sample.save("./output.png")
感谢你看到这里,添加小助手 AIGC_Tech 加入官方 AIGC读者交流群,下方扫码加入 AIGC Studio 星球,获取前沿AI应用、AIGC实践教程、大厂面试经验、AI学习路线以及IT类入门到精通学习资料等,欢迎一起交流学习💗~