ZitongYu / CDCN

Central Difference Convolutional Networks (CVPR'20)
Other
553 stars 179 forks source link

About data preprocessing... #13

Closed hell0wold closed 2 years ago

hell0wold commented 4 years ago
def get_single_image_x(self, image_path, map_path, videoname):

    frames_total = len([name for name in os.listdir(map_path) if os.path.isfile(os.path.join(map_path, name))])

    # random choose 1 frame
    for temp in range(500):
        image_id = np.random.randint(1, frames_total-1)

        s = "_%03d_scene" % image_id
        image_name = videoname + s + '.jpg'
        bbox_name = videoname + s + '.dat'
        bbox_path = os.path.join(image_path, bbox_name)
        s = "_%03d_depth1D" % image_id
        map_name = videoname + s + '.jpg'
        map_path2 = os.path.join(map_path, map_name)

/home/ztyu/FAS_dataset/OULU/IJCB_re/OULUtrain_images/ 6_3_20_5_121_depth1D.jpg

According to your code, do we need to generate these black images? thank you~