Skip to content

Did you use samples with no parking slots for training? #2

@JiangStein

Description

@JiangStein

Hi, I am trying to apply SPFCN to my own dataset, and I found that only samples with parking slots are loaded to dataloader.
`class VisionParkingSlotDataset(Dataset):
def init(self, image_path, label_path, data_size, resolution):
self.length = data_size
self.image_list = []
self.label_list = []
index = 0
for item_name in os.listdir(image_path):
item_label = loadmat("%s%s.mat" % (label_path, item_name[:-4]))
slots = item_label['slots']
if len(slots) > 0:
item_image = cv2.resize(cv2.imread(image_path + item_name), (resolution, resolution))
item_image = np.transpose(item_image, (2, 0, 1))
self.image_list.append(item_image)

            marks = item_label['marks']
            mark_label = self._get_mark_label(marks, slots, resolution)
            slot_label = np.zeros([3, resolution, resolution])
            for mark in mark_label:
                slot_label[0, mark[1] - 3:mark[1] + 4, mark[0] - 3:mark[0] + 4] += GAUSSIAN_VALUE
                slot_label[1, mark[1] - 3:mark[1] + 4, mark[0] - 3:mark[0] + 4] += mark[2]
                slot_label[2, mark[1] - 3:mark[1] + 4, mark[0] - 3:mark[0] + 4] += mark[3]
            self.label_list.append(slot_label)

            index += 1
            if index == data_size:
                break`

Since there are many images with no parking slots in my own dataset, I want to know whether the accuracy written in paper were calculated by using this dataset? Or did you compare the effect of dataset with and without parking slots?
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions