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

Bug found in DataGenerator.py #6

Open
Zeltserj opened this issue Jun 11, 2020 · 0 comments
Open

Bug found in DataGenerator.py #6

Zeltserj opened this issue Jun 11, 2020 · 0 comments

Comments

@Zeltserj
Copy link

Hi,
In all the generator classes, the length function seems to be implemented wrong.
The implementation:

    def __len__(self):
        'Denotes the number of batches per epoch'
        return int(np.floor(self.images.shape[1]/self.batch_size))

when actually the nominator should be self.image.shape[0], which is number of sample and not the height of the input image.

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