Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
16
class
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
26
class
ExampleModel(nn.Module):
Callers
4
test_iter_eval_hook
Function · 0.85
test_epoch_eval_hook
Function · 0.85
test_dist_eval_hook
Function · 0.85
test_dist_eval_hook_epoch
Function · 0.85
Calls
no outgoing calls
Tested by
4
test_iter_eval_hook
Function · 0.68
test_epoch_eval_hook
Function · 0.68
test_dist_eval_hook
Function · 0.68
test_dist_eval_hook_epoch
Function · 0.68