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

Question about Input Image Format [RGB or BGR] #209

Open
meherajj opened this issue Oct 2, 2024 · 0 comments
Open

Question about Input Image Format [RGB or BGR] #209

meherajj opened this issue Oct 2, 2024 · 0 comments

Comments

@meherajj
Copy link

meherajj commented Oct 2, 2024

Hi,

I have a question regarding the input image format used to train the models in this repository. Specifically, I would like to know whether the models were trained on RGB or BGR images.

There are two pretrained models provided: resnet50_final and mobilenet0.25_final. Were these models trained on images in the BGR format?

The reason I ask is that in the detect.py script, images are read using OpenCV and then directly passed to the model. As far as I know, OpenCV reads images in BGR format by default.

Additionally, would the model performance degrade if the images are given in the wrong format (RGB instead of BGR or vice versa)?

Thank you for your help!

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

1 participant