Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A question about DSEC-MOD Dataset #17

Open
xhowdonewd opened this issue Jul 5, 2024 · 2 comments
Open

A question about DSEC-MOD Dataset #17

xhowdonewd opened this issue Jul 5, 2024 · 2 comments

Comments

@xhowdonewd
Copy link

First of all, thank you for your work.
I am confused about txt in gt_bb. It seems only to have the Bbox but doesn't have the class label. In your paper you said 'In our dataset, 8 object classes are taken into account: car, truck, bus, train, pedestrian, cyclist, motorcyclist, and others.'

@Yummy198913
Copy link

Yummy198913 commented Sep 3, 2024

Have you figured out this problem ? I guess the author treated all objects as one class, the num_class is 1 as shown below.

``
from future import absolute_import
from future import division
from future import print_function

import os
from .base_dataset import BaseDataset

class DSEC(BaseDataset):
num_classes = 1

def __init__(self, opt, mode):
    self.ROOT_DATASET_PATH = os.path.join(opt.root_dir, 'data/DSEC')
    pkl_filename = 'DSEC-GT.pkl'
    super(DSEC, self).__init__(opt, mode, self.ROOT_DATASET_PATH, pkl_filename)

def imagefile(self, v, i):
    return os.path.join(self.ROOT_DATASET_PATH, 'RGB-images', v, '{:0>6}.png'.format(i))

def eventfile(self, v, i):
    return os.path.join(self.ROOT_DATASET_PATH, 'Event-images', v, '{:0>6}.png'.format(i))

def eventfile_30ms(self, v, i):
    return os.path.join(self.ROOT_DATASET_PATH, 'Event-images_30ms', v, '{:0>6}.png'.format(i))
def eventfile_50ms(self, v, i):
    return os.path.join(self.ROOT_DATASET_PATH, 'Event-images_50ms', v, '{:0>6}.png'.format(i))

@xhowdonewd
Copy link
Author

Have you figured out this problem ? I guess the author treated all objects as one class, the num_class is 1 as shown below.

`` from future import absolute_import from future import division from future import print_function

import os from .base_dataset import BaseDataset

class DSEC(BaseDataset): num_classes = 1

def __init__(self, opt, mode):
    self.ROOT_DATASET_PATH = os.path.join(opt.root_dir, 'data/DSEC')
    pkl_filename = 'DSEC-GT.pkl'
    super(DSEC, self).__init__(opt, mode, self.ROOT_DATASET_PATH, pkl_filename)

def imagefile(self, v, i):
    return os.path.join(self.ROOT_DATASET_PATH, 'RGB-images', v, '{:0>6}.png'.format(i))

def eventfile(self, v, i):
    return os.path.join(self.ROOT_DATASET_PATH, 'Event-images', v, '{:0>6}.png'.format(i))

def eventfile_30ms(self, v, i):
    return os.path.join(self.ROOT_DATASET_PATH, 'Event-images_30ms', v, '{:0>6}.png'.format(i))
def eventfile_50ms(self, v, i):
    return os.path.join(self.ROOT_DATASET_PATH, 'Event-images_50ms', v, '{:0>6}.png'.format(i))

I did not figure out this problem. I will try to use the DSEC-DET dataset to continue my work, which has a more specific label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants