jamino30 commited on
Commit
f5be54d
1 Parent(s): 917ebd2

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ def inference(content_image, style_name, style_strength, output_quality, progres
82
 
83
  st = time.time()
84
  generated_img = content_img.clone().requires_grad_(True)
85
- optimizer = optim.Adam([generated_img], lr=lr)
86
 
87
  with torch.no_grad():
88
  content_features = model(content_img)
 
82
 
83
  st = time.time()
84
  generated_img = content_img.clone().requires_grad_(True)
85
+ optimizer = optim.AdamW([generated_img], lr=lr)
86
 
87
  with torch.no_grad():
88
  content_features = model(content_img)