Giter VIP home page Giter VIP logo

pytorch-deployment's Introduction

PyTorch Deployment

A template for rapid deployment of PyTorch models.

点击以展开中文 README

功能

  • API.
  • Web 前端.
  • 支持图像转换模型.
  • 支持图像分类模型.
  • 支持图像生成模型.

演示

starganv2_afhq

部署步骤

  1. 安装依赖:pip install -r requirements.txt
  2. 启动服务,你有以下选择:
    1. flask run -p 3000,注意该方式性能较差。
    2. 使用 Gunicorn:
      1. 安装 Gunicorn:pip install gunicorn
      2. 启动应用:gunicorn -b 127.0.0.1:3009 app:app

请注意,模型的权重是从 Github 上下载的,如果你的服务器无法正常访问 Github,请手动下载权重并放到 data 文件夹下。

目前内置的模型:

Features

  • API.
  • Web frontend.
  • Support image translation models.
  • Support image classification models.
  • Support image generation models.

Demo

starganv2_afhq

pytorch-deployment's People

Contributors

songquanpeng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.