High-resolution-microscopy-laboratory / exosomes

Home Page:https://bioeng.ru/scanev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mask R-CNN Vesicle Segmentation

Mask R-CNN based extracellular vesicle instance segmentation Sample

The repository includes:

Run web app in docker

  1. Install nvidia docker (Linux only) https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#installing-docker-ce
  2. Download model weights

Run on cpu

# Change to actual model absolute path
MODEL_PATH="/path/to/mask_rcnn_vesicle.h5"
docker run \
-v ${MODEL_PATH}:/app/models/mask_rcnn_vesicle.h5 \
-p 8000:8000 \
highresolutionimaging/vesicles

For example, if you use Windows and you have mask_rcnn_vesicle.h5 in C:\Users\User\Downloads, you should run

docker run -v C:/Users/User/Downloads/mask_rcnn_vesicle.h5:/app/models/mask_rcnn_vesicle.h5 -p 8000:8000 highresolutionimaging/vesicles

Run on gpu (Linux only)

# Change to actual model absolute path
MODEL_PATH="/path/to/mask_rcnn_vesicle.h5"
docker run \
-v ${MODEL_PATH}:/app/models/mask_rcnn_vesicle.h5 \
-p 8000:8000 \
--gpus all \
--env TF_FORCE_GPU_ALLOW_GROWTH=true \
highresolutionimaging/vesicles

Server listening on 0.0.0.0:8000 so you can access app on localhost:8000 or {HOST_IP}:8000

About

https://bioeng.ru/scanev/

License:MIT License


Languages

Language:Jupyter Notebook 99.4%Language:Python 0.5%Language:HTML 0.1%Language:Dockerfile 0.0%Language:CSS 0.0%Language:Shell 0.0%