Skip to content

Commit

Permalink
[HUB] bug is_jit.
Browse files Browse the repository at this point in the history
  • Loading branch information
YannDubs committed Jul 7, 2021
1 parent ad3fb3d commit 6b604dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hub/compressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(
device="cuda" if torch.cuda.is_available() else "cpu",
):
super().__init__()
model, self.preprocess = clip.load("ViT-B/32", jit=jit, device=device)
model, self.preprocess = clip.load("ViT-B/32", jit=is_jit, device=device)
self.clip = model.visual

self.z_dim = 512
Expand Down
2 changes: 1 addition & 1 deletion hubconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from hub import ClipCompressor as _ClipCompressor

PATH = "https://github.com/YannDubs/lossyless/releases/download/v0.1-alpha/beta{beta:0.0e}_factorized_rate.pt"
PATH = "https://github.com/YannDubs/lossyless/releases/download/v1.0/beta{beta:0.0e}_factorized_rate.pt"
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"

# TODO: add JIT once https://github.com/InterDigitalInc/CompressAI/issues/72 is resolved
Expand Down

0 comments on commit 6b604dd

Please sign in to comment.