|
@@ -768,7 +768,7 @@ async def _process_model_images(aigc_clazz, run_main, return_data_check_before_d
|
|
|
continue
|
|
continue
|
|
|
|
|
|
|
|
shutil.copy(ceshi_image_path, save_image_path)
|
|
shutil.copy(ceshi_image_path, save_image_path)
|
|
|
- image_path = aigc_clazz.generateUpperShoes(save_image_path, model_id, save_image_path)
|
|
|
|
|
|
|
+ image_path = aigc_clazz.generateModelFitting(save_image_path, model_id, face_type,save_image_path)
|
|
|
|
|
|
|
|
goods_art_dict_info_item["模特图"] = image_path
|
|
goods_art_dict_info_item["模特图"] = image_path
|
|
|
new_goods_dict[goods_art_no_info]["货号资料"][idx_key] = goods_art_dict_info_item
|
|
new_goods_dict[goods_art_no_info]["货号资料"][idx_key] = goods_art_dict_info_item
|
|
@@ -1383,6 +1383,7 @@ def sync_sys_configs(params: SyncLocalConfigs):
|
|
|
# 追加配置参数 machine_type 拍照机设备类型;0鞋;1服装
|
|
# 追加配置参数 machine_type 拍照机设备类型;0鞋;1服装
|
|
|
url = settings.DOMAIN + f"/api/ai_image/camera_machine/get_all_user_configs?machine_type={MACHINE_TYPE}"
|
|
url = settings.DOMAIN + f"/api/ai_image/camera_machine/get_all_user_configs?machine_type={MACHINE_TYPE}"
|
|
|
result = requests.get(url=url, headers=headers)
|
|
result = requests.get(url=url, headers=headers)
|
|
|
|
|
+ print("result",result.json())
|
|
|
sys_configs = result.json().get("data", {}).get("configs")
|
|
sys_configs = result.json().get("data", {}).get("configs")
|
|
|
session = SqlQuery()
|
|
session = SqlQuery()
|
|
|
sysConfigs = CRUD(SysConfigs)
|
|
sysConfigs = CRUD(SysConfigs)
|