# Roboflow ML \> YOLOv7?

**URL:** <https://discuss.roboflow.com/t/roboflow-ml-yolov7/2616>\
**Category:** 🤝  Community Help\
**Created:** [July 10, 2023, 7:09am UTC](https://discuss.roboflow.com/t/roboflow-ml-yolov7/2616 "2023-07-10T07:09:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jam467](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/jam467/32/2335_2.png) [@Jam467](https://discuss.roboflow.com/u/Jam467)\
**Post date:** [July 10, 2023, 7:09am UTC](https://discuss.roboflow.com/t/roboflow-ml-yolov7/2616/1 "2023-07-10T07:09:44Z")

</div>

I have a dataset of only 5 images that each have 60 labels on them. 30 of each class.  
Roboflow created a reasonably accurate model from this dataset but YOLOv7 did not at all.  
I was wondering why this might be?

also

As i have 150 labels of each class is this an ok dataset to start or is it more important to have more images?

Cheers,  
James

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [July 11, 2023, 9:56pm UTC](https://discuss.roboflow.com/t/roboflow-ml-yolov7/2616/2 "2023-07-11T21:56:04Z")

</div>

Hi @Jam467

Do you have a Universe link or a workspace/project ID to refer to?

Generally, it’s hard to give advice on what amount of data is enough to train a good model. It can involve some amount of trial and error, and it depends on other factors as well such as augmentations, training from checkpoints, and model type.

---

<div class="post-metadata">

**Author:** ![Jam467](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/jam467/32/2335_2.png) [@Jam467](https://discuss.roboflow.com/u/Jam467)\
**Post date:** [July 12, 2023, 3:31am UTC](https://discuss.roboflow.com/t/roboflow-ml-yolov7/2616/3 "2023-07-12T03:31:14Z")

</div>

The project is

> **[Oyster MTS Object Detection Dataset and Pre-Trained Model by James Dunlop](https://universe.roboflow.com/james-dunlop-dtssw/oyster-mts)**
>
> 5 open source oysters images plus a pre-trained Oyster MTS model and API. Created by James Dunlop

I guess my question is:  
Is 30 labels for 5 images equivalent to 150 images with one label per image?

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [July 12, 2023, 11:24am UTC](https://discuss.roboflow.com/t/roboflow-ml-yolov7/2616/4 "2023-07-12T11:24:13Z")

</div>

Hi @Jam467

Not necessarily. There’s no specific rule as to `x` many annotations or `x` many images will do as well as something else. Machine learning models learn on patterns. If the pattern is easy for the model to recognize, it might require less training data than some other projects.

It’s best not to focus on the pure count of labels/images. Rather, try training a model with a certain amount in a dataset, then evaluate the performance and see where you need more data. Roboflow has tools to make that process easier. Before you train your model, you can use [Health Check](https://docs.roboflow.com/datasets/dataset-health-check) to see where your project could benefit from more data.

 ![Screenshot 2023-07-12 at 4.19.25 AM](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/c/cfaf6aaf829d3b1d3566c0dd733b6d779efb7382.png)

After you train your model. you can look in the details for your trained model too:

 ![Screenshot 2023-07-12 at 4.21.08 AM](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/2/278552b9a1a98605bfcba71b6ce7adb2bd643f5d.png)
