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

Class ImageFolder_FakeWrapper

datasets/dataset_wrapper.py:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4from torch.utils.data import Dataset
5
6class ImageFolder_FakeWrapper(Dataset):
7 def __init__(self, *args, **kwargs):
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