MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / __init__

Method __init__

datasets/ssl_dataset.py:144–146  ·  view source on GitHub ↗
(self, root_path, num_labels=-1, num_class=1000)

Source from the content-addressed store, hash-verified

142
143class ImageNetLoader:
144 def __init__(self, root_path, num_labels=-1, num_class=1000):
145 self.root_path = os.path.join(root_path, 'imagenet')
146 self.num_labels = num_labels // num_class
147
148 def get_transform(self, train, ulb):
149 if train:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected