Comments (8)
Hi @gcelano,
In Keras3, In order to save weights using model.save_weights method you need to add .weights.h5
extension to the path.
model.save_weights('dir/my_model.weights.h5')
Please check the doc source for same.
from tensorflow.
These issues might share common themes or underlying causes related to saving and loading model weights in TensorFlow. Exploring them further could provide insights into resolving the "Model weights cannot be saved" issue. #65279 , #62483 , #61859 , #61279 , #60064 , #59287
from tensorflow.
@SuryanarayanaY , in my code at link above I use ".weights.h5", and this has no impact on the problem. @testhowtest, is there a provisional workaround? Without saving, there is not much use in using TF
from tensorflow.
@gcelano,
Looks like this is the Keras issue. It's better to track in the Keras repo which was raised for the quick resolution. Thank you!
from tensorflow.
An issue has been opened here keras-team/keras#19693
from tensorflow.
@gcelano,
Could you please feel free to move this issue to the closed status, as the same issue can be tracked in the Keras repo issue. Thank you!
from tensorflow.
Closed because the issue is here: keras-team/keras#19693
from tensorflow.
Are you satisfied with the resolution of your issue?
Yes
No
from tensorflow.
Related Issues (20)
- Compiling doesn't change learning rate of reloaded model. Instead changes learning-rate of optimizer HOT 1
- Silent exception when using TFLiteConverter
- When should I include tensorflow-lite-gpu-delegate-plugin dependency in my android project? HOT 3
- Urgent: Report of Spam and Scam Activity on Your Website HOT 1
- `SIGSEGV ` (Address boundary error) in `tf.io.gfile` with `TF_USE_MODULAR_FILESYSTEM=1` HOT 1
- error: enumeration value 'dnnl_data_type_undef' not handled in switch HOT 2
- `tf.data.Dataset.load()` cannot load from a folder with bracket in the name HOT 3
- ValueError: Only instances of `keras.Layer` can be added to a Sequential model. Received: <tensorflow_probability.python.layers.dense_variational_v2.DenseVariational object at 0x000001C67AF5B4D0> (of type <class 'tensorflow_probability.python.layers.dense_variational_v2.DenseVariational'>) HOT 1
- Failure loading saved model (with tf2onnx)
- TF 2.17.0-rc0 compilation fails due to flag: `-mavx512fp16’; did you mean ‘-mavx512bf16’? HOT 6
- Unable to build TFLite GPU Delegate for Android on MacOS
- Training time for models HOT 2
- TFJS basic operations are extremely slow in comparison to Native JS HOT 2
- LINK error with dbg flag HOT 1
- whenever I try fitting a sequential model it doesn't work
- Can't load my model.h5 HOT 6
- รายงานปัญหาระหว่างการแปลงโมเดลเป็น TFLite HOT 1
- AttributeError: module 'keras.src.backend' has no attribute 'convert_to_numpy' HOT 2
- CUDA 11.4 Build error HOT 4
- Loading model error 'No such file or directory: 'model.weights.h5' HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow.