|
|
@@ -608,6 +608,7 @@ async def process_handle_detail(request: Request, params: HandlerDetail):
|
|
|
first_pics = first_goods_art_no_info.get("pics")
|
|
|
gender = goods_art_dict_info.get("性别")
|
|
|
model_id = man_id if "男" in gender else women_id
|
|
|
+ face_type = 1 if "男" in gender else 0
|
|
|
ceshi_image_path = first_pics.get("正面-抠图")
|
|
|
print("first_pics", ceshi_image_path)
|
|
|
save_root_path = ceshi_image_path.split("阴影图处理")[0]
|
|
|
@@ -619,7 +620,7 @@ async def process_handle_detail(request: Request, params: HandlerDetail):
|
|
|
shutil.copy(ceshi_image_path, save_image_path)
|
|
|
try:
|
|
|
image_path = aigc_clazz.generateModelFitting(
|
|
|
- save_image_path, model_id, save_image_path
|
|
|
+ save_image_path, model_id, face_type, save_image_path
|
|
|
)
|
|
|
goods_art_dict_info["模特图"] = image_path
|
|
|
new_goods_dict[goods_art_no] = goods_art_dict_info
|