{"id":20751010,"url":"https://github.com/vaaaaanquish/tch-rs-pretrain-example-docker","last_synced_at":"2025-04-28T12:54:48.518Z","repository":{"id":113485765,"uuid":"393753156","full_name":"vaaaaanquish/tch-rs-pretrain-example-docker","owner":"vaaaaanquish","description":"Docker for PyTorch rust bindings `tch`. Example of pretrain model.","archived":false,"fork":false,"pushed_at":"2021-08-07T18:07:20.000Z","size":3,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T09:41:28.589Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vaaaaanquish.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-07T17:48:21.000Z","updated_at":"2023-07-15T15:38:28.000Z","dependencies_parsed_at":"2023-06-28T17:46:13.878Z","dependency_job_id":null,"html_url":"https://github.com/vaaaaanquish/tch-rs-pretrain-example-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaaaanquish%2Ftch-rs-pretrain-example-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaaaanquish%2Ftch-rs-pretrain-example-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaaaanquish%2Ftch-rs-pretrain-example-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaaaanquish%2Ftch-rs-pretrain-example-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaaaaanquish","download_url":"https://codeload.github.com/vaaaaanquish/tch-rs-pretrain-example-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251319218,"owners_count":21570420,"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","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-11-17T08:29:40.888Z","updated_at":"2025-04-28T12:54:48.512Z","avatar_url":"https://github.com/vaaaaanquish.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tch-rs-pretrain-example-docker\nDocker for PyTorch rust bindings `tch-rs`. Example of pretrain model.\n\nDocker files support the following\n\n - install libtorch (1.9.0)\n - download pretrain model weight file (resnet18)\n - example script for model predict\n\n\n# Usage\n\nPlease set `./img/example.jpeg`\n\n```\ndocker build -t tch .\ndocker run -it tch\n\n# cargo run\n```\n\noutput example:\n```\nbeagle                                             15.37%\ngolden retriever                                   11.95%\nLabrador retriever                                 10.32%\nCardigan, Cardigan Welsh corgi                      8.50%\nBrittany spaniel                                    4.88%\n```\n\n\n# Background\n\nI wanted to do Embedding. But it looks like we need to implement `register_forward_hook` in `tch`.\n\nhttps://github.com/LaurentMazare/tch-rs/issues/218\n\nSo, I'm publishing it as an Example of pretrain model predict.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaaaaanquish%2Ftch-rs-pretrain-example-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaaaaanquish%2Ftch-rs-pretrain-example-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaaaaanquish%2Ftch-rs-pretrain-example-docker/lists"}