MCPcopy Create free account
hub / github.com/pytorch/tutorials / __init__

Function __init__

beginner_source/basics/data_tutorial.py:162–166  ·  view source on GitHub ↗
(self, annotations_file, img_dir, transform=None, target_transform=None)

Source from the content-addressed store, hash-verified

160
161
162def __init__(self, annotations_file, img_dir, transform=None, target_transform=None):
163 self.img_labels = pd.read_csv(annotations_file)
164 self.img_dir = img_dir
165 self.transform = transform
166 self.target_transform = target_transform
167
168
169#################################################################

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected