-
Notifications
You must be signed in to change notification settings - Fork 20
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 use this with a datasets? #28
Comments
This technology is useful if your datasets contain a large number of objects in each frame. In other cases, you can use the standard YOLO without the patch mode. If your goal is to run the technology on a pre-trained model on COCO, you can simply use the automatic patching technology, which will help you determine the optimal parameter values for patches to detect a large number of objects in images (see the section "How to Automatically Determine Optimal Parameters for Patches (Crops)" in the README for instructions on how to work with this). |
If you want to train the network on your own datasets and then run inference with the patch-based approach, it is recommended to initially slice your dataset into patches of a fixed size, where each patch contains a maximum of 0 to 30 objects. You should then train the YOLO model on this dataset. After that, you can use this model with the patch-based approach, specifying the same slicing parameters that you used when creating the dataset (i.e., the same values for |
@v1ns0n0 Good afternoon. Could you tell me if you managed to figure it out? Did I answer your question? |
import cv2 Load the image Calculate the optimal crop size and overlap for an image |
This technology allows you to increase the number of detections made by the YOLO network, so it makes sense that you first need to train the YOLO network on your dataset. You can learn how to do this on this website: https://docs.ultralytics.com/modes/train/. |
@v1ns0n0 If you want to apply "patching" (or tiling) to a YOLO dataset to train / validate / test a YOLO model (ultralytics), checkout this other repository (it's mine) https://github.com/Jordan-Pierce/yolo-tiling Once you have a YOLO dataset, you can use my library to tile it (the train, valid, and test data) intoa tiled version. Use this tiled version to train your model. Then, after you trained your model, use this library (YOLO-Patch-Based-Inference), which tiles images for models for during inference time. |
@Jordan-Pierce Excellent project. I was just thinking about doing something like this someday. Thank you for sharing and for letting me know that there’s already a ready-to-use tool for dataset slicing. If people are interested in how to prepare datasets, I will definitely recommend your library for this purpose. |
hello, how to use this with a datasets?
The text was updated successfully, but these errors were encountered: