MCPcopy Create free account
hub / github.com/adobe-research/custom-diffusion / __init__

Method __init__

customconcept101/evaluate.py:20–26  ·  view source on GitHub ↗
(self, data, append=False, prefix='A photo depicts')

Source from the content-addressed store, hash-verified

18
19class CLIPCapDataset(torch.utils.data.Dataset):
20 def __init__(self, data, append=False, prefix='A photo depicts'):
21 self.data = data
22 self.prefix = ''
23 if append:
24 self.prefix = prefix
25 if self.prefix[-1] != ' ':
26 self.prefix += ' '
27
28 def __getitem__(self, idx):
29 c_data = self.data[idx]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected