-
Hi There, I can't fully comprehend how to train my custom data with yolov8 weights and sahi, is it feasible ? |
Beta Was this translation helpful? Give feedback.
Answered by
fcakyon
Jul 10, 2024
Replies: 1 comment
-
Hello @Mu-Magdy, You can slice a COCO formatted dataset as: from sahi.slicing import slice_coco
coco_dict, coco_path = slice_coco(
coco_annotation_file_path=coco_annotation_file_path,
image_dir=image_dir,
slice_height=256,
slice_width=256,
overlap_height_ratio=0.2,
overlap_width_ratio=0.2,
) then use this dataset during training. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mu-Magdy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @Mu-Magdy,
You can slice a COCO formatted dataset as:
then use this dataset during training.