All Projects → 99sbr → fastapi-template

99sbr / fastapi-template

Licence: MIT license
Completely Scalable FastAPI based template for Machine Learning, Deep Learning and any other software project which wants to use Fast API as an API framework.

Programming Languages

python
139335 projects - #7 most used programming language
Jupyter Notebook
11667 projects
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to fastapi-template

Clearml
ClearML - Auto-Magical CI/CD to streamline your ML workflow. Experiment Manager, MLOps and Data-Management
Stars: ✭ 2,868 (+1738.46%)
Mutual labels:  deeplearning, mlops
MLOps
MLOps template with examples for Data pipelines, ML workflow management, API development and Monitoring.
Stars: ✭ 28 (-82.05%)
Mutual labels:  mlops, fastapi
ml in production
A set of demo of deploying a Machine Learning Model in production using various methods
Stars: ✭ 49 (-68.59%)
Mutual labels:  mlops, fastapi
chitra
A multi-functional library for full-stack Deep Learning. Simplifies Model Building, API development, and Model Deployment.
Stars: ✭ 210 (+34.62%)
Mutual labels:  mlops, fastapi
anonymization-api
How to build and deploy an anonymization API with FastAPI
Stars: ✭ 51 (-67.31%)
Mutual labels:  fastapi
fastapi-websocket-broadcast
Websocket 'broadcast' demo using FastAPI/Starlette
Stars: ✭ 106 (-32.05%)
Mutual labels:  fastapi
Nearest-Celebrity-Face
Tensorflow Implementation of FaceNet: A Unified Embedding for Face Recognition and Clustering to find the celebrity whose face matches the closest to yours.
Stars: ✭ 30 (-80.77%)
Mutual labels:  deeplearning
IMTA
No description or website provided.
Stars: ✭ 38 (-75.64%)
Mutual labels:  deeplearning
ck-mlops
A collection of portable workflows, automation recipes and components for MLOps in a unified CK format. Note that this repository is outdated - please check the 2nd generation of the CK workflow automation meta-framework with portable MLOps and DevOps components here:
Stars: ✭ 15 (-90.38%)
Mutual labels:  mlops
rembg-greenscreen
Rembg Video Virtual Green Screen Edition
Stars: ✭ 210 (+34.62%)
Mutual labels:  deeplearning
Printed-Chinese-Character-OCR
This is a Chinese Character ocr system based on Deep learning (VGG like CNN neural net work),this rep include trainning set generating,image preprocesing,NN model optimizing based on Keras high level NN framwork
Stars: ✭ 21 (-86.54%)
Mutual labels:  deeplearning
morelia server
Server for MoreliaTalk network
Stars: ✭ 25 (-83.97%)
Mutual labels:  fastapi
TFDeepSurv
COX Proportional risk model and survival analysis implemented by tensorflow.
Stars: ✭ 75 (-51.92%)
Mutual labels:  deeplearning
MatConvNet-oneclick
Train your own data with MatConvNet
Stars: ✭ 84 (-46.15%)
Mutual labels:  deeplearning
HibiAPI
一个实现了多种常用站点的易用化API的程序 / A program that implements easy-to-use APIs for a variety of commonly used sites.
Stars: ✭ 427 (+173.72%)
Mutual labels:  fastapi
HypeLinks-API
A Smart Bookmark API that can classify websites into 10 different categories built using FastAPI and Tensorflow 2.0
Stars: ✭ 23 (-85.26%)
Mutual labels:  fastapi
image segmentation dl
🍞 基于深度学习方法的图像分割(含语义分割、实例分割、全景分割)。
Stars: ✭ 76 (-51.28%)
Mutual labels:  deeplearning
krsh
A declarative KubeFlow Management Tool
Stars: ✭ 127 (-18.59%)
Mutual labels:  mlops
astrobase
Simple, fast, and secure deployments anywhere.
Stars: ✭ 47 (-69.87%)
Mutual labels:  fastapi
mlops-workload-orchestrator
The MLOps Workload Orchestrator solution helps you streamline and enforce architecture best practices for machine learning (ML) model productionization. This solution is an extendable framework that provides a standard interface for managing ML pipelines for AWS ML services and third-party services.
Stars: ✭ 114 (-26.92%)
Mutual labels:  mlops

Fast-API 🚀

Why This ? 🤨

Need Clean and Scalable Code Architecture for ML/DL and NLP driven micro-service based Projects ?

Introduction: Structuring of API

  • api_template: Contains all the API related Code Base.

    • manage.py: Only entry point for API. Contains no logic.
    • .env: Most important file for your api and contains global configs. Acoid using application/variable level configs here.
    • application: It contains all your api related codes and test modules. I prefer keeping application folder at global.
    • logs: Logs is self-explanatory. FYI it will not contain any configuration information, just raw logs. Feel free to move according to your comfort but not inside the application folder.
    • models: As a part of Machine-Learning/ Deep-Learning app you might need to add model files here or if you have huge files on cloud add symlinks if possibles.
    • resources: To store any documentation, application related csv/txt/img files etc.
    • settings: Logger/DataBase/Model global settings files in yaml/json format.
  • application:

    • main: priority folder of all your application related code.
      • 🏗 infrastructure: Data Base and ML/DL models related backbone code
      • 📮 routers: API routers and they strictly do not contain any business logic
      • 📡 services: All processing and business logic for routers here at service layer
      • ⚒ utility:
        • config_loader Load all application related config files from settings directory
        • logger Logging module for application
        • manager A manager utility for Data Related Task which can be common for different services
      • 🐍 config.py: Main config of application, inherits all details from .env file
    • test: Write test cases for your application here.
    • initializer.py: Preload/Initialisation of Models and Module common across application. Preloading model improves inferencing.

Running Locally ? 📍

Screenshot 2021-05-16 at 6 56 38 PM Run Command uvicorn manage:app --host 0.0.0.0 --port 8000

Docker Support 🐳

docker build -t fastapi-image  .
docker run -d --name fastapi-container -p 8000:8000 fastapi-image

Sample Demo App ~ Powered by Streamlit ⚡️

Screenshot 2021-05-16 at 6 56 19 PM Always good to have an interface to show a quick demo 😁. Note: manage.py runs the streamlit app as a subprocess. feel free to move it as per your need.

What is new ?

  • Form Support for Image Classification imgClassification
  • Cutelogs GUI Integration for Easy LogsView Logs

Drop me email for any queries on [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].