Skip to content

Going from yolov5 results to expected folder. #48

Closed Answered by laclouis5
topherbuckley asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @topherbuckley,

The from_yolo_v5 method is for parsing YOLOv5 annotations stored to disk in .txt files. The folder parameter refers to the directory containing such annotations while the image_folder refers to the directory containing the images corresponding to the annotations (could be the same as folder.

You should not use this method if you want to parse in-memory annotations / predictions such as ones of type yolov5.models.common.Detections. For this purpose I recommend using the BoundingBox.create method. Here is how you should proceed to build an AnnotationSet:

  • For each image, create a list of bounding boxes using BoundingBox.create.
  • Store the bounding boxes using an Annotation

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@topherbuckley
Comment options

@topherbuckley
Comment options

@laclouis5
Comment options

@topherbuckley
Comment options

Answer selected by topherbuckley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants