sap-tutorials / Tutorials

Tutorials on sap.com
https://developers.sap.com/tutorial-navigator.html
Creative Commons Attribution 4.0 International
738 stars 777 forks source link

Use Computer Vision Package to Train AI Model for Meter Reading #23797

Open horsemanjackyliu opened 4 weeks ago

horsemanjackyliu commented 4 weeks ago

Tutorials: https://developers.sap.com/tutorials/cv-package-aicore-train-object-detection.html

Write here how you think we can improve the tutorial ...

When I run the command: aicore-content list, the shell shows "command not found: aicore-content"

image

when I run workflow.create_image(workflow_config, silent=False), it ends with the following error:

`#1 [internal] load .dockerignore

1 transferring context: 2B done

1 DONE 0.0s

2 [internal] load build definition from DockerfileGPU

2 transferring dockerfile: 1.22kB 0.0s done

2 DONE 0.0s

3 [internal] load metadata for docker.io/pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime

3 ERROR: failed to do request: Head "https://registry-1.docker.io/v2/pytorch/pytorch/manifests/1.10.0-cuda11.3-cudnn8-runtime": EOF


[internal] load metadata for docker.io/pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime:

DockerfileGPU:1

1 | >>> FROM pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime 2 | ARG pkg_version= 3 | ENV pkg_version=$pkg_version

ERROR: failed to solve: pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime: failed to do request: Head "https://registry-1.docker.io/v2/pytorch/pytorch/manifests/1.10.0-cuda11.3-cudnn8-runtime": EOF

CalledProcessError Traceback (most recent call last) Cell In[23], line 1 ----> 1 workflow.create_image(workflow_config, silent=False)

File ~/sap_cv_env/lib/python3.9/site-packages/ai_core_sdk/content/workflow.py:248, in Workflow.create_image(self, workflow_config, docker_type, return_cmd, silent) 246 if return_cmd: 247 return cmd --> 248 check_output(cmd, stderr=PIPE if silent else None)

File /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py:424, in check_output(timeout, *popenargs, *kwargs) 421 empty = b'' 422 kwargs['input'] = empty --> 424 return run(popenargs, stdout=PIPE, timeout=timeout, check=True, 425 **kwargs).stdout

File /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py:528, in run(input, capture_output, timeout, check, *popenargs, **kwargs) 526 retcode = process.poll() 527 if check and retcode: --> 528 raise CalledProcessError(retcode, process.args, 529 output=stdout, stderr=stderr) 530 return CompletedProcess(process.args, retcode, stdout, stderr)

CalledProcessError: Command '['docker', 'build', '--platform=linux/amd64', '--tag=jackyliu02/sap-cv-package-object-detection-train:0.0.1', '--build-arg', 'pkg_version=1.1.7', '-f/Users/I501000/sap_cv_env/lib/python3.9/site-packages/sap_computer_vision/pipelines/model_serving/DockerfileGPU', '/Users/I501000/sap_cv_env/lib/python3.9/site-packages/sap_computer_vision/pipelines/model_serving']' returned non-zero exit status 1.`

jmmargo commented 4 weeks ago

@kannankumar can you please reply to this user's feedback. Thank you.