Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Fix a bug. (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kongsea authored and fmassa committed Oct 25, 2018
1 parent 85e1ac4 commit 3b726c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maskrcnn_benchmark/data/datasets/list_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class ListDataset(object):
def __init__(self, image_list, transforms=None):
def __init__(self, image_lists, transforms=None):
self.image_lists = image_lists
self.transforms = transforms

Expand All @@ -26,7 +26,7 @@ def __getitem__(self, item):
return img, target

def __len__(self):
return len(image_lists)
return len(self.image_lists)

def get_img_info(self, item):
"""
Expand Down

0 comments on commit 3b726c6

Please sign in to comment.