MCPcopy Create free account
hub / github.com/ChunmingHe/WS-SAM / __len__

Method __len__

utils/data_val.py:538–539  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

536 return torch.where(a > 0, one, a)
537
538 def __len__(self):
539 return self.size
540
541class PolypObjDataset_scribble_noEdge_3326(data.Dataset):
542 def __init__(self, image_root, gt_root, scribble_root, imgName_root, trainsize=384):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected