-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use deepforest config file and deepforest's boxes_to_shapefile
- Loading branch information
1 parent
214fc17
commit a43369a
Showing
4 changed files
with
44 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Config file for DeepForest pytorch module | ||
|
||
# Cpu workers for data loaders | ||
# Dataloaders | ||
workers: 1 | ||
devices: 1 | ||
accelerator: 'gpu' | ||
batch_size: 1 | ||
|
||
# Model Architecture | ||
architecture: 'retinanet' | ||
num_classes: 1 | ||
nms_thresh: 0.05 | ||
|
||
# Architecture specific params | ||
retinanet: | ||
# Non-max supression of overlapping predictions | ||
score_thresh: 0.1 | ||
|
||
train: | ||
csv_file: | ||
root_dir: | ||
|
||
# Optimizer initial learning rate | ||
lr: 0.001 | ||
|
||
# Print loss every n epochs | ||
epochs: 1 | ||
# Useful debugging flag in pytorch lightning, set to True to get a single batch of training to test settings. | ||
fast_dev_run: False | ||
# pin images to GPU memory for fast training. This depends on GPU size and number of images. | ||
preload_images: False | ||
|
||
validation: | ||
# callback args | ||
csv_file: | ||
root_dir: | ||
# Intersection over union evaluation | ||
iou_threshold: 0.4 | ||
val_accuracy_interval: 20 |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
#SBATCH [email protected] | ||
#SBATCH --mail-type=FAIL | ||
#SBATCH --gpus=a100:1 | ||
#SBATCH --cpus-per-task=10 | ||
#SBATCH --cpus-per-task=3 | ||
#SBATCH --mem=200gb | ||
#SBATCH --time=01:30:00 | ||
#SBATCH --partition=gpu | ||
|
@@ -23,5 +23,5 @@ cd /blue/ewhite/everglades/EvergladesTools/Zooniverse | |
|
||
snakemake --unlock | ||
echo "INFO [$(date "+%Y-%m-%d %H:%M:%S")] Starting Snakemake pipeline" | ||
snakemake --printshellcmds --keep-going --cores 10 --resources gpu=1 --rerun-incomplete --latency-wait 1 --use-conda | ||
echo "INFO [$(date "+%Y-%m-%d %H:%M:%S")] End" | ||
snakemake --printshellcmds --keep-going --cores 3 --resources gpu=1 --rerun-incomplete --latency-wait 1 --use-conda | ||
echo "INFO [$(date "+%Y-%m-%d %H:%M:%S")] End" |
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