# Problem face when using Train/Test Split

**URL:** <https://discuss.roboflow.com/t/problem-face-when-using-train-test-split/1636>\
**Category:** 🤝  Community Help\
**Tags:** split-after-upload, bugs\
**Created:** [March 8, 2023, 3:57am UTC](https://discuss.roboflow.com/t/problem-face-when-using-train-test-split/1636 "2023-03-08T03:57:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lik\_Seng\_Fong](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/lik_seng_fong/32/1365_2.png) [@Lik\_Seng\_Fong](https://discuss.roboflow.com/u/Lik_Seng_Fong)\
**Post date:** [March 8, 2023, 3:57am UTC](https://discuss.roboflow.com/t/problem-face-when-using-train-test-split/1636/1 "2023-03-08T03:57:32Z")

</div>

1. After I Rebalance the dataset and save it, it do not make any changes base on my allocation of dataset. For example, I want to allocate 600 images to my train set, 50 images to my validation set, and 50 images to my test set by using the rebalance feature. But, after I clicked save, there is nothing changes to my allocation of dataset.

2. After I export into the yolo pytorch format, the validation set and test set of my dataset is changes. For example, my validation set should be 100 images, and test set should be 100 images, but after I exported it, the validation set become 30 images, and test set become 45 images, it do not tally with the preset number of validation and test set of my data.

Appreciate it!

---

<div class="post-metadata">

**Author:** ![SkalskiP](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/skalskip/32/956_2.png) [@SkalskiP](https://discuss.roboflow.com/u/SkalskiP)\
**Post date:** [March 8, 2023, 8:38am UTC](https://discuss.roboflow.com/t/problem-face-when-using-train-test-split/1636/2 "2023-03-08T08:38:51Z")

</div>

Hi @Lik_Seng_Fong 👋 ! Could you send me the link to your project?

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [March 8, 2023, 9:02am UTC](https://discuss.roboflow.com/t/problem-face-when-using-train-test-split/1636/3 "2023-03-08T09:02:23Z")

</div>

@Lik_Seng_Fong - for some datasets, if there are larger image sizes or a lot of images, or if the process queue is backed up, it can take a moment to load the train/valid/test split you just reset

- it is best to give it about 30 seconds to fully refresh the splits if there are more than 500 images you are rebalancing

@SkalskiP - no need, I ran a recalculation on it

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [March 8, 2023, 9:08am UTC](https://discuss.roboflow.com/t/problem-face-when-using-train-test-split/1636/4 "2023-03-08T09:08:02Z")

</div>

@Lik_Seng_Fong - I also took a look at your dataset. You’ll want to delete all of the labels that say `Good` from the dataset. You will keep the images, but just delete the labels.

You can do this manually - or use the Modify Classes feature to drop the labels for `Good` (un-checked box) entirely: [https://help.roboflow.com/modifying-classes](https://help.roboflow.com/modifying-classes)

You will receive better training results this way.

---

<div class="post-metadata">

**Author:** ![Lik\_Seng\_Fong](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/lik_seng_fong/32/1365_2.png) [@Lik\_Seng\_Fong](https://discuss.roboflow.com/u/Lik_Seng_Fong)\
**Post date:** [March 10, 2023, 4:05pm UTC](https://discuss.roboflow.com/t/problem-face-when-using-train-test-split/1636/5 "2023-03-10T16:05:39Z")

</div>

@Mohamed - Thank You So Much Bro, I think is my dataset more than 500 images, so it will have lag issues during the rebalancing. For removing the ‘Good’ label, actually I decided to create a new project on object detection, however, if I do not make any label on the images, Roboflow will not allow me to put these ‘images with no annotation’ to the dataset. How can I solve it.

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [March 10, 2023, 6:20pm UTC](https://discuss.roboflow.com/t/problem-face-when-using-train-test-split/1636/6 "2023-03-10T18:20:58Z")

</div>

@Lik_Seng_Fong - no problem at all, you’re very welcome!

To add images without labels to the dataset, label them as `Null` images: [The Difference Between Missing and Null Annotations](https://blog.roboflow.com/missing-and-null-image-annotations/)

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/1/151c4867070b7fd13b9bfe7d4180e26835e83672.png)
