Skip to content

Commit caf762b

Browse files
committed
remove useless line
1 parent 12b74a0 commit caf762b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

torchvision/datasets/fgvc_aircraft.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ def __init__(
8282
self._labels = []
8383

8484
with open(labels_file, "r") as f:
85-
lines = [line.strip() for line in f]
86-
for line in lines:
85+
for line in f:
8786
image_name, label_name = line.strip().split(" ", 1)
8887
self._image_files.append(os.path.join(image_data_folder, f"{image_name}.jpg"))
8988
self._labels.append(self.class_to_idx[label_name])

0 commit comments

Comments
 (0)