We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12b74a0 commit caf762bCopy full SHA for caf762b
torchvision/datasets/fgvc_aircraft.py
@@ -82,8 +82,7 @@ def __init__(
82
self._labels = []
83
84
with open(labels_file, "r") as f:
85
- lines = [line.strip() for line in f]
86
- for line in lines:
+ for line in f:
87
image_name, label_name = line.strip().split(" ", 1)
88
self._image_files.append(os.path.join(image_data_folder, f"{image_name}.jpg"))
89
self._labels.append(self.class_to_idx[label_name])
0 commit comments