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

Adds customization options to the segmentation models and other improvements #263

Merged
merged 48 commits into from Jan 28, 2021

Conversation

Marius-Juston
Copy link
Contributor

@Marius-Juston Marius-Juston commented Jan 17, 2021

Main additions:
Adds the ability to add custom callbacks to the model training sequences
Adds the ability to add custom augmentation functions to the model training
Adds the ability to add multi-image input with data augmentation to the models easily

Minor additions:
Uses TensorFlow model checkpoint instead of custom Keras one.
Uses tensorflow tf.train.latest_checkpoint function instead of custom find_latest_checkpoint function
Updates some of the deprecated augmentation function classes (using imgaug>=0.4.0)
For the auto-resume checkpoint boolean in training makes it so that it continues from the last checkpoint epoch number instead from 0 again
Uses the model.fit function instead of the model.fit_generator function
If the checkpoint base folder does not exist, create it
Updates the dataset visualization part of the library to accommodate different augmentation functions and image size

@Marius-Juston
Copy link
Contributor Author

Marius-Juston commented Jan 17, 2021

I believe that the Python 2.7 tests should be removed since Python 2 has been deprecated (January 1st 2020) and TensorFlow version 2.2 and up no longer support it.

@Marius-Juston
Copy link
Contributor Author

Yay all green!!

@divamgupta I hope that this helps the community and it would be great if you checked out my changes! (this is my first pull request so any feedback would be greatly appreciated! )

@divamgupta
Copy link
Owner

Hi @Marius-Juston thanks for the pull request. I will review it and get back to you.

@Marius-Juston
Copy link
Contributor Author

Just added some unit tests to verify everything works for the data generator functions

@Marius-Juston
Copy link
Contributor Author

Added the ability to change the number of image input channels to the models.
Also fixed a mistake in the default fcn_8_mobilenet and fcn_32_mobilenet input height and width

@Marius-Juston
Copy link
Contributor Author

Marius-Juston commented Jan 20, 2021

@divamgupta I believe that I am done with my changes/feature additions.

@Marius-Juston
Copy link
Contributor Author

Okay now this was the last thing

@divamgupta divamgupta merged commit 846f672 into divamgupta:master Jan 28, 2021
@divamgupta
Copy link
Owner

@Marius-Juston Thanks for the good work. I have merged the PR. If you want, you could also update the readme for the new features.

@Marius-Juston
Copy link
Contributor Author

Will do!

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.

None yet

3 participants