OpenCV图像风格迁移所用模板-Candy 使用方法: importcv2 image_file='xxx.jpg'#目标文件 model='Candy.t7'#模板文件 net=cv2.dnn.readNetFromTorch('models/'+model) image=cv2.imread('images/'+image_file) (h,w)=image.shape[:2] blob=cv2.dnn.blobFromImage(image,1.0,(w,h), (103.939,116.77