{"id":15708053,"url":"https://github.com/robmarkcole/aws-lambda-pytorch-image-classification-example","last_synced_at":"2025-09-02T08:41:37.978Z","repository":{"id":38601612,"uuid":"385146484","full_name":"robmarkcole/aws-lambda-pytorch-image-classification-example","owner":"robmarkcole","description":"Example of implementing a pytorch image classifier service using AWS lambda","archived":false,"fork":false,"pushed_at":"2022-06-23T13:03:26.000Z","size":12845,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-28T01:13:39.321Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robmarkcole.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-12T06:27:59.000Z","updated_at":"2024-01-17T09:02:10.000Z","dependencies_parsed_at":"2022-07-30T06:37:54.597Z","dependency_job_id":null,"html_url":"https://github.com/robmarkcole/aws-lambda-pytorch-image-classification-example","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/robmarkcole/aws-lambda-pytorch-image-classification-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmarkcole%2Faws-lambda-pytorch-image-classification-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmarkcole%2Faws-lambda-pytorch-image-classification-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmarkcole%2Faws-lambda-pytorch-image-classification-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmarkcole%2Faws-lambda-pytorch-image-classification-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robmarkcole","download_url":"https://codeload.github.com/robmarkcole/aws-lambda-pytorch-image-classification-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmarkcole%2Faws-lambda-pytorch-image-classification-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273257524,"owners_count":25073530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T20:45:05.714Z","updated_at":"2025-09-02T08:41:37.937Z","avatar_url":"https://github.com/robmarkcole.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-lambda-pytorch-image-classification-example\nExample of implementing a pytorch image classifier service using AWS lambda. Cold start time can be 10-20 seconds. Subsequent inferences happen in approx 300-500 ms.\n\n```\ndocker build -t lambda-pytorch-example .\n\ndocker run -p 9000:8080 \\\n-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \\\n-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \\\naws-lambda-pytorch-image-classification-example:latest\n```\n\nTo connect to the shell of the running container, check the container name with `docker container ls` then `docker exec -it \u003ccontainer_name\u003e /bin/bash`. Run the `request.py` file to make a request.\n\n## CICD\nA github action is used to push the latest release to ECR, enter required credentials in repo secrets\n\n## References\n* https://github.com/gokavak/lambda-docker-image-pytorch-xgboost\n* https://github.com/aws-samples/aws-lambda-docker-serverless-inference/tree/main/pytorch-inference-docker-lambda\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobmarkcole%2Faws-lambda-pytorch-image-classification-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobmarkcole%2Faws-lambda-pytorch-image-classification-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobmarkcole%2Faws-lambda-pytorch-image-classification-example/lists"}