Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Dataset and Config Issues #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions RAM_Net/configs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Specifies the type of dataloader, either SequenceMVSEC or SequenceSynchronizedFr
### type2:
For the branch `asynchronous_irregular_real_data` a second dataset can be specified in order to train on two datasets simultaneously. Also specify the base_folder2 and step_size2 if this is used.
### base_folder:
specify the path of the data folder, starting from the exported path (see README in AMM-Net folder)
specify the path of the data folder, starting from the exported path (see README in RAM-Net folder)
### step_size:
specifies the number of skipped datapoints before beginning a new sequence. If sequence = 5 and step_size = 5, each datapoint is only seen one during an epoch. If the the step_size is smaller than the sequence_length, datapoints are seen several times. However, step_size > 0 does not actually skip image frames that the network sees, it only defines where a new sequence should be start with respect to the starting data point from the last sequence.
### clip_distance:
Expand All @@ -21,7 +21,7 @@ defines how many rgb frames are skipped in order to get asynchronous data read i
### scale_factor:
downscales inputs for faster training.
### baseline:
If `false`, AMM-Net is trained. Other options are `rgb`, `e`, `ergb0`. For the `asynchronous_irregular_real_data` branch only `false` and `rgb` can be used.
If `false`, RAM-Net is trained. Other options are `rgb`, `e`, `ergb0`. For the `asynchronous_irregular_real_data` branch only `false` and `rgb` can be used.


