**tried to upload custom weight for auto-labelling via API in MS Azure following Roboflowâs instruction (Upload Custom Model 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