Skip to content

Commit

Permalink
fix model bug
Browse files Browse the repository at this point in the history
  • Loading branch information
2toinf committed Mar 19, 2024
1 parent cffb75d commit 599860a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DecisionNCE/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def __init__(self, modelid="RN50", device="cuda"):
# CLIP precision
model.float()
self.model = model
del self.model.logit_scale
self.model.train()
self.transforms = cliptransforms
self.transforms_tensor = nn.Sequential(
Expand Down

0 comments on commit 599860a

Please sign in to comment.