## trainer:
Expand Down
27 changes: 17 additions & 10 deletions RAM_Net/configs/train_e2depth_si_grad_loss_statenet_baseline_e.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"data_loader": {
"train": {
"type": "SequenceSynchronizedFramesEventsDataset",
"base_folder": "dataset_mathias_23_07/train",
"base_folder": "train",
"depth_folder": "depth/data",
"frame_folder": "rgb/data",
"flow_folder": "",
"event_folder": "events/voxels",
"event_folder": "events/data",
"proba_pause_when_running": 0.0,
"proba_pause_when_paused": 0.0,
"step_size": 5,
Expand All @@ -20,11 +20,11 @@
},
"validation": {
"type": "SequenceSynchronizedFramesEventsDataset",
"base_folder": "dataset_mathias_23_07/validation",
"base_folder": "val",
"frame_folder": "rgb/data",
"depth_folder": "depth/data",
"flow_folder": "",
"event_folder": "events/voxels",
"event_folder": "events/data",
"proba_pause_when_running": 0.0,
"proba_pause_when_paused": 0.0,
"step_size": 5,
Expand All @@ -51,7 +51,10 @@
},
"loss": {
"type": "scale_invariant_loss",
"config": {"weight": 1.0, "n_lambda" : 1.0}
"config": {
"weight": 1.0,
"n_lambda": 1.0
}
},
"grad_loss": {
"weight": 0.25
Expand All @@ -65,7 +68,7 @@
"trainer": {
"epochs": 201,
"sequence_length": 10,
"save_dir": "/data/storage/michelle/e2depth_checkpoints/EventScape",
"save_dir": "/archive/sony/pietro/ramnet_eventscape",
"save_freq": 4,
"verbosity": 2,
"monitor": "val_loss",
Expand All @@ -75,8 +78,9 @@
"still_previews": true,
"grid_loss": true,
"loss_composition": "image",
"loss_weights": [1]

"loss_weights": [
1
]
},
"arch": "ERGB2DepthRecurrent",
"use_phased_arch": false,
Expand All @@ -86,11 +90,14 @@
"skip_type": "sum",
"recurrent_block_type": "conv",
"state_combination": "convlstm",
"spatial_resolution": [112, 112],
"spatial_resolution": [
112,
112
],
"num_encoders": 3,
"base_num_channels": 32,
"num_residual_blocks": 2,
"use_upsample_conv": true,
"norm": "none"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"data_loader": {
"train": {
"type": "SequenceSynchronizedFramesEventsDataset",
"base_folder": "dataset_mathias_23_07/train",
"base_folder": "train",
"depth_folder": "depth/data",
"frame_folder": "rgb/data",
"flow_folder": "",
"event_folder": "events/voxels",
"event_folder": "events/data",
"proba_pause_when_running": 0.0,
"proba_pause_when_paused": 0.0,
"step_size": 5,
Expand All @@ -21,11 +21,11 @@
},
"validation": {
"type": "SequenceSynchronizedFramesEventsDataset",
"base_folder": "dataset_mathias_23_07/validation",
"base_folder": "val",
"frame_folder": "rgb/data",
"depth_folder": "depth/data",
"flow_folder": "",
"event_folder": "events/voxels",
"event_folder": "events/data",
"proba_pause_when_running": 0.0,
"proba_pause_when_paused": 0.0,
"step_size": 5,
Expand Down Expand Up @@ -53,7 +53,10 @@
},
"loss": {
"type": "scale_invariant_loss",
"config": {"weight": 1.0, "n_lambda" : 1.0}
"config": {
"weight": 1.0,
"n_lambda": 1.0
}
},
"grad_loss": {
"weight": 0.25
Expand All @@ -67,7 +70,7 @@
"trainer": {
"epochs": 201,
"sequence_length": 10,
"save_dir": "/data/storage/michelle/e2depth_checkpoints/EventScape",
"save_dir": "/archive/sony/pietro/ramnet_eventscape",
"save_freq": 4,
"verbosity": 2,
"monitor": "val_loss",
Expand All @@ -77,8 +80,9 @@
"still_previews": true,
"grid_loss": true,
"loss_composition": "image",
"loss_weights": [1]

"loss_weights": [
1
]
},
"arch": "ERGB2DepthRecurrent",
"use_phased_arch": false,
Expand All @@ -88,11 +92,14 @@
"skip_type": "sum",
"recurrent_block_type": "conv",
"state_combination": "convlstm",
"spatial_resolution": [112, 112],
"spatial_resolution": [
112,
112
],
"num_encoders": 3,
"base_num_channels": 32,
"num_residual_blocks": 2,
"use_upsample_conv": true,
"norm": "none"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"data_loader": {
"train": {
"type": "SequenceSynchronizedFramesEventsDataset",
"base_folder": "dataset_mathias_23_07/train",
"base_folder": "train",
"depth_folder": "depth/data",
"frame_folder": "rgb/data",
"flow_folder": "",
Expand All @@ -21,7 +21,7 @@
},
"validation": {
"type": "SequenceSynchronizedFramesEventsDataset",
"base_folder": "dataset_mathias_23_07/validation",
"base_folder": "val",
"frame_folder": "rgb/data",
"depth_folder": "depth/data",
"flow_folder": "",
Expand Down Expand Up @@ -53,7 +53,10 @@
},
"loss": {
"type": "scale_invariant_loss",
"config": {"weight": 1.0, "n_lambda" : 1.0}
"config": {
"weight": 1.0,
"n_lambda": 1.0
}
},
"grad_loss": {
"weight": 0.25
Expand All @@ -67,7 +70,7 @@
"trainer": {
"epochs": 100,
"sequence_length": 1,
"save_dir": "/data/storage/michelle/e2depth_checkpoints/final_tests",
"save_dir": "/archive/sony/pietro/ramnet_eventscape",
"save_freq": 4,
"verbosity": 2,
"monitor": "val_loss",
Expand All @@ -77,8 +80,9 @@
"still_previews": true,
"grid_loss": true,
"loss_composition": "image",
"loss_weights": [1]

"loss_weights": [
1
]
},
"arch": "ERGB2Depth",
"use_phased_arch": false,
Expand All @@ -88,11 +92,14 @@
"skip_type": "sum",
"recurrent_block_type": "conv",
"state_combination": "convlstm",
"spatial_resolution": [112, 112],
"spatial_resolution": [
112,
112
],
"num_encoders": 3,
"base_num_channels": 32,
"num_residual_blocks": 2,
"use_upsample_conv": true,
"norm": "none"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"data_loader": {
"train": {
"type": "SequenceSynchronizedFramesEventsDataset",
"base_folder": "dataset_mathias_23_07/train",
"base_folder": "train",
"depth_folder": "depth/data",
"frame_folder": "rgb/data",
"flow_folder": "",
"event_folder": "events/voxels",
"event_folder": "events/data",
"proba_pause_when_running": 0.0,
"proba_pause_when_paused": 0.0,
"step_size": 5,
Expand All @@ -21,11 +21,11 @@
},
"validation": {
"type": "SequenceSynchronizedFramesEventsDataset",
"base_folder": "dataset_mathias_23_07/validation",
"base_folder": "val",
"frame_folder": "rgb/data",
"depth_folder": "depth/data",
"flow_folder": "",
"event_folder": "events/voxels",
"event_folder": "events/data",
"proba_pause_when_running": 0.0,
"proba_pause_when_paused": 0.0,
"step_size": 5,
Expand Down Expand Up @@ -55,7 +55,8 @@
"type": "scale_invariant_loss",
"config": {
"weight": 1.0,
"n_lambda": 1.0}
"n_lambda": 1.0
}
},
"grad_loss": {
"weight": 0.25
Expand All @@ -71,7 +72,7 @@
"trainer": {
"epochs": 201,
"sequence_length": 10,
"save_dir": "/data/storage/michelle/e2depth_checkpoints/EventScape",
"save_dir": "/archive/sony/pietro/ramnet_eventscape",
"save_freq": 4,
"verbosity": 2,
"monitor": "val_loss",
Expand All @@ -81,8 +82,9 @@
"still_previews": true,
"grid_loss": true,
"loss_composition": "image",
"loss_weights": [1]

"loss_weights": [
1
]
},
"arch": "ERGB2DepthRecurrent",
"use_phased_arch": false,
Expand All @@ -102,4 +104,4 @@
"use_upsample_conv": true,
"norm": "none"
}
}
}
32 changes: 22 additions & 10 deletions RAM_Net/configs/train_e2depth_si_grad_loss_statenet_ergb.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"data_loader": {
"train": {
"type": "SequenceSynchronizedFramesEventsDataset",
"base_folder": "dataset_mathias_23_07/train",
"base_folder": "train",
"depth_folder": "depth/data",
"frame_folder": "rgb/data",
"flow_folder": "",
"event_folder": "events/voxels",
"event_folder": "events/data",
"proba_pause_when_running": 0.0,
"proba_pause_when_paused": 0.0,
"step_size": 5000,
Expand All @@ -21,11 +21,11 @@
},
"validation": {
"type": "SequenceSynchronizedFramesEventsDataset",
"base_folder": "dataset_mathias_23_07/validation",
"base_folder": "val",
"frame_folder": "rgb/data",
"depth_folder": "depth/data",
"flow_folder": "",
"event_folder": "events/voxels",
"event_folder": "events/data",
"proba_pause_when_running": 0.0,
"proba_pause_when_paused": 0.0,
"step_size": 5000,
Expand Down Expand Up @@ -53,7 +53,10 @@
},
"loss": {
"type": "scale_invariant_loss",
"config": {"weight": 1.0, "n_lambda" : 1.0}
"config": {
"weight": 1.0,
"n_lambda": 1.0
}
},
"grad_loss": {
"weight": 0.25
Expand All @@ -67,7 +70,7 @@
"trainer": {
"epochs": 201,
"sequence_length": 10,
"save_dir": "/data/storage/michelle/e2depth_checkpoints/final_tests",
"save_dir": "/archive/sony/pietro/ramnet_eventscape",
"save_freq": 4,
"verbosity": 2,
"monitor": "val_loss",
Expand All @@ -76,8 +79,14 @@
"num_val_previews": 2,
"still_previews": true,
"grid_loss": true,
"loss_composition": ["image", "events4"],
"loss_weights": [1, 1]
"loss_composition": [
"image",
"events4"
],
"loss_weights": [
1,
1
]
},
"arch": "ERGB2DepthRecurrent",
"use_phased_arch": false,
Expand All @@ -87,11 +96,14 @@
"skip_type": "sum",
"recurrent_block_type": "conv",
"state_combination": "convgru",
"spatial_resolution": [112,112],
"spatial_resolution": [
112,
112
],
"num_encoders": 3,
"base_num_channels": 32,
"num_residual_blocks": 2,
"use_upsample_conv": true,
"norm": "none"
}
}
}
Loading