Guest User

Untitled

a guest
Oct 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. from azureml.core.image import ContainerImage
  2.  
  3. image_config = ContainerImage.image_configuration(execution_script = "score.py",
  4. runtime = "python",
  5. conda_file = "myenv.yml",
  6. description = "A container image to host YOLO model",
  7. tags = {"demo": "onnx"})
  8. image = ContainerImage.create(name = "yoloimage",
  9. # this is the model object
  10. models = [model],
  11. image_config = image_config,
  12. workspace = ws)
  13.  
  14. image.wait_for_creation(show_output = True)
Add Comment
Please, Sign In to add comment