-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update readme to describe how to plot metrics with matplotlib + fixed…
… bug in coco2pascal.yaml + added the ablation on t_pi
- Loading branch information
Showing
6 changed files
with
129 additions
and
15 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
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 |
---|---|---|
|
@@ -52,6 +52,7 @@ MODEL: | |
bottleneck_dim: 512 | ||
|
||
EVALUATION: | ||
episodic_val: True | ||
shot: 1 | ||
random_shot: False | ||
episodic: True | ||
|
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,39 @@ | ||
DATA=$1 | ||
SHOT=$2 | ||
GPU=$3 | ||
LAYERS=$4 | ||
|
||
SPLITS="0 1 2 3" | ||
PIs="1 6 9 12 15 20 25 30 30 35 40 45 50" | ||
if [ $SHOT == 1 ] | ||
then | ||
bsz_val="500" | ||
elif [ $SHOT == 5 ] | ||
then | ||
bsz_val="100" | ||
elif [ $SHOT == 10 ] | ||
then | ||
bsz_val="50" | ||
fi | ||
|
||
for PI in $PIs | ||
do | ||
for SPLIT in $SPLITS | ||
do | ||
dirname="results/test/arch=resnet-${LAYERS}/data=${DATA}/shot=${SHOT}/split=${SPLIT}" | ||
mkdir -p -- "$dirname" | ||
python3 -m src.test --config config_files/${DATA}.yaml \ | ||
--opts train_split ${SPLIT} \ | ||
batch_size_val ${bsz_val} \ | ||
shot ${SHOT} \ | ||
layers ${LAYERS} \ | ||
FB_param_update "[${PI}]" \ | ||
temperature 20.0 \ | ||
adapt_iter 50 \ | ||
cls_lr 0.025 \ | ||
gpus ${GPU} \ | ||
test_num 1000 \ | ||
n_runs 3 \ | ||
| tee ${dirname}/log_${PI}.txt | ||
done | ||
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,3 @@ | ||
folder="results/" | ||
|
||
python3 -m src.plot --ablation_plot --folder $folder --figsize 20 9 |
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
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