root:Photo skin_retouching error, error info: 'NoneType' object is not callable
目录
报错代码:
try:
skin_retouching = pipeline('skin-retouching-torch', model='damo/cv_unet_skin_retouching_torch', model_revision='v1.0.2')
except:
skin_retouching = None
logging.info("Skin Retouching model load error, but pass.")
sub_image = image.crop(retinaface_box)
try:
sub_image = Image.fromarray(cv2.cvtColor(skin_retouching(sub_image)[OutputKeys.OUTPUT_IMG], cv2.COLOR_BGR2RGB))
except Exception as e:
torch.cuda.empty_cache()
logging.error(f"Photo skin_retouching error, error info: {e}")
在进行照片皮肤修图时遇到了错误,错误信息提示:'NoneType' object is not callable。博客详细介绍了该错误的报错代码,并提供了解决此问题的方法。
订阅专栏 解锁全文
3万+

被折叠的 条评论
为什么被折叠?



