-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 insert a custom backbone in YOLOv8 ? #12912
Comments
👋 Hello @arnobjohn, thank you for your interest in Ultralytics YOLOv8 🚀! We recommend a visit to the Docs for new users where you can find many Python and CLI usage examples and where many of the most common questions may already be answered. If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it. If this is a custom training ❓ Question, please provide as much information as possible, including dataset image examples and training logs, and verify you are following our Tips for Best Training Results. Join the vibrant Ultralytics Discord 🎧 community for real-time conversations and collaborations. This platform offers a perfect space to inquire, showcase your work, and connect with fellow Ultralytics users. InstallPip install the pip install ultralytics EnvironmentsYOLOv8 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all Ultralytics CI tests are currently passing. CI tests verify correct operation of all YOLOv8 Modes and Tasks on macOS, Windows, and Ubuntu every 24 hours and on every commit. |
Hello! To integrate your custom backbone into YOLOv8, you'll need to modify the model configuration file (YAML file) to point to your new backbone. Here’s a brief guide on how to do it:
Make sure your custom backbone matches the input and output specifications expected by YOLOv8. Good luck with your model training! 🚀 |
Thanks for your reply @glenn-jocher. Actually I am trying to use resnet_fpn in the YOLOv8 model. A guide on how to do so will be very much helpful. |
Hello! To integrate the # Example YAML configuration
backbone: path/to/resnet_fpn.py # Ensure this path is correct Make sure that yolo train data=your_dataset.yaml model=your_custom_model.yaml This should get your custom backbone up and running with YOLOv8! 🚀 |
Thanks for your reply @glenn-jocher. I have a following question to ask. I am trying to implement PVTv2 in place of c2f in backbone. Will it be possible? If so can you kindly mention the steps. TIA |
Hello! Yes, integrating PVTv2 as a backbone in YOLOv8 is possible. Here's a brief outline of the steps you'd follow:
Make sure to test the integration thoroughly to catch any issues with dimensions or performance early in your development cycle. Best of luck with your model enhancement! 🚀 |
Search before asking
Question
Greetings.
I am trying to implement a backbone network which is a combination of ResNet and FPN. I am trying to use it to train a custom dataset but not sure how to do so. The modified backbone is in python file as "resnet_fpn.py".
Additional
No response
The text was updated successfully, but these errors were encountered: