Steps to create masks from WSIs
- Clone repo.
-
Move to "tcga_stroma_prediction" directory
-
Run python
- python normalization.py 'input directory' 'output file name' 'tile size' ** Note that this will create a .csv file with mu and std statistics to be used as an input.
- python generate_mask_from_WSIs.py 'input directory' 'output directory' 'model path' 'norm stats' ** Use the .csv file for 'norm stats'
- Confirm the masks in 'your output directory'
** Note that you may need to install some python packages.
python --version
virtualenv -p /usr/bin/python3.8 env
source env/bin/activate
numpy==1.19.5 tensorflow-gpu==2.6.2 scipy==1.4.1 scikit-image==0.17.2 scikit-learn==0.24.2 pandas==1.1.5 Pillow==8.4.0