1-13-am commited on
Commit
01dfa02
·
1 Parent(s): 960296f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def style_transfer(content_img, style_strength, style_img_1 = None, iw_1 = 0, st
21
  if style_img is not None:
22
  styles.append(transform(style_img).unsqueeze(0))
23
  if preserve_color == "None": preserve_color = None
24
- elif preserve_color == "Whitening": preserve_color = "batch_wct"
25
  elif preserve_color == "Histogram matching": preserve_color = "histogram_matching"
26
  with torch.no_grad():
27
  stylized_img = model(content, styles, style_strength, interpolation_weights, preserve_color = preserve_color)
 
21
  if style_img is not None:
22
  styles.append(transform(style_img).unsqueeze(0))
23
  if preserve_color == "None": preserve_color = None
24
+ elif preserve_color == "Whitening & Coloring": preserve_color = "batch_wct"
25
  elif preserve_color == "Histogram matching": preserve_color = "histogram_matching"
26
  with torch.no_grad():
27
  stylized_img = model(content, styles, style_strength, interpolation_weights, preserve_color = preserve_color)