# How can I do epochs on Colab without Valid and Test files?

**URL:** <https://discuss.roboflow.com/t/how-can-i-do-epochs-on-colab-without-valid-and-test-files/3945>\
**Category:** 🤝  Community Help\
**Created:** [December 12, 2023, 9:36am UTC](https://discuss.roboflow.com/t/how-can-i-do-epochs-on-colab-without-valid-and-test-files/3945 "2023-12-12T09:36:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bahadir\_Bahadir](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/bahadir_bahadir/32/2688_2.png) [@Bahadir\_Bahadir](https://discuss.roboflow.com/u/Bahadir_Bahadir)\
**Post date:** [December 12, 2023, 9:36am UTC](https://discuss.roboflow.com/t/how-can-i-do-epochs-on-colab-without-valid-and-test-files/3945/1 "2023-12-12T09:36:57Z")

</div>

![valid ve trainsiz nasıl eğiteceğiz](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/3/381aa32d6c3b323db28dbceedf7ca9d41bd5f155.png)

→

I am using a dataset which is labeled by a user as public on Roboflow Universe. I would want a create a best.pt file without using valid and test files. I am taking error on Colab because this dataset was used as just train. My purpose is already same. I don’t need the test and train files. But I can not do epochs. How can I fix this problem?

Object Detection  
Colab Custom Model Training YOLOV8

> **[wind-turbine Object Detection Dataset by Mark Warren](https://universe.roboflow.com/mark-warren/wind-turbine-qrvp0)**
>
> 1699 open source obstacles images. wind-turbine dataset by Mark Warren

---

<div class="post-metadata">

**Author:** ![Lenny](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/lenny/32/2383_2.png) [@Lenny](https://discuss.roboflow.com/u/Lenny)\
**Post date:** [December 12, 2023, 9:38am UTC](https://discuss.roboflow.com/t/how-can-i-do-epochs-on-colab-without-valid-and-test-files/3945/2 "2023-12-12T09:38:46Z")

</div>

Based on the information provided in the extracts, you can train a YOLOv8 model on a custom dataset using Roboflow. However, it’s important to note that the standard practice in machine learning is to have a training set, a validation set, and a test set. The validation set is used during the model training process to check the performance of the model, while the test set is used after the model has been trained to evaluate how well it generalizes to unseen data.

If you only have a training set and no validation or test set, you might run into issues during the training process. However, if you still want to proceed, you can follow these steps:

1. Create a Roboflow account and create a new project in the Roboflow dashboard. Choose “Object Detection” as the project type ([source](https://blog.roboflow.com/how-to-train-yolov8-on-a-custom-dataset/#create-a-project)).

2. Add data to your project. You can do this via API or through the web interface. If you don’t have a dataset, you can grab one from Roboflow Universe ([source](https://blog.roboflow.com/how-to-train-yolov8-on-a-custom-dataset/#create-a-project)).

3. Label your images using Roboflow Annotate ([source](https://blog.roboflow.com/how-to-train-yolov8-on-a-custom-dataset/#create-a-project)).

4. Generate a new version of your dataset ([source](https://blog.roboflow.com/how-to-train-yolov8-on-a-custom-dataset/#create-a-project)).

5. Use the provided code snippet to download your dataset in the YOLOv8 format ([source](https://blog.roboflow.com/how-to-train-yolov8-on-a-custom-dataset/#create-a-project)).

6. Train your YOLOv8 model using the command provided in the extract. You can adjust the number of epochs and other parameters as needed ([source](https://blog.roboflow.com/how-to-train-yolov8-on-a-custom-dataset/#create-a-project)).

Here is the code snippet for training:

```python
yolo task=detect \
mode=train \
model=yolov8s.pt \
data={dataset.location}/data.yaml \
epochs=100 \
imgsz=640

```

Please note that this process might not work as expected since you’re not using a validation or test set. It’s highly recommended to split your dataset into training, validation, and test sets for the best results.

* * *

> Hi! I’m Roboflow’s AI powered bot. This is an automated response powered using AI with knowledge from our docs, blog, and forum. If this solves your issue, please mark it as the solution using the checkbox icon. **If this doesn’t solve your issue, please follow up with what you’ve tried/why, and the community will continue to chime in as usual.**

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [January 2, 2024, 9:39am UTC](https://discuss.roboflow.com/t/how-can-i-do-epochs-on-colab-without-valid-and-test-files/3945/3 "2024-01-02T09:39:30Z")

</div>

Closed on January 2, 2024, 9:39am UTC

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
