feat sketch 提取接口
fix
This commit is contained in:
@@ -47,7 +47,7 @@ class Image2SketchServer:
|
||||
self.model.setup(self.opt)
|
||||
transform_list = [transforms.ToTensor(), transforms.Normalize([0.5], [0.5])]
|
||||
transform = transforms.Compose(transform_list)
|
||||
style_img = Image.open(r"E:\workspace\trinity_client_aida\app\service\image2sketch\datasets\ref_unpair\testC\20180422151845_stEe4.jpeg").convert('L')
|
||||
style_img = Image.open(self.opt.style_image).convert('L')
|
||||
style_img = transform(style_img)
|
||||
self.data['B'] = style_img
|
||||
self.data['B'] = self.data['B'].unsqueeze(0).to(device)
|
||||
|
||||
Reference in New Issue
Block a user