Skip to content

Commit 99e7cd6

Browse files
committed
Automated tutorials push
1 parent 6c6fcfc commit 99e7cd6

File tree

154 files changed

+15228
-15148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+15228
-15148
lines changed

_downloads/45df659e502e5cab33b6b0764d26b89a/data_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def __getitem__(self, idx):
160160

161161

162162
def __init__(self, annotations_file, img_dir, transform=None, target_transform=None):
163-
self.img_labels = pd.read_csv(annotations_file, names=['file_name', 'label'])
163+
self.img_labels = pd.read_csv(annotations_file)
164164
self.img_dir = img_dir
165165
self.transform = transform
166166
self.target_transform = target_transform

_downloads/57a471142057f27da635118e88a99bf6/data_tutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
},
109109
"outputs": [],
110110
"source": [
111-
"def __init__(self, annotations_file, img_dir, transform=None, target_transform=None):\n self.img_labels = pd.read_csv(annotations_file, names=['file_name', 'label'])\n self.img_dir = img_dir\n self.transform = transform\n self.target_transform = target_transform"
111+
"def __init__(self, annotations_file, img_dir, transform=None, target_transform=None):\n self.img_labels = pd.read_csv(annotations_file)\n self.img_dir = img_dir\n self.transform = transform\n self.target_transform = target_transform"
112112
]
113113
},
114114
{
Loading
-332 Bytes
Loading
9.93 KB
Loading
-2.23 KB
Loading
-1.12 KB
Loading
-294 Bytes
Loading
14.9 KB
Loading
12.1 KB
Loading

0 commit comments

Comments
 (0)