Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/edd/patchcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def coreset(x: torch.Tensor, frac: float, dev: torch.device, seed: int = 0) -> t


@torch.no_grad()
def score(bank: torch.Tensor, test: torch.Tensor, dev: torch.device, chunk: int = 16):
def score(bank: torch.Tensor, test: torch.Tensor, dev: torch.device, chunk: int = 16) -> torch.Tensor:
"""Per-patch distance to the nearest normal patch. -> (N, P)"""
bank = bank.to(dev)
out = []
Expand Down
Loading