Skip to content

Commit

Permalink
fixed notebook progress
Browse files Browse the repository at this point in the history
  • Loading branch information
braindotai committed Feb 15, 2021
1 parent 55062b1 commit 911ad88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from torch import optim
from tqdm.auto import tqdm

from helper import *
from model.generator import SkipEncoderDecoder, input_noise

Expand All @@ -19,7 +19,7 @@ def remove_watermark(image_path, mask_path, max_dim, reg_noise, input_depth, lr,
num_channels_skip = [128] * 5
).type(DTYPE)

objective = torch.nn.Loss().type(DTYPE)
objective = torch.nn.MSELoss().type(DTYPE)
optimizer = optim.Adam(generator.parameters(), lr)

image_var = np_to_torch_array(image_np).type(DTYPE)
Expand Down

0 comments on commit 911ad88

Please sign in to comment.