Skip to content

Commit

Permalink
Merge pull request #30 from QIN2DIM/main
Browse files Browse the repository at this point in the history
fix(bug): Resolve the conflict
  • Loading branch information
QIN2DIM authored Sep 12, 2022
2 parents 7335fd0 + bbeff8d commit bb5a765
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/factories/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ def _train(

def _val(self, model: nn.modules, data_loader: DataLoader):
total_acc = 0
total_tp = 0
total_tn = 0
total_fp = 0
total_fn = 0

for _, (img, label) in enumerate(data_loader):
img = img.to(self.DEVICE)
label = label.to(self.DEVICE)
Expand Down

0 comments on commit bb5a765

Please sign in to comment.