amazon-sagemaker-local-mode
amazon-sagemaker-local-mode copied to clipboard
yolov5 sagemaker deploy
1.Hello, in amazon-sagemaker-local-mode/pytorch_yolov5_local_model_inference/, the local deploy will have this error, ImportError: 'docker-compose' is not installed. Local Mode features will not work without docker-compose. For more information on how to install 'docker-compose', please, see https://docs.docker.com/compose/install/, 2.I took the recommended solution, but it didn't work (maybe I made a mistake), 3.I use curl -SL https: //github.com/docker/compose/releases/download/v2.17.2/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose, 4.the error is % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 Warning: Failed to open the file /usr/local/bin/docker-compose: Permission Warning: denied 0 51.9M 0 1406 0 0 1780 0 8:29:52 --:--:-- 8:29:52 1780 curl: (23) Failure writing output to destination
It looks like you have a Permission denied
issue with docker-compose
. Please try to run it on a simple example: https://docs.docker.com/compose/gettingstarted/
Thanks, I keep getting this error in this paragraph predictions = predictor.predict("https://ultralytics.com/images/zidane.jpg")
1.the error is botocore.errorfactory.ModelError: An error occurred (ModelError) when calling the InvokeEndpoint operation: Received server error (0) from primary with message "Your invocation timed out while waiting for a response from container primary. Review the latency metrics for each container in Amazon CloudWatch, resolve the issue, and try again."
my deploy is predictor = model.deploy(initial_instance_count=1, instance_type='ml.m5.xlarge', endpoint_name=endpoint_name)
- Sorry for my problem, I specified not a local but an instance,
- I installed docker-compose and added executable permissions,
- docker-compose version
- Docker Compose version v2.17.2,
- but the following error occurs during deployment:
File "/home/sagemaker-user/pytorch_yolov5_local_model_inference.py", line 63, in
This is an issue with Docker installation. Try to run a simple docker-compose
command with a sample Docker image before running yolov5 code sample.