Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/semantic-segmentation
/ set_num_samples
Method
set_num_samples
datasets/sampler.py:108–110 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
106
self.epoch = epoch
107
108
def
set_num_samples(self):
109
self.num_samples = int(math.ceil(len(self.dataset) * 1.0 / self.num_replicas))
110
self.total_size = self.num_samples * self.num_replicas
Callers
1
main
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected