Skip to content

Converting generated disparity npy to png format #31

@Mamoanwar97

Description

@Mamoanwar97

I used the generate_disp script found in pseudo_lidar repo, I used it in converting the point cloud of Kitti object detection 7481 examples in order to have large data to train the model on, but in order to train i need to convert the images from npy format to png, i tried many ways

this one of them

disp = np.load(args.main_dir + '/' + fn)
disp_map = (disp_map - np.min(disp_map)) / (np.max(disp_map) - np.min(disp_map))
disp_map = (disp_map*255).astype(np.uint8)

it actually output a good looking image but when i start the training, the results are soooo bad, almost nothing is correct so any idea of the right way to convert these npy files to images i can train on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions