-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix compat; add scripts to run inference and filters; fix nan issue w…
…ith filters
- Loading branch information
Showing
8 changed files
with
43 additions
and
16 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
if [ $# -ne 1 ]; then | ||
echo $0 checkpoint_dir | ||
exit | ||
fi | ||
dir=$1 | ||
precompute_cache=/mnt/4tb_ssd/precompute_cache_new | ||
input_zarrs=/mnt/4tb_ssd/nosig_data/wallarrayv3_2024_*.zarr | ||
root=/home/mouse9911/gits/spf/ | ||
inference_cache=/mnt/4tb_ssd/inference_cache/ | ||
python ${root}/spf/scripts/create_inference_cache.py --inference-cache ${inference_cache} --config-fn ${dir}/config.yml --checkpoint-fn ${dir}/best.pth --device cuda --datasets ${input_zarrs} --parallel 24 --precompute-cache ${precompute_cache} |
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,13 @@ | ||
#!/bin/bash | ||
val_file=/mnt/4tb_ssd/nosig_data/nov23_val.txt | ||
root=/home/mouse9911/gits/spf/ | ||
precompute_cache=/mnt/4tb_ssd/precompute_cache_new | ||
input_zarrs=/mnt/4tb_ssd/nosig_data/wallarrayv3_2024_*.zarr | ||
root=/home/mouse9911/gits/spf | ||
inference_cache=/mnt/4tb_ssd/inference_cache/ | ||
|
||
cat ${val_file} | while read x; do | ||
python ${root}/spf/scripts/run_filters_on_data.py -d $x --nthetas 65 --device cpu --skip-qc \ | ||
--precompute-cache ${precompute_cache} --empirical-pkl-fn ${root}/empirical_dists/full.pkl \ | ||
--parallel 24 --work-dir ${root}/spf/run_on_filters_nov25 --config ${root}/spf/model_training_and_inference/models/ekf_and_pf_config.yml | ||
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
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