feat(新功能):
fix(修复bug): product generate 获取三通道RGB图片时 无法获取A通道mask 增强图片mode判断逻辑 docs(文档变更): refactor(重构): test(增加测试): 代码回溯
This commit is contained in:
@@ -302,7 +302,7 @@ class GenerateProductImage:
|
||||
time_out = 600
|
||||
while time_out > 0:
|
||||
gen_product_data, _ = self.read_tasks_status()
|
||||
if gen_product_data['status'] in ["REVOKED", "FAILURE"]:
|
||||
if gen_product_data['status'] in ["REVOKED", "FAILURE", "NO_FACE"]:
|
||||
ctx.cancel()
|
||||
break
|
||||
elif gen_product_data['status'] == "SUCCESS":
|
||||
|
||||
@@ -121,7 +121,7 @@ class GenerateRelightImage:
|
||||
time_out = 600
|
||||
while time_out > 0:
|
||||
gen_product_data, _ = self.read_tasks_status()
|
||||
if gen_product_data['status'] in ["REVOKED", "FAILURE"]:
|
||||
if gen_product_data['status'] in ["REVOKED", "FAILURE", "NO_FACE"]:
|
||||
ctx.cancel()
|
||||
break
|
||||
elif gen_product_data['status'] == "SUCCESS":
|
||||
|
||||
Reference in New Issue
Block a user