-
Notifications
You must be signed in to change notification settings - Fork 45
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
Major upgrade to TF2 (v2.8) #137
Conversation
ResNets and singleCNNs are upgraded, but not the stereo models yet.
I've marked this PR as a draft because there are some things missing. @nietootein regarding the installation I was wondering if we can give it a try to rather install CUDA from the Nvidia conda account in the environment than systemwide? It'd be useful for non-root users. |
enhanced the predict mode data loading with mode
Reshape image shape to concat telescopes (mainly used in MAGIC) Added telescope(s) selection from command line. Makes config files per telescope types redundant. Solved bad file descriptor OSError at the end of training.
Users should use the installed version of the models by default. If they would like to customize the models they can provide the path to their models.
This commit adds several options to the command line in order to keep the config file as general as possible. As a result we can ship generic config files for each model with the installation of CTLearn. Also the user can select the model from the command line without providing an own config file. Developers can still use all the features as before.
Energy labels had shape (batch_size, ), now it is (batch_size, label_shape), as it is for particle type labels and direction labels.
Set energy label shape to (batch_size, label_shape)
Ready from my side! |
Some are deprecated due to new functionality. They will keep in the repo for now in case users wants to get inspired by them and write their own scripts.
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.
Thanks so much for this massive upgrade, @TjarkMiener!
This is a PR draft for the CTLearn v0.6.0 using Keras with the latest TensorFlow v.2.8.
ToDos:
input_fn()
should be replaced with a Keras batch generator.tf.distribute.MirroredStrategy