Skip to content

RGB channel correct? #90

Open
Open
@liunian-harold-li

Description

@liunian-harold-li

Hi Jianwei, thank you for the excellent code! When I was trying to visualize the image and predictions, I find the RGB channels of the image swapped.

I looked into the original code for generating the imdb_1024.h5 and I find the dataset is already in the BGR format (https://github.com/danfeiX/scene-graph-TF-release/blob/master/data_tools/vg_to_imdb.py#L81). But in this repo, the model flips it back to RGB (https://github.com/jwyang/graph-rcnn.pytorch/blob/master/lib/data/transforms/transforms.py#L117). I wonder if that is the intended behavior as I presume that the input to the model should be in BGR. Am I using the correct imdb_1024.h5?

I would greatly appreciate your input. Thanks!

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