spcdkr_omdenasaudi_liverhccxai / util_dockerPreRun.sh
kidcoconut's picture
copied demo files from project github task-5-deployment folder
b831e6f
raw
history blame
849 Bytes
#!/bin/bash
#--- Note: this file is designed to run locally as well as within docker to prep the environment
#--- for volume initialization; ensure folders are in place; assume: we are in the /app folder
mkdir -p data/demo_tiles/raw
mkdir -p data/tiles/raw data/tiles/pred data/tiles/grad_bg data/tiles/grad_wt data/tiles/grad_vt
mkdir -p data/wsi/raw
<<blockComment
- the binary model is stored as split files named mdl_nn
- this is done to ensure that the model can be stored within gitHub
- the split model is recreated on docker container startup using the cat command
blockComment
#--- recreate single model file from its parts, stored within a specific model version folder
./bin/models/util_joinModel.sh './bin/models/deeplabv3*vhflip30/model_a*' ./bin/models/model.pth
#--- run streamlit/fastapi
./util_startLocal_streamlitFastApi.sh