auto-save 2026-05-14 12:09 (+4, ~6)
This commit is contained in:
@@ -3722,15 +3722,15 @@ def generate_product_fusion_descriptions(job_id: str, req: ProductFusionDescript
|
||||
last = (shot.last_image or {}).get("label") or "尾帧未填"
|
||||
products = [
|
||||
(ref or {}).get("label") or f"产品角度{idx + 1}未填"
|
||||
for idx, ref in enumerate((shot.product_images or [])[:3])
|
||||
for idx, ref in enumerate((shot.product_images or [])[:4])
|
||||
]
|
||||
while len(products) < 3:
|
||||
while len(products) < 4:
|
||||
products.append(f"产品角度{len(products) + 1}未填")
|
||||
shot_lines.append(f"{i}. 首帧={first};尾帧={last};产品角度={products[0]} / {products[1]} / {products[2]};已有描述={shot.action_text or '空'}")
|
||||
shot_lines.append(f"{i}. 首帧={first};尾帧={last};产品角度={products[0]} / {products[1]} / {products[2]} / {products[3]};已有描述={shot.action_text or '空'}")
|
||||
prompt = (
|
||||
"你是 SKG 产品短视频分镜导演。请为 6 条产品融合镜头各写一条中文动作描述,"
|
||||
"每条 20-45 字,必须说明透明骨架人在做什么、产品如何佩戴/展示、动作如何从首帧自然过渡到尾帧。"
|
||||
"产品是 SKG 白色 U 形颈部/肩颈按摩仪,三张产品角度图是同一产品的身份真源;不要写医疗治疗承诺,不要出现竞品。"
|
||||
"产品是 SKG 白色 U 形颈部/肩颈按摩仪,四张产品角度图是同一产品的身份真源;不要写医疗治疗承诺,不要出现竞品。"
|
||||
"输出 JSON:{\"descriptions\":[\"...\", \"...\"]}。\n\n"
|
||||
+ "\n".join(shot_lines)
|
||||
)
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 129 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 140 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 129 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 85 KiB |
@@ -1,8 +1,96 @@
|
||||
{
|
||||
"source": "/Users/kangwan/Desktop/skg/skg_product_downloads",
|
||||
"filter": "all_products/gallery only; border white_score >= 0.78 or white_score >= 0.62 and near_white_score >= 0.90",
|
||||
"count": 41,
|
||||
"count": 45,
|
||||
"items": [
|
||||
{
|
||||
"id": "desktop-skg-product-angle-01",
|
||||
"handle": "desktop-skg-product-four-angle",
|
||||
"title": "Desktop SKG Product Four-Angle Set",
|
||||
"product_type": "Neck Massager",
|
||||
"image_type": "desktop-angle",
|
||||
"image_index": 1,
|
||||
"filename": "images/skg-desktop-product-angle-01.jpg",
|
||||
"url": "/product-library/skg/images/skg-desktop-product-angle-01.jpg",
|
||||
"width": 1300,
|
||||
"height": 1300,
|
||||
"source_path": "/Users/kangwan/Desktop/skg产品1.jpg",
|
||||
"white_score": 1.0,
|
||||
"near_white_score": 1.0,
|
||||
"has_people": false,
|
||||
"tags": [
|
||||
"white-bg",
|
||||
"desktop-angle",
|
||||
"four-angle-set",
|
||||
"Neck Massager"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "desktop-skg-product-angle-02",
|
||||
"handle": "desktop-skg-product-four-angle",
|
||||
"title": "Desktop SKG Product Four-Angle Set",
|
||||
"product_type": "Neck Massager",
|
||||
"image_type": "desktop-angle",
|
||||
"image_index": 2,
|
||||
"filename": "images/skg-desktop-product-angle-02.jpg",
|
||||
"url": "/product-library/skg/images/skg-desktop-product-angle-02.jpg",
|
||||
"width": 1300,
|
||||
"height": 1300,
|
||||
"source_path": "/Users/kangwan/Desktop/skg产品2.jpg",
|
||||
"white_score": 1.0,
|
||||
"near_white_score": 1.0,
|
||||
"has_people": false,
|
||||
"tags": [
|
||||
"white-bg",
|
||||
"desktop-angle",
|
||||
"four-angle-set",
|
||||
"Neck Massager"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "desktop-skg-product-angle-03",
|
||||
"handle": "desktop-skg-product-four-angle",
|
||||
"title": "Desktop SKG Product Four-Angle Set",
|
||||
"product_type": "Neck Massager",
|
||||
"image_type": "desktop-angle",
|
||||
"image_index": 3,
|
||||
"filename": "images/skg-desktop-product-angle-03.jpg",
|
||||
"url": "/product-library/skg/images/skg-desktop-product-angle-03.jpg",
|
||||
"width": 1300,
|
||||
"height": 1300,
|
||||
"source_path": "/Users/kangwan/Desktop/skg产品3.jpg",
|
||||
"white_score": 1.0,
|
||||
"near_white_score": 1.0,
|
||||
"has_people": false,
|
||||
"tags": [
|
||||
"white-bg",
|
||||
"desktop-angle",
|
||||
"four-angle-set",
|
||||
"Neck Massager"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "desktop-skg-product-angle-04",
|
||||
"handle": "desktop-skg-product-four-angle",
|
||||
"title": "Desktop SKG Product Four-Angle Set",
|
||||
"product_type": "Neck Massager",
|
||||
"image_type": "desktop-angle",
|
||||
"image_index": 4,
|
||||
"filename": "images/skg-desktop-product-angle-04.jpg",
|
||||
"url": "/product-library/skg/images/skg-desktop-product-angle-04.jpg",
|
||||
"width": 1300,
|
||||
"height": 1300,
|
||||
"source_path": "/Users/kangwan/Desktop/skg产品4.jpg",
|
||||
"white_score": 1.0,
|
||||
"near_white_score": 1.0,
|
||||
"has_people": false,
|
||||
"tags": [
|
||||
"white-bg",
|
||||
"desktop-angle",
|
||||
"four-angle-set",
|
||||
"Neck Massager"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "g7-pro-fold-neck-massager-01",
|
||||
"handle": "g7-pro-fold-neck-massager",
|
||||
@@ -863,4 +951,4 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user