Moving to tf.keras
See original GitHub issueHi. First of all thanks for your repo!
Have you considered moving to tf.keras
instead of using separate keras
? It would make your repo compatible with new TF 2.0 out of the box while still being compatible with older versions of TF as well.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:19 (7 by maintainers)
Top Results From Across the Web
tf.keras.Model | TensorFlow v2.11.0
Model groups layers into an object with training and inference features.
Read more >Inside TensorFlow: tf.Keras (Part 1) - YouTube
Take an inside look into the TensorFlow team's own internal training sessions--technical deep dives into TensorFlow by the very people who ...
Read more >Keras vs. tf.keras: What's the difference in TensorFlow 2.0?
In this tutorial you'll discover the difference between Keras and tf.keras. You'll also learn what's new in TensorFlow 2.0.
Read more >How to move a tensorflow.keras model to GPU - Stack Overflow
Create a state_dict like PyTorch · Get the model architecture as JSON · Clear the Keras session and delete the model instance ·...
Read more >Moving from Keras to Pytorch - Towards Data Science
A Highly customizable Training Loop · Create stratified splits using train data · Loop through the splits. · Convert your train and CV...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @bonlime @lc0 @NiklasDL @chAwater @srikrishna0130 @northanapon @Tyler-D
I have prepared a lib update to work together with keras and tf.keras and need your help! If someone have a time to test it and give a feedback it would be great (autotests have been passed)!
Some words about update:
get_preprocessing
to root)Keras
installed -> lib will load withKeras
, if not lib will load withtf.keras
b) You can setup env varSM_FRAMEWORK="keras"
/SM_FRAMEWORK="tf.keras"
before import segmentation_models c) You can change framework in runtimeimage_data_format
(may be useful to convert models (#69 ))Installation
Now you can install it
Roll back:
Waiting for your feedback, thank you!
Hi @bonlime Yes, I have such plans, I think it should be done in a way of keras-applications with possibility to define your framework (
keras
ortf.keras
). I did not still move totf.keras
by myself, so cannot guarantee this process will be fast.Next week I am going to start adopting
classification-models
to make this possible. Any advices, bug reports, testing, PRs from community are appreciated.