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

**tried to upload custom weight for auto-labelling via API in MS Azure following Roboflow’s instruction (Upload Custom Weights | Roboflow Docs). **

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

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