Skip to content
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

How to export the model as keras h5 file? #11257

Closed
1 of 2 tasks
lebron8dong opened this issue Mar 28, 2023 · 2 comments
Closed
1 of 2 tasks

How to export the model as keras h5 file? #11257

lebron8dong opened this issue Mar 28, 2023 · 2 comments
Labels
bug Something isn't working Stale

Comments

@lebron8dong
Copy link

Search before asking

  • I have searched the YOLOv5 issues and found no similar bug report.

YOLOv5 Component

No response

Bug

"""
TensorFlow, Keras and TFLite versions of YOLOv5
Authored by https://github.com/zldrobit in PR #1127

Usage:
$ python models/tf.py --weights yolov5s.pt

Export:
$ python export.py --weights yolov5s.pt --include saved_model pb tflite tfjs
"""

There is no h5 file after I execute the command

Environment

No response

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@lebron8dong lebron8dong added the bug Something isn't working label Mar 28, 2023
@github-actions
Copy link
Contributor

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

@github-actions github-actions bot added the Stale label Apr 28, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2023
@glenn-jocher
Copy link
Member

@lebron8dong to export the YOLOv5 model as a Keras h5 file, you can use the provided export script with the --include keras option. After executing the command, the h5 file should be generated accordingly.

For more details on model export, refer to the Ultralytics Docs at https://docs.ultralytics.com/yolov5/.

Let me know if you need further assistance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

2 participants