Comments (4)
π Hello @billalkuet07, 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.
Install
Pip install the ultralytics
package including all requirements in a Python>=3.8 environment with PyTorch>=1.8.
pip install ultralytics
Environments
YOLOv8 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
- Notebooks with free GPU:
- Google Cloud Deep Learning VM. See GCP Quickstart Guide
- Amazon Deep Learning AMI. See AWS Quickstart Guide
- Docker Image. See Docker Quickstart Guide
Status
If 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.
from ultralytics.
Hello! It's great to hear about your plans to experiment with enhancing YOLOv8 by adding an external feature input. For incorporating additional inputs into the model's architecture and tuning it for custom data, both options you've considered have their merits. However, the second option might give you a more straightforward path by leveraging the existing infrastructure of YOLOv8 for data handling, training, and testing workflows.
Here's a brief guide on how you might proceed with option 2:
- Model Architecture Modification: You'll likely need to adjust the architecture to concatenate the external features. Look into the
.yaml
file defining the model structure, possibly modifying it to introduce your changes at specified layers. - Custom Dataset Loader: Since you have additional numerical data alongside the YOLO formatted annotations, you would need to modify the dataset loading mechanism. Extending
datasets.py
to incorporate the loading and preprocessing of your additional inputs will be required. - Finetuning: Utilize the pre-trained weights for YOLOv8 and commence training with your custom dataset ensuring your modified data loader is effectively used. The training script, possibly
train.py
, may need minimal adjustments here, mostly to ensure it properly calls your modified dataset loader.
Here's a very basic example snippet illustrating how you could potentially modify the dataset loader to include your external features:
# Pseudo-code for custom data loading with external features
class CustomDataset(Dataset):
def __init__(self, path, img_size=640, augment=False, ...):
self.path = path
...
# Load your additional data here
self.external_features = load_external_features(path)
def __getitem__(self, index):
...
# Normal image loading
img, labels = load_image_and_labels()
# Example to get the corresponding external features for the image
ext_features = self.external_features[index]
return img, labels, ext_features
This just scratches the surface, but it should give you a starting point. Modifications in models/common.py
might also become necessary, depending on how you plan to integrate the external features into the YOLOv8 architecture.
I recommend deeply studying the specific files (models/yolo.py
, utils/datasets.py
, etc.) to better understand where and how to implement your changes efficiently.
Kudos on taking on such a project, and we're excited to see what enhancements you can bring to YOLOv8! Remember, experimenting is keyβdon't hesitate to test different approaches to find what works best for your needs. Good luck! π
from ultralytics.
Thanks for your prompt response. This is very helpful.
from ultralytics.
You're welcome! I'm glad to hear that you found the information useful. If you have any more questions or need further clarification as you progress with your project, don't hesitate to reach out. Happy coding! π
from ultralytics.
Related Issues (20)
- Why losses suddenly drop? HOT 2
- How to hide warning log "potential out-of-memory errors..." HOT 6
- setting the value of pixel_per_meter in distance_calculation HOT 2
- Object detection scores decrease inconsistently with Sort tracking algorithm HOT 5
- embedding projector HOT 6
- Modification HOT 1
- Training strategy on the Open Image V7 dataset HOT 1
- How to disable request to www.google-analytics.com? HOT 10
- PGI Implementation HOT 3
- Getting yolov8-pose onnx model output 1 x 56 x 8400 ? What's the possible fix in Javascript? HOT 1
- Yolo v8 what does deterministic parameter do? HOT 2
- UnsupportedModelRegistryStoreURIException: Model registry functionality is unavailable; got unsupported URI HOT 6
- How to use focal loss function in yolov8? HOT 5
- Cold start Slow inference HOT 2
- Problems in yolov8 training HOT 1
- RTSP path is changed from the defined url when inference HOT 4
- Error Implementing model training using YOLOv8 on Android HOT 3
- <A bug in Data Augmentation>YOLOv8-OBB HOT 10
- Error reported when setting model single channel ch: 1 HOT 8
- No labels found HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ultralytics.