feat generate sketch 污点检测改为顶部两角
This commit is contained in:
@@ -85,7 +85,7 @@ class GenerateImage:
|
|||||||
# 污点检测
|
# 污点检测
|
||||||
is_smudge, not_smudge_image = stain_detection(remove_bg_image)
|
is_smudge, not_smudge_image = stain_detection(remove_bg_image)
|
||||||
# 类型识别
|
# 类型识别
|
||||||
category, scores, not_smudge_image = generate_category_recognition(image=image_result, gender=self.gender)
|
category, scores, not_smudge_image = generate_category_recognition(image=remove_bg_image, gender=self.gender)
|
||||||
self.generate_data['category'] = str(category)
|
self.generate_data['category'] = str(category)
|
||||||
image_result = not_smudge_image
|
image_result = not_smudge_image
|
||||||
if is_smudge: # 无污点
|
if is_smudge: # 无污点
|
||||||
|
|||||||
Reference in New Issue
Block a user