MCPcopy Create free account
hub / github.com/NVlabs/SegFormer / ExampleDataset

Class ExampleDataset

tests/test_eval_hook.py:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15
16class ExampleDataset(Dataset):
17
18 def __getitem__(self, idx):
19 results = dict(img=torch.tensor([1]), img_metas=dict())
20 return results
21
22 def __len__(self):
23 return 1
24
25
26class ExampleModel(nn.Module):

Callers 4

test_iter_eval_hookFunction · 0.85
test_epoch_eval_hookFunction · 0.85
test_dist_eval_hookFunction · 0.85

Calls

no outgoing calls

Tested by 4

test_iter_eval_hookFunction · 0.68
test_epoch_eval_hookFunction · 0.68
test_dist_eval_hookFunction · 0.68