Skip to content

Commit

Permalink
remove empty lines (#8585)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliabd committed Jun 20, 2024
1 parent 4c8a183 commit 7833749
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions guides/09_other-tutorials/Gradio-and-Wandb-Integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,13 @@ Let's get started!
This next step will open a W&B dashboard to track your experiments and a gradio panel showing pretrained models to choose from a drop down menu from a Gradio Demo hosted on Huggingface Spaces. Here's the code you need for that:
```python
alpha = 1.0
alpha = 1-alpha
preserve_color = True
num_iter = 100
log_interval = 50
samples = []
column_names = ["Reference (y)", "Style Code(w)", "Real Face Image(x)"]
Expand Down Expand Up @@ -108,7 +106,6 @@ Let's get started!
loss = sum([F.l1_loss(a, b) for a, b in zip(fake_feat, real_feat)])/len(fake_feat)
wandb.log({"loss": loss}, step=idx)
if idx % log_interval == 0:
generator.eval()
Expand Down

0 comments on commit 7833749

Please sign in to comment.