MCPcopy Create free account
hub / github.com/CompVis/zigma / __getitem__

Method __getitem__

datasets/dataset_wrapper.py:10–16  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

8 print("ImageFolder_FakeWrapper initialized")
9
10 def __getitem__(self, index):
11
12 x = torch.rand(3, 256, 256)
13 y = 0
14
15 # Add additional processing here
16 return x,y
17
18 def __len__(self):
19 return 10086

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected