{"id":15355646,"url":"https://github.com/songquanpeng/pytorch-deployment","last_synced_at":"2025-04-15T06:34:36.793Z","repository":{"id":61982190,"uuid":"398125281","full_name":"songquanpeng/pytorch-deployment","owner":"songquanpeng","description":"A template for rapid deployment of PyTorch models.","archived":false,"fork":false,"pushed_at":"2022-10-08T13:35:48.000Z","size":23,"stargazers_count":64,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T17:11:10.579Z","etag":null,"topics":["flask-application","pytorch-template","stargan-v2"],"latest_commit_sha":null,"homepage":"","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/songquanpeng.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}},"created_at":"2021-08-20T01:53:57.000Z","updated_at":"2025-02-03T10:30:08.000Z","dependencies_parsed_at":"2022-10-24T17:00:23.608Z","dependency_job_id":null,"html_url":"https://github.com/songquanpeng/pytorch-deployment","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songquanpeng%2Fpytorch-deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songquanpeng%2Fpytorch-deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songquanpeng%2Fpytorch-deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songquanpeng%2Fpytorch-deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/songquanpeng","download_url":"https://codeload.github.com/songquanpeng/pytorch-deployment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249022608,"owners_count":21199897,"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":["flask-application","pytorch-template","stargan-v2"],"created_at":"2024-10-01T12:25:05.392Z","updated_at":"2025-04-15T06:34:36.756Z","avatar_url":"https://github.com/songquanpeng.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyTorch Deployment\n\u003e A template for rapid deployment of PyTorch models.\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003e点击以展开中文 README\u003c/strong\u003e\u003c/summary\u003e\n\u003cdiv\u003e\n\n## 功能\n+ [x] API.\n+ [x] Web 前端.\n+ [x] 支持图像转换模型.\n+ [ ] 支持图像分类模型.\n+ [ ] 支持图像生成模型.\n\n## 演示\n![starganv2_afhq](https://user-images.githubusercontent.com/39998050/155641683-fbef7d4a-7a44-4f60-bf96-7df79a02c0ee.gif)\n\n## 部署步骤\n1. 安装依赖：`pip install -r requirements.txt`\n2. 启动服务，你有以下选择：\n    1. `flask run -p 3000`，注意该方式性能较差。\n    2. 使用 Gunicorn：\n        1. 安装 Gunicorn：`pip install gunicorn`\n        2. 启动应用：`gunicorn -b 127.0.0.1:3009 app:app`\n\n请注意，模型的权重是从 Github 上下载的，如果你的服务器无法正常访问 Github，请手动下载权重并放到 data 文件夹下。\n\n目前内置的模型：\n+ starganv2_afhq.ckpt：https://github.com/songquanpeng/pytorch-deployment/releases/download/v0.1.0/starganv2_afhq.ckpt\n\n\u003c/div\u003e\n\u003c/details\u003e\n\n## Features\n+ [x] API.\n+ [x] Web frontend.\n+ [x] Support image translation models.\n+ [ ] Support image classification models.\n+ [ ] Support image generation models.\n\n## Demo\n![starganv2_afhq](https://user-images.githubusercontent.com/39998050/155641683-fbef7d4a-7a44-4f60-bf96-7df79a02c0ee.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongquanpeng%2Fpytorch-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsongquanpeng%2Fpytorch-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongquanpeng%2Fpytorch-deployment/lists"}