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

Fix bug in FolderImageLoader #3

Merged
merged 1 commit into from
Oct 31, 2021
Merged

Conversation

reuvenperetz
Copy link
Collaborator

The FolderImageLoader chooses a list of possible integers
among all integers of indices of the images in the folder
that we load.

In FolderImageLoader we choose the indices of the images
to sample every time, from all possible indices of the images in
the folder.
The selection was between 0 to num_of_images-1, so when the folder
contains only one image, we tried to choose indices from
an empty group.
The indices now are selected from 0 to num_of_images, so the bug
is fixed.

The FolderImageLoader chooses a list of possible integers
among all integers of indices of the images in the folder
that we load.

In FolderImageLoader we choose the indices of the images
to sample every time, from all possible indices of the images in
the folder.
The selection was between 0 to num_of_images-1, so when the folder
contains only one image, we tried to choose indices from
an empty group.
The indices now are selected from 0 to num_of_images, so the bug
is fixed.
@reuvenperetz reuvenperetz linked an issue Oct 31, 2021 that may be closed by this pull request
@haihabi haihabi merged commit a87c7d0 into main Oct 31, 2021
@haihabi haihabi deleted the bug_2_image_loader_one_image branch October 31, 2021 15:06
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

Successfully merging this pull request may close these issues.

example_keras_mobilenet.py exits with ValueError: low >= high
2 participants