-
Notifications
You must be signed in to change notification settings - Fork 33
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
Create predictions only for non-labeled images #51
base: master
Are you sure you want to change the base?
Conversation
Hi Olga! Long time no see 😄 The only suggestion I would have here is that in train/create_predictions.py, line 158, you are doing all_images = np.concatenate((all_images,all_images_this_folder), axis=0). The np.concatenate allocates a new array with memory equal to the sum of the arrays it is concatenating, then makes a copy of all the data in both existing arrays into the new array. This makes concatenating one folder at a time a very time-and-memory-intensive task. Two ways of improving this would be:
Let me know if you have any questions/comments! |
if (all_images == None): | ||
all_images = all_images_this_folder | ||
else: | ||
all_images = np.concatenate((all_images,all_images_this_folder), axis=0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest either getting rid of the np.concatenate or doing it at the end instead of at each folder.
When we're doing Active Learning "cycle" model will be used to get predictions for bbox locations. Currently it's done even for images that's been already reviewed by human experts.
This change excludes those reviewed ("tagged") images.
Unit test has been added to test the change.
run_all_test.py also is passing.