Sophie98 commited on
Commit
709b74f
1 Parent(s): 12e61cd

find error

Browse files
Files changed (1) hide show
  1. StyleTransfer/styleTransfer.py +2 -1
StyleTransfer/styleTransfer.py CHANGED
@@ -89,12 +89,13 @@ def StyleFAST(content_image:Image.Image, style_image:Image.Image) -> Image.Image
89
  ########################################### STYLE PROJECTION ##########################################
90
  stylepro_artistic = phub.Module(name="stylepro_artistic")
91
  def StyleProjection(content_image:Image.Image,style_image:Image.Image) -> Image.Image:
 
92
  result = stylepro_artistic.style_transfer(
93
  images=[{
94
  'content': np.array(content_image.convert('RGB') )[:, :, ::-1],
95
  'styles': [np.array(style_image.convert('RGB') )[:, :, ::-1]]
96
  }])
97
-
98
  return Image.fromarray(np.uint8(result[0]['data'])[:,:,::-1]).convert('RGB')
99
 
100
  def create_styledSofa(content_image:Image.Image,style_image:Image.Image,choice:str) -> Image.Image:
 
89
  ########################################### STYLE PROJECTION ##########################################
90
  stylepro_artistic = phub.Module(name="stylepro_artistic")
91
  def StyleProjection(content_image:Image.Image,style_image:Image.Image) -> Image.Image:
92
+ print('line92')
93
  result = stylepro_artistic.style_transfer(
94
  images=[{
95
  'content': np.array(content_image.convert('RGB') )[:, :, ::-1],
96
  'styles': [np.array(style_image.convert('RGB') )[:, :, ::-1]]
97
  }])
98
+ print('line97')
99
  return Image.fromarray(np.uint8(result[0]['data'])[:,:,::-1]).convert('RGB')
100
 
101
  def create_styledSofa(content_image:Image.Image,style_image:Image.Image,choice:str) -> Image.Image: