Skip to content

Commit

Permalink
Update train_coarse.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonsei-MILab authored Jul 28, 2023
1 parent deb729d commit 4a665fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions train_coarse.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ def train_generator(input, Mask, Maskmimi, label, traing_loss, iteration):
# Coarse generator
coarse_pred = gen_coarse(input).to(device)



# Loss calculations and backpropagation
finalg_loss = calculate_gen_loss(coarse_pred, Mask, Maskmimi, label)
traing_loss += finalg_loss.item()
Expand Down Expand Up @@ -103,4 +101,4 @@ def calculate_gen_loss(fine_pred, Mask, Maskmimi, label):
return finalg_loss

# Call the main function
train_model_coarse(num_epoch)
train_model_coarse(num_epoch)

0 comments on commit 4a665fa

Please sign in to comment.