'How to store a Keras .h5 file in a Django database?
I have several Keras .h5 files that I want to store using a Django model. In the Django docs there is no model field designed for .h5 files. Is there and way I can convert it to a json and store it as that or is there another go to way for doing this?
Solution 1:[1]
there is a package called django-picklefield I had used that for the same purpose to store NumPy in Django models. this package will save pickles as blobs in the database. if the h5 data file is binary too you can use this package with a little modification. another way is you can store your data in a pickle file instead of h5 its a bit faster than h5 too
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Xeus |
