All Projects → bendangnuksung → mrcnn_serving_ready

bendangnuksung / mrcnn_serving_ready

Licence: MIT license
🛠 Mask R-CNN Keras to Tensorflow and TFX models + Serving models using TFX GRPC & RESTAPI

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to mrcnn serving ready

Skin-Cancer-Segmentation
Classification and Segmentation with Mask-RCNN of Skin Cancer using ISIC dataset
Stars: ✭ 61 (-36.46%)
Mutual labels:  mask-rcnn
FSharp.GrpcCodeGenerator
A protoc plugin to enable generation of F# code
Stars: ✭ 61 (-36.46%)
Mutual labels:  grpc
grpc-graphql-gateway
A protoc plugin that generates graphql execution code from Protocol Buffers.
Stars: ✭ 239 (+148.96%)
Mutual labels:  grpc
rt-mrcnn
Real time instance segmentation with Mask R-CNN, live from webcam feed.
Stars: ✭ 47 (-51.04%)
Mutual labels:  mask-rcnn
protoc-plugin
A protoc compiler plugin for Clojure applications
Stars: ✭ 28 (-70.83%)
Mutual labels:  grpc
grpc-firewall-bypass
initiate connections to gRPC servers that live behind a firewall (https://github.com/grpc/grpc-go/issues/484)
Stars: ✭ 53 (-44.79%)
Mutual labels:  grpc
Ensemble-of-Multi-Scale-CNN-for-Dermatoscopy-Classification
Fully supervised binary classification of skin lesions from dermatoscopic images using an ensemble of diverse CNN architectures (EfficientNet-B6, Inception-V3, SEResNeXt-101, SENet-154, DenseNet-169) with multi-scale input.
Stars: ✭ 25 (-73.96%)
Mutual labels:  tensorflow-keras
grpc-jwt-spring-boot-starter
Spring boot starter for gRPC framework with JWT authorization
Stars: ✭ 24 (-75%)
Mutual labels:  grpc
jobor
支持秒级分布式定时任务系统, A high performance distributed task scheduling system, Support multi protocol scheduling tasks
Stars: ✭ 52 (-45.83%)
Mutual labels:  grpc
protoactor-go
Proto Actor - Ultra fast distributed actors for Go, C# and Java/Kotlin
Stars: ✭ 4,138 (+4210.42%)
Mutual labels:  grpc
neofs-api-go
NeoFS API Golang repository contains implementation of core NeoFS structures that can be used for integration with NeoFS.
Stars: ✭ 14 (-85.42%)
Mutual labels:  grpc
qtprotobuf
Protobuf generator and bindings for Qt framework
Stars: ✭ 138 (+43.75%)
Mutual labels:  grpc
grpcp
grpcp is a Grpc Persistent Connection Pool.
Stars: ✭ 96 (+0%)
Mutual labels:  grpc
keras-hypetune
A friendly python package for Keras Hyperparameters Tuning based only on NumPy and hyperopt.
Stars: ✭ 47 (-51.04%)
Mutual labels:  tensorflow-keras
Sitko.Core
Sitko.Core is a set of libraries to help build .NET Core applications fast
Stars: ✭ 46 (-52.08%)
Mutual labels:  grpc
open-solution-googleai-object-detection
Open solution to the Google AI Object Detection Challenge 🍁
Stars: ✭ 46 (-52.08%)
Mutual labels:  mask-rcnn
rpc ts
Remote Procedure Calls in TypeScript made simple 🤞
Stars: ✭ 71 (-26.04%)
Mutual labels:  grpc
agrpc
Async GRPC with C++20 coroutine support
Stars: ✭ 53 (-44.79%)
Mutual labels:  grpc
grphp
PHP gRPC Framework
Stars: ✭ 19 (-80.21%)
Mutual labels:  grpc
Mask-YOLO
Inspired from Mask R-CNN to build a multi-task learning, two-branch architecture: one branch based on YOLOv2 for object detection, the other branch for instance segmentation. Simply tested on Rice and Shapes. MobileNet supported.
Stars: ✭ 100 (+4.17%)
Mutual labels:  mask-rcnn

MRCNN Model conversion

Script to convert MatterPort Mask_RCNN Keras model to Tensorflow Frozen Graph and Tensorflow Serving Model.
Plus inferencing with GRPC or RESTAPI using Tensorflow Model Server.

How to Run

  1. Modify the path variables in 'user_config.py'
  2. Run main.py
    python3 main.py

For Custom Config class

If you have a different config class you can replace the existing config in 'main.py'

# main.py
# Current config load
config = get_config()

# replace it with your config class
config = your_custom_config_class

Inferencing

Follow once you finish converting it to a saved_model using the above code

Tensorflow Model Server with GRPC and RESTAPI

  1. First run your saved_model.pb in Tensorflow Model Server, using:
    tensorflow_model_server --port=8500 --rest_api_port=8501 --model_name=mask --model_base_path=/path/to/saved_model/
  2. Modify the variables and add your Config Class if needed in inferencing/saved_model_config.py. No need to change if the saved_model is the default COCO model.
  3. Then run the inferencing/saved_model_inference.py with the image path:
    # Set Python Path
    export PYTHONPATH=$PYTHONPATH:$pwd
    
    # Run Inference with GRPC
    python3 inferencing/saved_model_inference.py -t grpc -p test_image/monalisa.jpg
    
    # Run Inference with RESTAPI
    python3 inferencing/saved_model_inference.py -t restapi -p test_image/monalisa.jpg

Acknowledgement

Thanks to @rahulgullan for RESTAPI client code.

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].