0

I'm making AI web page using Django and tensor flow. and I wonder how I add .h5 file in Django project.

writing whole code in views.py file but I want to use pre-trained model not online learning in webpage.

1
  • I think you mean how to load a .h5 model into django? Because the answer below is about opening a h5 file with h5py, which is not the same as using load_model Commented Feb 6, 2023 at 9:09

1 Answer 1

0

Yeah u can use .h5 file in django. You can use h5py for operations on .h5 files. Exapmle -

import h5py

filename = "filename.h5"

h5 = h5py.File(filename,'r')

# logic
...

h5.close()
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.