-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathLUSC.sh
More file actions
35 lines (28 loc) · 782 Bytes
/
LUSC.sh
File metadata and controls
35 lines (28 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# model="resnet50"
# models='plip'
# models='uni'
# models='conch'
models='mSTAR'
declare -A gpus
gpus['resnet50']=0
gpus['conch']=0
gpus['uni']=0
gpus['mSTAR']=0
CSV_FILE_NAME="./dataset_csv/LUSC.csv"
DIR_TO_COORDS="path/DIR_TO_COORDS"
DATA_DIRECTORY="path/DATA_DIRECTORY"
FEATURES_DIRECTORY="path/features"
ext=".svs"
for model in $models
do
echo $model", GPU is:"${gpus[$model]}
export CUDA_VISIBLE_DEVICES=${gpus[$model]}
python extract_feature.py \
--data_h5_dir $DIR_TO_COORDS \
--data_slide_dir $DATA_DIRECTORY \
--csv_path $CSV_FILE_NAME \
--feat_dir $FEATURES_DIRECTORY \
--batch_size 256 \
--model $model \
--slide_ext $ext
done