{"id":15903495,"url":"https://github.com/vfdev-5/pytorch_scripting_tests","last_synced_at":"2025-08-04T04:35:31.624Z","repository":{"id":149001607,"uuid":"162971902","full_name":"vfdev-5/pytorch_scripting_tests","owner":"vfdev-5","description":"Scripting basic example","archived":false,"fork":false,"pushed_at":"2018-12-24T09:06:39.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-01T00:02:49.709Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vfdev-5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-24T09:06:16.000Z","updated_at":"2018-12-24T09:06:40.000Z","dependencies_parsed_at":"2023-08-08T01:54:53.054Z","dependency_job_id":null,"html_url":"https://github.com/vfdev-5/pytorch_scripting_tests","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"1257360feac75174c3f60db3d1e90e7547251b6f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vfdev-5/pytorch_scripting_tests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfdev-5%2Fpytorch_scripting_tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfdev-5%2Fpytorch_scripting_tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfdev-5%2Fpytorch_scripting_tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfdev-5%2Fpytorch_scripting_tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vfdev-5","download_url":"https://codeload.github.com/vfdev-5/pytorch_scripting_tests/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfdev-5%2Fpytorch_scripting_tests/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268649798,"owners_count":24284194,"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-08-04T02:00:09.867Z","response_time":79,"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-06T12:02:12.367Z","updated_at":"2025-08-04T04:35:31.584Z","avatar_url":"https://github.com/vfdev-5.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Check pytorch scripting\n\n- Script pretrained resnet18 model\n- Save on disk\n- Create a docker image\n- Execute docker container with scripted model and predict on a test image\n\n## Create docker image\n\nUsing dev environment with pytorch 1.0, latest nighlty, run the following\n\n```\npython export_model.py\n```\nand then create docker image\n```\ndocker build -t pytorch_resnet18:latest .\n```\n\nNote: it is important to have same pytorch 1.0 nightly builds to avoid libraries incompatibility.\n \n## Execute docker image\n\n```\ndocker run --rm pytorch_resnet18:latest\n```\nthe output should be `162` which corresponds to `Beagle` (dog's breed on the image `dog-12.jpg`)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvfdev-5%2Fpytorch_scripting_tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvfdev-5%2Fpytorch_scripting_tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvfdev-5%2Fpytorch_scripting_tests/lists"}