Skip to content

High-resolution-microscopy-laboratory/exosomes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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