Skip to content

Commit

Permalink
code update
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabarsellotti committed Nov 22, 2024
1 parent 770e02c commit d863e87
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from torch.nn import functional as F
from src.model import CLIPLastLayer

# Code borrowed and adapted from https://github.com/mesnico/ALADIN/blob/master/alad/loss.py
class Contrastive(nn.Module):
def __init__(self, sim=None, margin=0, max_violation=False, ltype='triplet'):
super(Contrastive, self).__init__()
Expand Down

0 comments on commit d863e87

Please sign in to comment.