Commit 3b726c68 authored by Kongsea's avatar Kongsea Committed by Francisco Massa

Fix a bug. (#13)

parent 85e1ac4d
......@@ -9,7 +9,7 @@ from maskrcnn_benchmark.structures.bounding_box import BoxList
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
......@@ -26,7 +26,7 @@ class ListDataset(object):
return img, target
def __len__(self):
return len(image_lists)
return len(self.image_lists)
def get_img_info(self, item):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment