Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
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.
|
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)
|