From 57bbf6a74bc4521bbe729a83aca4d3be1528fab8 Mon Sep 17 00:00:00 2001 From: martin goodson Date: Wed, 24 Sep 2025 08:15:23 +0100 Subject: [PATCH] Update data_tutorial.py Corrected quoted code so it reflects the code at line 137. --- beginner_source/basics/data_tutorial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beginner_source/basics/data_tutorial.py b/beginner_source/basics/data_tutorial.py index fe649e9e009..2c46b33122a 100644 --- a/beginner_source/basics/data_tutorial.py +++ b/beginner_source/basics/data_tutorial.py @@ -190,7 +190,7 @@ def __len__(self): def __getitem__(self, idx): img_path = os.path.join(self.img_dir, self.img_labels.iloc[idx, 0]) - image = read_image(img_path) + image = decode_image(img_path) label = self.img_labels.iloc[idx, 1] if self.transform: image = self.transform(image)