Skip to content

cv2.imread(light_file + file_list[i]), cv2.COLOR_RGB2GRAY) #22

@GarveyHung

Description

@GarveyHung

Hi.

cv2.cvtColor(cv2.imread(light_file + file_list[i]), cv2.COLOR_RGB2GRAY) / 255.0

in syn_data.py

The format of the image read by cv2 is BGR.

So the code above should be:

cv2.cvtColor(cv2.imread(light_file + file_list[i]), cv2.COLOR_BGR2GRAY) / 255.0

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