Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgehrig18 committed May 15, 2024
1 parent 75d3782 commit d3117cd
Show file tree
Hide file tree
Showing 56 changed files with 5,809 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

73 changes: 73 additions & 0 deletions config/dagr-l-dsec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
dataset_directory: "/data/storage/daniel/aegnn/"
output_directory: "/data/storage/daniel/aegnn/logs"

task: detection
dataset: dsec

# network
radius: 0.01
time_window_us: 1000000
max_neighbors: 16
n_nodes: 50000

batch_size: 64

activation: relu
edge_attr_dim: 2
aggr: sum
kernel_size: 5
pooling_aggr: max

base_width: 0.5
after_pool_width: 1
net_stem_width: 1
yolo_stem_width: 1
num_scales: 2

# learning
weight_decay: 0.00001
clip: 0.1

pooling_dim_at_output: 5x7

aug_trans: 0.1
aug_zoom: 1.5
aug_p_flip: 0.5

img_net: resnet18

l_r: 0.0002
tot_num_epochs: 801

































73 changes: 73 additions & 0 deletions config/dagr-m-dsec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
dataset_directory: "/data/storage/daniel/aegnn/"
output_directory: "/data/storage/daniel/aegnn/logs"

task: detection
dataset: dsec

# network
radius: 0.01
time_window_us: 1000000
max_neighbors: 16
n_nodes: 50000

batch_size: 64

activation: relu
edge_attr_dim: 2
aggr: sum
kernel_size: 5
pooling_aggr: max

base_width: 0.5
after_pool_width: 1
net_stem_width: 0.75
yolo_stem_width: 0.75
num_scales: 2

# learning
weight_decay: 0.00001
clip: 0.1

pooling_dim_at_output: 5x7

aug_trans: 0.1
aug_zoom: 1.5
aug_p_flip: 0.5

img_net: resnet18

l_r: 0.0002
tot_num_epochs: 801

































73 changes: 73 additions & 0 deletions config/dagr-n-dsec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
dataset_directory: "/data/storage/daniel/aegnn/"
output_directory: "/data/storage/daniel/aegnn/logs"

task: detection
dataset: dsec

# network
radius: 0.01
time_window_us: 1000000
max_neighbors: 16
n_nodes: 50000

batch_size: 64

activation: relu
edge_attr_dim: 2
aggr: sum
kernel_size: 5
pooling_aggr: max

base_width: 0.5
after_pool_width: 1
net_stem_width: 0.25
yolo_stem_width: 0.25
num_scales: 2

# learning
weight_decay: 0.00001
clip: 0.1

pooling_dim_at_output: 5x7

aug_trans: 0.1
aug_zoom: 1.5
aug_p_flip: 0.5

img_net: resnet18

l_r: 0.0002
tot_num_epochs: 801

































72 changes: 72 additions & 0 deletions config/dagr-s-dsec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
dataset_directory: "/data/storage/daniel/aegnn/"
output_directory: "/data/storage/daniel/aegnn/logs"

task: detection
dataset: dsec

# network
radius: 0.01
time_window_us: 1000000
max_neighbors: 16
n_nodes: 50000

batch_size: 64

activation: relu
edge_attr_dim: 2
aggr: sum
kernel_size: 5
pooling_aggr: max

base_width: 0.5
after_pool_width: 1
net_stem_width: 0.5
yolo_stem_width: 0.5
num_scales: 2

# learning
weight_decay: 0.00001
clip: 0.1

pooling_dim_at_output: 5x7

aug_trans: 0.1
aug_zoom: 1.5
aug_p_flip: 0.5

img_net: resnet18

l_r: 0.0002
tot_num_epochs: 801
































25 changes: 25 additions & 0 deletions download_and_install_dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash
DAGR_DIR=$(pwd)

# Download detectron2 for its fast mAP calculation function
mkdir $DAGR_DIR/libs
cd $DAGR_DIR/libs
git clone --no-checkout [email protected]:facebookresearch/detectron2.git
cd $DAGR_DIR/libs/detectron2/
git checkout 32bd159d7263683e39bf4e87e5c4ac88bad2fd73

# Download YOLOX
cd $DAGR_DIR/libs
git clone --no-checkout [email protected]:Megvii-BaseDetection/YOLOX.git
cd $DAGR_DIR/libs/YOLOX
git checkout 618fd8c08b2bc5fac9ffbb19a3b7e039ea0d5b9a

# Download dsec-det
cd $DAGR_DIR/libs
git clone [email protected]:uzh-rpg/dsec-det.git
cd $DAGR_DIR/libs/dsec-det
git checkout f3ea48b0eebef93b2052396fd23b3d40e6ff0363

pip install -e $DAGR_DIR/libs/dsec-det
pip install -e $DAGR_DIR/libs/detectron2
pip install -e $DAGR_DIR/libs/YOLOX
10 changes: 10 additions & 0 deletions download_example_data.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#! /usr/bin/env bash
DAGR_DIR=$(pwd)
DATA_DIR=$DAGR_DIR/data

mkdir $DATA_DIR
wget https://download.ifi.uzh.ch/rpg/dagr/data/dagr_s_50.pth -O $DATA_DIR/dagr_s_50.pth

wget https://download.ifi.uzh.ch/rpg/dagr/data/DSEC_fragment.zip -O $DATA_DIR/DSEC_fragment.zip
unzip $DATA_DIR/DSEC_fragment.zip -d $DATA_DIR
rm -rf $DATA_DIR/DSEC_fragment.zip
12 changes: 12 additions & 0 deletions install_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#! /usr/bin/env bash

TORCH=$(python -c "import torch; print(torch.__version__)")
CUDA=$(python -c "import torch; print(torch.version.cuda)")
URL=https://data.pyg.org/whl/torch-${TORCH}+${CUDA}.html

pip install --no-cache-dir torch-scatter -f $URL;
pip install --no-cache-dir torch-cluster -f $URL;
pip install --no-cache-dir torch-spline-conv -f $URL;
pip install --no-cache-dir torch-sparse -f $URL;
pip install torch-geometric;
pip install wandb numba hdf5plugin plotly matplotlib pycocotools opencv-python scikit-video pandas ruamel.yaml
Loading

0 comments on commit d3117cd

Please sign in to comment.