microsoft / computervision-recipes

Best Practices, code samples, and documentation for Computer Vision.
MIT License
9.34k stars 1.16k forks source link

[BUG] deployment on Container Instances fails (classification model) #647

Open SaraOlsson opened 3 years ago

SaraOlsson commented 3 years ago

Description

When running the example notebook [21_deployment_on_azure_container_instances.ipynb](https://github.com/microsoft/computervision-recipes/blob/master/scenarios/classification/21_deployment_on_azure_container_instances.ipynb) , we run into the error 'AciDeploymentFailed'. This happened to both me and another developer in her Azure enviroment.

Error message: "message": "Aci Deployment failed with exception: Error in entry script, RuntimeError(\"{} is a zip archive (did you mean to use torch.jit.load()?)\".format(f.name)), please run print(service.get_logs()) to get details."

In which platform does it happen?

How do we replicate the issue?

Expected behavior (i.e. solution)

The deployment of the service endpoint should pass successfully.