MCPcopy Create free account
hub / github.com/Monalissaa/DisenDiff / __init__

Method __init__

utils/clipscore/clipscore.py:83–86  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

81
82class CLIPImageDataset(torch.utils.data.Dataset):
83 def __init__(self, data):
84 self.data = data
85 # only 224x224 ViT-B/32 supported for now
86 self.preprocess = self._transform_test(224)
87
88 def _transform_test(self, n_px):
89 return Compose([

Callers

nothing calls this directly

Calls 1

_transform_testMethod · 0.95

Tested by

no test coverage detected