{"id":13716847,"url":"https://github.com/clcarwin/convert_torch_to_pytorch","last_synced_at":"2025-05-07T06:31:43.575Z","repository":{"id":52111470,"uuid":"82146922","full_name":"clcarwin/convert_torch_to_pytorch","owner":"clcarwin","description":"Convert torch t7 model to pytorch model and source.","archived":false,"fork":false,"pushed_at":"2023-07-10T23:21:03.000Z","size":20,"stargazers_count":542,"open_issues_count":28,"forks_count":161,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-05-07T04:38:39.966Z","etag":null,"topics":["pytorch"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/clcarwin.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}},"created_at":"2017-02-16T06:23:52.000Z","updated_at":"2025-03-26T13:19:19.000Z","dependencies_parsed_at":"2024-01-25T18:06:23.921Z","dependency_job_id":"6063102b-4653-4352-8ddd-5f4b7103e637","html_url":"https://github.com/clcarwin/convert_torch_to_pytorch","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/clcarwin%2Fconvert_torch_to_pytorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clcarwin%2Fconvert_torch_to_pytorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clcarwin%2Fconvert_torch_to_pytorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clcarwin%2Fconvert_torch_to_pytorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clcarwin","download_url":"https://codeload.github.com/clcarwin/convert_torch_to_pytorch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252826878,"owners_count":21810197,"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":["pytorch"],"created_at":"2024-08-03T00:01:15.033Z","updated_at":"2025-05-07T06:31:43.336Z","avatar_url":"https://github.com/clcarwin.png","language":"Python","funding_links":[],"categories":["Pytorch \u0026 related libraries｜Pytorch \u0026 相关库","Pytorch \u0026 related libraries"],"sub_categories":["Other libraries｜其他库:","Other libraries:"],"readme":"# Convert torch to pytorch\nConvert torch t7 model to pytorch model and source.\n\n## Convert\n```bash\npython convert_torch.py -m vgg16.t7\n```\nTwo file will be created ```vgg16.py``` ```vgg16.pth```\n\n## Example\n```python\nimport vgg16\n\nmodel = vgg16.vgg16\nmodel.load_state_dict(torch.load('vgg16.pth'))\nmodel.eval()\n...\n```\n## Validated\nAll the models in this table can be converted and the results have been validated.\n\n| Network             | Download |\n| ------------------- | -------- |\n| AlexNet | [cnn-benchmarks](https://github.com/jcjohnson/cnn-benchmarks) |\n| Inception-V1 | [cnn-benchmarks](https://github.com/jcjohnson/cnn-benchmarks) |\n| VGG-16 | [cnn-benchmarks](https://github.com/jcjohnson/cnn-benchmarks) |\n| VGG-19 | [cnn-benchmarks](https://github.com/jcjohnson/cnn-benchmarks) |\n| ResNet-18 | [cnn-benchmarks](https://github.com/jcjohnson/cnn-benchmarks) |\n| ResNet-200 | [cnn-benchmarks](https://github.com/jcjohnson/cnn-benchmarks) |\n| ResNeXt-50 (32x4d) | [ResNeXt](https://github.com/facebookresearch/ResNeXt) |\n| ResNeXt-101 (32x4d) | [ResNeXt](https://github.com/facebookresearch/ResNeXt) |\n| ResNeXt-101 (64x4d) | [ResNeXt](https://github.com/facebookresearch/ResNeXt) |\n| DenseNet-264 (k=32) | [DenseNet](https://github.com/liuzhuang13/DenseNet#results-on-imagenet-and-pretrained-models) |\n| DenseNet-264 (k=48) | [DenseNet](https://github.com/liuzhuang13/DenseNet#results-on-imagenet-and-pretrained-models) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclcarwin%2Fconvert_torch_to_pytorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclcarwin%2Fconvert_torch_to_pytorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclcarwin%2Fconvert_torch_to_pytorch/lists"}