Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from azureml.core.image import ContainerImage
- image_config = ContainerImage.image_configuration(execution_script = "score.py",
- runtime = "python",
- conda_file = "myenv.yml",
- description = "A container image to host YOLO model",
- tags = {"demo": "onnx"})
- image = ContainerImage.create(name = "yoloimage",
- # this is the model object
- models = [model],
- image_config = image_config,
- workspace = ws)
- image.wait_for_creation(show_output = True)
Add Comment
Please, Sign In to add comment