From b9035b287a8d4c95ef47feaae345c334f73ec685 Mon Sep 17 00:00:00 2001 From: PythicCoder Date: Tue, 15 Dec 2020 23:19:08 +0200 Subject: [PATCH] Update data_quickstart_tutorial.py --- beginner_source/quickstart/data_quickstart_tutorial.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beginner_source/quickstart/data_quickstart_tutorial.py b/beginner_source/quickstart/data_quickstart_tutorial.py index 726f64f553b..3fdacfec77a 100644 --- a/beginner_source/quickstart/data_quickstart_tutorial.py +++ b/beginner_source/quickstart/data_quickstart_tutorial.py @@ -129,9 +129,13 @@ def __getitem__(self, idx): # # The init function is used for all the first time operations when our Dataset is loaded. In this case we use it to load our annotation labels to memory and the keep track of directory of our image file. Note that different types of data can take different init inputs you are not limited to just an annotations file, directory_path and transforms but for images this is a standard practice. # A sample csv annotations file may look as follows: +# # tshirt1.jpg, 0 +# # tshirt2.jpg, 0 +# # ...... +# # ankleboot999.jpg, 9 # # Example: