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

Incorrect image_shape for grayscale color_mode. #190

Open
Marioqwe opened this issue Mar 7, 2018 · 0 comments
Open

Incorrect image_shape for grayscale color_mode. #190

Marioqwe opened this issue Mar 7, 2018 · 0 comments

Comments

@Marioqwe
Copy link

Marioqwe commented Mar 7, 2018

In _object_detection.py, line 51, you have:

if self.color_mode == "grayscale":
    if self.data_format == "channels_first":
        self.image_shape = (*target_size, 1)
    else:
        self.image_shape = (1, *target_size)

I believe you should be setting self.image_shape = (1, *target_size) if self.data_format == "channels_first", and the opposite if the check fails.

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