Skip to content

Commit

Permalink
no need to print architecture for inference
Browse files Browse the repository at this point in the history
Former-commit-id: 8febd95142bb2b74a2c034e54889b752371af127
  • Loading branch information
Javi Ribera committed Feb 4, 2018
1 parent 947a8a8 commit 0071240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deliverable/locate.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def __getitem__(self, idx):

# Loss function
l1_loss = nn.L1Loss()
criterion_training = losses.ModifiedChamferLoss(height=height, width=width,
criterion_training = losses.WeightedHausdorffDistance(height=height, width=width,
return_2_terms=True)

# Restore saved checkpoint (model weights)
Expand Down Expand Up @@ -192,7 +192,7 @@ def __getitem__(self, idx):
# Load model in checkpoint
model.load_state_dict(checkpoint['model'])
print("╰─ loaded checkpoint '{}'".format(args.model))
print(model)
# print(model)
else:
print("╰─ E: no checkpoint found at '{}'".format(args.model))
exit(-1)
Expand Down

0 comments on commit 0071240

Please sign in to comment.