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

Can you provide a Yolov5 model that is not based on YAML files #25

Closed
williamlzw opened this issue Jun 8, 2020 · 12 comments
Closed

Can you provide a Yolov5 model that is not based on YAML files #25

williamlzw opened this issue Jun 8, 2020 · 12 comments
Labels
enhancement New feature or request Stale

Comments

@williamlzw
Copy link

Can you provide a Yolov5 model that is not based on YAML files?
I tried porting to libtorch.I can't understand the model based on yaml file.

@williamlzw williamlzw added the enhancement New feature or request label Jun 8, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2020

Hello @laizewei, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Google Colab Notebook, Docker Image, and GCP Quickstart Guide for example environments.

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom model or data training question, please note that Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:

  • Cloud-based AI surveillance systems operating on hundreds of HD video streams in realtime.
  • Edge AI integrated into custom iOS and Android apps for realtime 30 FPS video inference.
  • Custom data training, hyperparameter evolution, and model exportation to any destination.

For more information please visit https://www.ultralytics.com.

@glenn-jocher
Copy link
Member

@laizewei yes this should be possible. We use the yaml file to load multiple types of yolo models with the same pytorch code.

@williamlzw
Copy link
Author

Thank you!

@glenn-jocher
Copy link
Member

glenn-jocher commented Jun 11, 2020

@laizewei you may be able to load YOLOv5 models now directly with PyTorch Hub. This way you should not have to deal with any yaml files. See https://docs.ultralytics.com/yolov5/tutorials/pytorch_hub_model_loading

@williamlzw
Copy link
Author

Can you offer Yolov5s.py that only use pytorch's base layer?I tried porting the libtorch version.

@williamlzw
Copy link
Author

@sakshamjn
Copy link

Hey
If I use Pytorch hub can I use my custom weights

@glenn-jocher
Copy link
Member

@sakshamjn no. The purpose of hub is to make official pretrained weights available in an easy to access method.

@sakshamjn
Copy link

@glenn-jocher Thanks.

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@zhou-huan-1
Copy link

Hey
If I use Pytorch hub can I use my custom weights

@glenn-jocher
Copy link
Member

Hey @zhou-huan-1! Yes, you can use your custom weights with PyTorch Hub by specifying the path parameter when loading the model. Here's a quick example:

import torch

# Load your custom model weights
model = torch.hub.load('ultralytics/yolov5', 'custom', path='path/to/your/custom_weights.pt')

This will allow you to use your trained weights for inference. Happy coding! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Stale
Projects
None yet
Development

No branches or pull requests

4 participants