root:Photo skin_retouching error, error info: ‘NoneType‘ object is not callable

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

你可能感兴趣的:(python宝典,人工智能)