# Unable to upload model

**URL:** <https://discuss.roboflow.com/t/unable-to-upload-model/1813>\
**Category:** 🤝  Community Help\
**Created:** [March 31, 2023, 7:15am UTC](https://discuss.roboflow.com/t/unable-to-upload-model/1813 "2023-03-31T07:15:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay\_Fischer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/jay_fischer/32/1557_2.png) [@Jay\_Fischer](https://discuss.roboflow.com/u/Jay_Fischer)\
**Post date:** [March 31, 2023, 7:15am UTC](https://discuss.roboflow.com/t/unable-to-upload-model/1813/1 "2023-03-31T07:15:44Z")

</div>

I’ve been trying to upload a model to my project from a local Jupiter notebook. It kept coming back with an error saying that the model failed to upload. Took a look at forum and saw that images must be square. So I created a version with 640X640 dataset and added the imgsz=640 argument. Yet still, it will not upload and keeps telling me the upload failed.

---

<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 31, 2023, 5:41pm UTC](https://discuss.roboflow.com/t/unable-to-upload-model/1813/2 "2023-03-31T17:41:54Z")

</div>

HI @Jay_Fischer - can you try this process:

1. Generate a new version of the dataset

2. To export the dataset, and begin model training, click the appropriate model architecture here:  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/d/d5176847079e0af0379cf089b74c7ca60a0d55e3.png)

3. Select “Get Snippet”  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/b/b21a5112f79a5e1bfd0c75e3d8242721f439393b.png)

4. Click the small “copy” icon:  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/3/324ec4980b14dc0f6083bed77f15630e364be5d8.png)

5. Open the appropriate notebook from the [`notebooks` Repository](https://github.com/roboflow/notebooks), and “Save a Copy in Drive”

6. Follow the training process outlined in the notebook, and be sure you have explicitly set the `img` or `imgsz` parameter in the training code, [based on how you’ve resized your images](https://blog.roboflow.com/you-might-be-resizing-your-images-incorrectly/) – Preprocessing, Resize [Documentation](https://docs.roboflow.com/image-transformations/image-preprocessing#resize):  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/3/324ec4980b14dc0f6083bed77f15630e364be5d8.png)  

- Example for YOLOv5 object detection  

- Example for YOLOv7 Instance Segmentation  

- Example for YOLOv8 object detection  

1. Once the training has completed, proceed to the `version.deploy()` step, where you will run the function to upload your model weights

* * *

If you see an error again, after going through this process, please reply to me here.

---

<div class="post-metadata">

**Author:** ![Jay\_Fischer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/jay_fischer/32/1557_2.png) [@Jay\_Fischer](https://discuss.roboflow.com/u/Jay_Fischer)\
**Post date:** [April 1, 2023, 2:27am UTC](https://discuss.roboflow.com/t/unable-to-upload-model/1813/3 "2023-04-01T02:27:16Z")

</div>

@Mohamed redid the model and it failed again. Project is [FTC GEN 8872 CLASSIFIED Object Detection Dataset (v9, Please Work) by Test](https://universe.roboflow.com/test-deipp/ftc-gen-8872-classified/dataset/9)

 ![Screenshot from 2023-03-31 19-11-22](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/e/eab2811f5f8ccdd27dc47398cfce8242be3373c3.png)

---

<div class="post-metadata">

**Author:** ![Jay\_Fischer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/jay_fischer/32/1557_2.png) [@Jay\_Fischer](https://discuss.roboflow.com/u/Jay_Fischer)\
**Post date:** [April 1, 2023, 2:27am UTC](https://discuss.roboflow.com/t/unable-to-upload-model/1813/4 "2023-04-01T02:27:48Z")

</div>

![Screenshot from 2023-03-31 19-11-33](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/c/c3e7ce40a6d07855898437b2fdf69009453eb959.png)

---

<div class="post-metadata">

**Author:** ![Jay\_Fischer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/jay_fischer/32/1557_2.png) [@Jay\_Fischer](https://discuss.roboflow.com/u/Jay_Fischer)\
**Post date:** [April 1, 2023, 2:28am UTC](https://discuss.roboflow.com/t/unable-to-upload-model/1813/5 "2023-04-01T02:28:26Z")

</div>

![Screenshot from 2023-03-31 19-25-38](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/8/81872aafe06d5fb2b0a96ef58ea34f9d0172b5c0.png)
