cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the custom Id of machine learning scenario in SAP AI Core ?

yashsap1
Participant
0 Kudos
422

Hi all,

I am following blog in step 4

https://developers.sap.com/tutorials/cv-package-aicore-train-object-detection.html#d0ab0dd4-6f20-452...

to build machine learning model in between ,I require ID for this code snippet.

workflow_config = { "name": "sap-cv-package-tutorial-obj-detection-train", "image": "<YOUR_DOCKER_USERNAME>/sap-cv-package-object-detection-train:0.0.1", "labels": { "scenarios.ai.sap.com/id": "sap-cv-package-tutorial", "ai.sap.com/version": "0.0.1" }, "annotations": { "scenarios.ai.sap.com/name": "SAP CV Package Tutorial", }, "imagePullSecret": "<YOUR_DOCKER_SECRET>", "objectStoreSecret": "default-object-store-secret" }

Thanks please help

Accepted Solutions (0)

Answers (3)

Answers (3)

vishalakshmi
Contributor
0 Kudos

workflow.create_image(workflow_config, silent=True) not false, check the code once again

Also, you can generate Docker images using command (bash)

aicore-content create-image -p <CONTENT_PACKAGE> -w <WORKFLOW> <WORKFLOW_CONFIG.YAML>

Thanks,

Lakshmi.

vishalakshmi
Contributor
0 Kudos

Hello Yash,

1. Are you trying to push the Docker image to the Docker hub? in Step 4?

2. Do you want to know the Docker name?

check https://hub.docker.com/, give user name and password the same user name is used as Docker Name.

Thanks,

Lakshmi.

yashsap1
Participant
0 Kudos

Hi Lakshmi ,

I am getting error in step 4

vishalakshmi
Contributor
0 Kudos

Hello Yash,

1. Are you trying to push the Docker image to the Docker hub? in Step 4?

2. Do you want to know the Docker name?

check https://hub.docker.com/, give user name and password the same user name is used as Docker Name.

Thanks,

Lakshmi.