Skip to content

Commit

Permalink
remove useless line
Browse files Browse the repository at this point in the history
  • Loading branch information
yiwen-song committed Jan 14, 2022
1 parent 12b74a0 commit caf762b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions torchvision/datasets/fgvc_aircraft.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ def __init__(
self._labels = []

with open(labels_file, "r") as f:
lines = [line.strip() for line in f]
for line in lines:
for line in f:
image_name, label_name = line.strip().split(" ", 1)
self._image_files.append(os.path.join(image_data_folder, f"{image_name}.jpg"))
self._labels.append(self.class_to_idx[label_name])
Expand Down

0 comments on commit caf762b

Please sign in to comment.