Skip to content

Commit

Permalink
One more type:ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
tmke8 committed Feb 24, 2024
1 parent 3ae31f0 commit 831304a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/labelling/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ def __init__(
model, self.transforms = clip.load(
name=version.value, # type: ignore
device="cpu",
download_root=download_root,
download_root=download_root, # type: ignore
)
logger.info("Done.")
self.encoder = model.visual
self.out_dim = cast(int, self.encoder.output_dim)

def forward(self, x: Tensor) -> Tensor: # type: ignore
def forward(self, x: Tensor) -> Tensor:
return self.encoder(x)

@torch.no_grad() # pyright: ignore
Expand Down

0 comments on commit 831304a

Please sign in to comment.