# Loading Saved Model in Google Colab Using Yolov5

**URL:** <https://discuss.roboflow.com/t/loading-saved-model-in-google-colab-using-yolov5/675>\
**Category:** 🤝  Community Help\
**Created:** [July 11, 2022, 2:52am UTC](https://discuss.roboflow.com/t/loading-saved-model-in-google-colab-using-yolov5/675 "2022-07-11T02:52:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mo\_t1](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mo_t1/32/382_2.png) [@mo\_t1](https://discuss.roboflow.com/u/mo_t1)\
**Post date:** [July 11, 2022, 2:52am UTC](https://discuss.roboflow.com/t/loading-saved-model-in-google-colab-using-yolov5/675/1 "2022-07-11T02:52:37Z")

</div>

hi, I did train the custom\_data model in yolov5 using Google Colab Pro. And store the trained model using “Pickle” I need now to load it and work on it to detect the test images I suppose that should save me hours of training, How can i do that please

---

<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:** [July 12, 2022, 8:50pm UTC](https://discuss.roboflow.com/t/loading-saved-model-in-google-colab-using-yolov5/675/2 "2022-07-12T20:50:21Z")

</div>

Hi @mo_t1 - you’ll want to keep your model file as a `.pt` file. Here’s how to save and load model weights in Colab:

> **[How to Save and Load Model Weights in Google Colab](https://blog.roboflow.com/how-to-save-and-load-weights-in-google-colab/)**
>
> Google Colab is Google's hosted Jupyter Notebook product that provides a free compute environment, including GPU and TPU. Colab comes "batteries included" with many popular Python packages installed, making it a choice tool for easy model...

---

<div class="post-metadata">

**Author:** ![Baha\_Dursun](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/baha_dursun/32/40_2.png) [@Baha\_Dursun](https://discuss.roboflow.com/u/Baha_Dursun)\
**Post date:** [July 17, 2022, 9:35am UTC](https://discuss.roboflow.com/t/loading-saved-model-in-google-colab-using-yolov5/675/3 "2022-07-17T09:35:23Z")

</div>

Hi explore this one and u’ll find an answer. Have a nice day! after take checkpoint u can continue from that checkpoint. And its saves to your cloud by using (MyDrive instead of Gdrive)

> <https://github.com/ultralytics/yolov5/issues/6891>
>
> So we have to train with 18k images with 100 epoch, it takes 5 hours to complete… atleast 10 epoch. When we try to --resume the best.pt for the next one (in another google colab, because of the limit) it says that there is no checkpoint? Can u please help u with this? Thank you
