我正在尝试使用新的 ML 服务 SDK 将映像部署到 Azure 容器实例中的 Web 服务。该Webservice.deploy_from_image方法失败并显示以下消息:
> Traceback (most recent call last): File
> "c:/Users/chrcam/git/amlIrisClassification/deploy_iris_to_aci.py",
> line 18, in <module>
> workspace = ws) File "C:\Users\chrcam\AppData\Local\Programs\Python\Python36\lib\site-packages\azureml\core\webservice\webservice.py",
> line 258, in deploy_from_image
> return deployment_config._webservice_type._deploy(workspace, name, image, deployment_config) File
> "C:\Users\chrcam\AppData\Local\Programs\Python\Python36\lib\site-packages\azureml\core\webservice\aci.py",
> line 121, in _deploy
> deployment_config.validate_image(image) File "C:\Users\chrcam\AppData\Local\Programs\Python\Python36\lib\site-packages\azureml\core\webservice\webservice.py",
> line 883, in validate_image
> if image.creation_state != 'Succeeded': AttributeError: 'str' object has no attribute 'creation_state'
Run Code Online (Sandbox Code Playgroud)
我从 SDK 的 1.68 版本开始,然后以相同的结果升级到 1.80。
模型和图像都在我的工作区中注册。
代码相当简单。任何反馈或方向都会有所帮助。
from …Run Code Online (Sandbox Code Playgroud)