Skip to content

Commit 78b6b56

Browse files
authored
replace remaining read_image by decode_image
1 parent 00c8e56 commit 78b6b56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/basics/data_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def __len__(self):
190190

191191
def __getitem__(self, idx):
192192
img_path = os.path.join(self.img_dir, self.img_labels.iloc[idx, 0])
193-
image = read_image(img_path)
193+
image = decode_image(img_path)
194194
label = self.img_labels.iloc[idx, 1]
195195
if self.transform:
196196
image = self.transform(image)

0 commit comments

Comments
 (0)