# Why custom weight upload for autu-labelling does not work in MS Azure

**URL:** <https://discuss.roboflow.com/t/why-custom-weight-upload-for-autu-labelling-does-not-work-in-ms-azure/7405>\
**Category:** 🤝  Community Help\
**Tags:** bugs\
**Created:** [October 23, 2024, 2:44pm UTC](https://discuss.roboflow.com/t/why-custom-weight-upload-for-autu-labelling-does-not-work-in-ms-azure/7405 "2024-10-23T14:44:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loggie](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/loggie/32/5721_2.png) [@Loggie](https://discuss.roboflow.com/u/Loggie)\
**Post date:** [October 23, 2024, 2:44pm UTC](https://discuss.roboflow.com/t/why-custom-weight-upload-for-autu-labelling-does-not-work-in-ms-azure/7405/1 "2024-10-23T14:44:12Z")

</div>

\*\*tried to upload custom weight for auto-labelling via API in MS Azure following Roboflow’s instruction ([Upload Custom Model Weights | Roboflow Docs](https://docs.roboflow.com/deploy/upload-custom-weights)). \*\*

**I run the script below in Python SDK of MS Azure.**

* * *

import roboflow

rf = roboflow.Roboflow(api\_key=“\*\*\*\*”)

project = rf.workspace().project(“sam\_yolo11\_feb2024\_right\_1frame”)

##can specify weights\_filename, default is “weights/best.pt”

version = project.version(1)

##print(version)

## version.deploy(“yolov11”, “training21/weights”, “best.pt”)

**But the terminal reads below.**

* * *

## (azureml\_py38) azureuser@gpuv100:~/cloudfiles/code/Users/jimin.hwang/sam\_yolo11\_feb2024\_right\_1frame-1$ python 0208\_right\_Auto-labelling.py loading Roboflow workspace… loading Roboflow project… Traceback (most recent call last): File “/mnt/batch/tasks/shared/LS\_root/mounts/clusters/gpuv100/code/Users/jimin.hwang/sam\_yolo11\_feb2024\_right\_1frame-1/0208\_right\_Auto-labelling.py”, line 11, in version.deploy(“yolov11-seg”, “training21”) File “/anaconda/envs/azureml\_py38/lib/python3.9/site-packages/roboflow/core/version.py”, line 568, in deploy if isinstance(model[“model”].names, list): AttributeError: ‘NoneType’ object has no attribute ‘names’

Following AI Help in Roboflow’s document, I tried to modify scripts and make file path right for a lot of hours. But none of them works so far.

Can you give me a help to fix this?

- **Project Type:** : Yolo v11 Instance Segmentation
- **Operating System & Browser:** : Windows & Chrome
- **Project Universe Link or Workspace/Project ID:** : Private

---

<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:** [November 13, 2024, 2:45pm UTC](https://discuss.roboflow.com/t/why-custom-weight-upload-for-autu-labelling-does-not-work-in-ms-azure/7405/2 "2024-11-13T14:45:08Z")

</div>

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