Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
horsemanjackyliu opened this issue Oct 24, 2024 · 1 comment
Open
Assignees

Comments

@horsemanjackyliu
Copy link

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
Copy link
Contributor

jmmargo commented Oct 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants