-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial commit * working example * add new models * update rescaling * add eval make cam * minor updates * add experiments * update the experiments * update tests * update scripts * update scripts and scales * introduce bash script * create a bash function * initial commit * working example * add new models * add eval make cam * minor updates * add experiments * update the experiments * update tests * update scripts * update scripts and scales * introduce bash script * run long_run (#12)
- Loading branch information
1 parent
56790b9
commit 4114401
Showing
11 changed files
with
126 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
source $(dirname $0)/../train.sh | ||
|
||
run_experiment resnet50v1 256 96 25 50 | ||
run_experiment resnet50v2 256 96 25 50 | ||
run_experiment resnet50v3 256 64 25 50 | ||
run_experiment resnet50v4 256 8 25 50 | ||
|
||
run_experiment resnet50v1 320 64 25 50 | ||
run_experiment resnet50v2 320 64 25 50 | ||
run_experiment resnet50v3 320 32 25 50 | ||
run_experiment resnet50v4 320 8 25 50 | ||
|
||
run_experiment resnet50v1 448 32 25 50 | ||
run_experiment resnet50v2 448 32 25 50 | ||
run_experiment resnet50v3 448 16 25 50 | ||
run_experiment resnet50v4 448 6 25 50 | ||
|
||
run_experiment resnet50v1 512 32 25 50 | ||
run_experiment resnet50v2 512 24 25 50 | ||
run_experiment resnet50v3 512 12 25 50 | ||
run_experiment resnet50v4 512 4 25 50 |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
run_experiment() { | ||
|
||
CAM_EVAL_THRES=$1 | ||
|
||
BACKBONE=resnet50v2 | ||
python -m train \ | ||
backbone=${BACKBONE} \ | ||
train_list=$(pwd)/voc12/train.txt \ | ||
val_list=$(pwd)/voc12/val.txt \ | ||
crop_size=512 \ | ||
batch_size=24 \ | ||
hydra.run.dir=$(pwd)/results/threshold/${BACKBONE}/cam_eval_thres${CAM_EVAL_THRES}/train \ | ||
crf_freq=25 \ | ||
epochs=50 \ | ||
cam_eval_thres=${CAM_EVAL_THRES} | ||
|
||
} | ||
|
||
run_experiment 0.1 | ||
run_experiment 0.15 | ||
run_experiment 0.2 | ||
run_experiment 0.25 | ||
run_experiment 0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
CROP_SIZE=512 | ||
BACKBONE=resnet50v2 | ||
CAM_EVAL_THRESHOLD=0.15 | ||
|
||
for model_name in 4 199 224 249 274 299 324 349 374 399 424 449 474 499 524 549 574; do | ||
python -m eval_cam \ | ||
cam_out_dir=$(pwd)/results/pipeline/${BACKBONE}/crop${CROP_SIZE}/eval/make_cam/seg-model-${model_name}/cam_outputs \ | ||
hydra.run.dir=$(pwd)/results/pipeline/${BACKBONE}/crop${CROP_SIZE}/eval/eval_cam/seg-model-${model_name}_${CAM_EVAL_THRESHOLD} \ | ||
infer_set=train \ | ||
logs=$(pwd)/results/pipeline/${BACKBONE}/crop${CROP_SIZE}/eval/logs_${CAM_EVAL_THRESHOLD} \ | ||
last_epoch=300 \ | ||
cam_eval_thres=${CAM_EVAL_THRESHOLD} | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
BACKBONE=resnet50v2 | ||
CROP_SIZE=512 | ||
|
||
for model_name in 4 199 224 249 274 299 324 349 374 399 424 449 474 499 524 549 574; do | ||
python -m make_cam \ | ||
backbone=${BACKBONE} \ | ||
weights=$(pwd)/results/pipeline/${BACKBONE}/crop${CROP_SIZE}/train/weights/seg-model-${model_name}.pt \ | ||
hydra.run.dir=$(pwd)/results/pipeline/${BACKBONE}/crop${CROP_SIZE}/eval/make_cam/seg-model-${model_name} \ | ||
infer_list=$(pwd)/voc12/train.txt \ | ||
crop_size=${CROP_SIZE} | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
source $(dirname $0)/../train.sh | ||
|
||
run_experiment resnet50v2 512 24 25 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
run_experiment() { | ||
BACKBONE=$1 | ||
CROP_SIZE=$2 | ||
BATCH_SIZE=$3 | ||
CRF_FREQ=$4 | ||
EPOCHS=$5 | ||
|
||
python -m train \ | ||
backbone=${BACKBONE} \ | ||
train_list=$(pwd)/voc12/train.txt \ | ||
val_list=$(pwd)/voc12/val.txt \ | ||
crop_size=${CROP_SIZE} \ | ||
batch_size=${BATCH_SIZE} \ | ||
hydra.run.dir=$(pwd)/results/pipeline/${BACKBONE}/crop${CROP_SIZE}/train \ | ||
crf_freq=${CRF_FREQ} \ | ||
epochs=${EPOCHS} | ||
} |