-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated dataset pre-processing to include JRDB Challenge Dataset.
PiperOrigin-RevId: 579608449
- Loading branch information
1 parent
bf5a824
commit 7825e05
Showing
11 changed files
with
419 additions
and
48 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
111 changes: 111 additions & 0 deletions
111
human_scene_transformer/config/jrdb_challenge/dataset_params.gin
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,111 @@ | ||
TRAIN_SCENES = ['bytes-cafe-2019-02-07_0', | ||
'clark-center-2019-02-28_0', | ||
'clark-center-intersection-2019-02-28_0', | ||
'cubberly-auditorium-2019-04-22_0', | ||
'gates-159-group-meeting-2019-04-03_0', | ||
'gates-ai-lab-2019-02-08_0', | ||
'gates-to-clark-2019-02-28_1', | ||
'hewlett-packard-intersection-2019-01-24_0', | ||
'huang-basement-2019-01-25_0', | ||
'huang-lane-2019-02-12_0', | ||
'memorial-court-2019-03-16_0', | ||
'meyer-green-2019-03-16_0', | ||
'packard-poster-session-2019-03-20_0', | ||
'packard-poster-session-2019-03-20_1', | ||
'stlc-111-2019-04-19_0', | ||
'svl-meeting-gates-2-2019-04-08_0', | ||
'tressider-2019-03-16_0', | ||
'tressider-2019-03-16_1', | ||
'cubberly-auditorium-2019-04-22_1_test', | ||
'discovery-walk-2019-02-28_0_test', | ||
'food-trucks-2019-02-12_0_test', | ||
'gates-ai-lab-2019-04-17_0_test', | ||
'gates-foyer-2019-01-17_0_test', | ||
'gates-to-clark-2019-02-28_0_test', | ||
'hewlett-class-2019-01-23_1_test', | ||
'huang-2-2019-01-25_1_test', | ||
'indoor-coupa-cafe-2019-02-06_0_test', | ||
'lomita-serra-intersection-2019-01-30_0_test', | ||
'nvidia-aud-2019-01-25_0_test', | ||
'nvidia-aud-2019-04-18_1_test', | ||
'outdoor-coupa-cafe-2019-02-06_0_test', | ||
'quarry-road-2019-02-28_0_test', | ||
'stlc-111-2019-04-19_1_test', | ||
'stlc-111-2019-04-19_2_test', | ||
'tressider-2019-04-26_0_test', | ||
'tressider-2019-04-26_1_test', | ||
'clark-center-2019-02-28_1', | ||
'forbes-cafe-2019-01-22_0', | ||
'gates-basement-elevators-2019-01-17_1', | ||
'huang-2-2019-01-25_0', | ||
'jordan-hall-2019-04-22_0', | ||
'nvidia-aud-2019-04-18_0', | ||
'packard-poster-session-2019-03-20_2', | ||
'svl-meeting-gates-2-2019-04-08_1', | ||
'tressider-2019-04-26_2', | ||
'discovery-walk-2019-02-28_1_test', | ||
'gates-basement-elevators-2019-01-17_0_test', | ||
'hewlett-class-2019-01-23_0_test', | ||
'huang-intersection-2019-01-22_0_test', | ||
'meyer-green-2019-03-16_1_test', | ||
'nvidia-aud-2019-04-18_2_test', | ||
'serra-street-2019-01-30_0_test', | ||
'tressider-2019-03-16_2_test', | ||
'tressider-2019-04-26_3_test'] | ||
|
||
TEST_SCENES = [ | ||
'cubberly-auditorium-2019-04-22_1_test', | ||
'discovery-walk-2019-02-28_0_test', | ||
'discovery-walk-2019-02-28_1_test', | ||
'food-trucks-2019-02-12_0_test', | ||
'gates-ai-lab-2019-04-17_0_test', | ||
'gates-basement-elevators-2019-01-17_0_test', | ||
'gates-foyer-2019-01-17_0_test', | ||
'gates-to-clark-2019-02-28_0_test', | ||
'hewlett-class-2019-01-23_0_test', | ||
'hewlett-class-2019-01-23_1_test', | ||
'huang-2-2019-01-25_1_test', | ||
'huang-intersection-2019-01-22_0_test', | ||
'indoor-coupa-cafe-2019-02-06_0_test', | ||
'lomita-serra-intersection-2019-01-30_0_test', | ||
'meyer-green-2019-03-16_1_test', | ||
'nvidia-aud-2019-01-25_0_test', | ||
'nvidia-aud-2019-04-18_1_test', | ||
'nvidia-aud-2019-04-18_2_test', | ||
'outdoor-coupa-cafe-2019-02-06_0_test', | ||
'quarry-road-2019-02-28_0_test', | ||
'serra-street-2019-01-30_0_test', | ||
'stlc-111-2019-04-19_1_test', | ||
'stlc-111-2019-04-19_2_test', | ||
'tressider-2019-03-16_2_test', | ||
'tressider-2019-04-26_0_test', | ||
'tressider-2019-04-26_1_test', | ||
'tressider-2019-04-26_3_test', | ||
] | ||
|
||
|
||
JRDBDatasetParams.path = <dataset_path> | ||
|
||
JRDBDatasetParams.train_scenes = %TRAIN_SCENES | ||
JRDBDatasetParams.eval_scenes = %TEST_SCENES | ||
JRDBDatasetParams.features = [ | ||
'agents/position', | ||
'agents/keypoints', | ||
'robot/position', | ||
'robot/orientation', | ||
'scene/pc' | ||
] | ||
|
||
JRDBDatasetParams.train_split = (0., 1.0) | ||
JRDBDatasetParams.eval_split = (0., 1.0) | ||
|
||
|
||
JRDBDatasetParams.num_history_steps = 11 | ||
JRDBDatasetParams.num_steps = 24 | ||
JRDBDatasetParams.num_agents = 16 | ||
JRDBDatasetParams.timestep = 0.4 | ||
|
||
JRDBDatasetParams.subsample = 6 | ||
JRDBDatasetParams.num_pointcloud_points = 512 | ||
|
||
JRDBDatasetParams.min_distance_to_robot = 50.0 |
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,68 @@ | ||
# All available metrics. | ||
min_ade/metrics.ade.MinADE.cutoff_seconds = None | ||
min_ade1s/metrics.ade.MinADE.cutoff_seconds = 1.0 | ||
min_ade2s/metrics.ade.MinADE.cutoff_seconds = 2.0 | ||
min_ade3s/metrics.ade.MinADE.cutoff_seconds = 3.0 | ||
min_ade4s/metrics.ade.MinADE.cutoff_seconds = 4.0 | ||
|
||
ml_ade/metrics.ade.MLADE.cutoff_seconds = None | ||
ml_ade1s/metrics.ade.MLADE.cutoff_seconds = 1.0 | ||
ml_ade2s/metrics.ade.MLADE.cutoff_seconds = 2.0 | ||
ml_ade3s/metrics.ade.MLADE.cutoff_seconds = 3.0 | ||
ml_ade4s/metrics.ade.MLADE.cutoff_seconds = 4.8 | ||
|
||
pos_nll/metrics.pos_nll.PositionNegativeLogLikelihood.cutoff_seconds = None | ||
pos_nll1s/metrics.pos_nll.PositionNegativeLogLikelihood.cutoff_seconds = 1.0 | ||
pos_nll2s/metrics.pos_nll.PositionNegativeLogLikelihood.cutoff_seconds = 2.0 | ||
pos_nll3s/metrics.pos_nll.PositionNegativeLogLikelihood.cutoff_seconds = 3.0 | ||
pos_nll4s/metrics.pos_nll.PositionNegativeLogLikelihood.cutoff_seconds = 4.8 | ||
|
||
# Training metrics. | ||
get_metrics.train_metrics = { | ||
'loss': @metrics.Mean, | ||
'loss_position': @metrics.Mean, | ||
'loss_orientation': @metrics.Mean, | ||
|
||
'min_ade': @min_ade/metrics.ade.MinADE, | ||
'min_ade1s': @min_ade1s/metrics.ade.MinADE, | ||
'min_ade2s': @min_ade2s/metrics.ade.MinADE, | ||
'min_ade3s': @min_ade3s/metrics.ade.MinADE, | ||
'min_ade4s': @min_ade4s/metrics.ade.MinADE, | ||
|
||
'ml_ade': @ml_ade/metrics.ade.MLADE, | ||
'ml_ade1s': @ml_ade1s/metrics.ade.MLADE, | ||
'ml_ade2s': @ml_ade2s/metrics.ade.MLADE, | ||
'ml_ade3s': @ml_ade3s/metrics.ade.MLADE, | ||
'ml_ade4s': @ml_ade4s/metrics.ade.MLADE, | ||
|
||
'pos_nll': @pos_nll/metrics.pos_nll.PositionNegativeLogLikelihood, | ||
'pos_nll1s': @pos_nll1s/metrics.pos_nll.PositionNegativeLogLikelihood, | ||
'pos_nll2s': @pos_nll2s/metrics.pos_nll.PositionNegativeLogLikelihood, | ||
'pos_nll3s': @pos_nll3s/metrics.pos_nll.PositionNegativeLogLikelihood, | ||
'pos_nll4s': @pos_nll4s/metrics.pos_nll.PositionNegativeLogLikelihood, | ||
} | ||
|
||
# Eval metrics. | ||
get_metrics.eval_metrics = { | ||
'loss': @metrics.Mean, | ||
'loss_position': @metrics.Mean, | ||
'loss_orientation': @metrics.Mean, | ||
|
||
'min_ade': @min_ade/metrics.ade.MinADE, | ||
'min_ade1s': @min_ade1s/metrics.ade.MinADE, | ||
'min_ade2s': @min_ade2s/metrics.ade.MinADE, | ||
'min_ade3s': @min_ade3s/metrics.ade.MinADE, | ||
'min_ade4s': @min_ade4s/metrics.ade.MinADE, | ||
|
||
'ml_ade': @ml_ade/metrics.ade.MLADE, | ||
'ml_ade1s': @ml_ade1s/metrics.ade.MLADE, | ||
'ml_ade2s': @ml_ade2s/metrics.ade.MLADE, | ||
'ml_ade3s': @ml_ade3s/metrics.ade.MLADE, | ||
'ml_ade4s': @ml_ade4s/metrics.ade.MLADE, | ||
|
||
'pos_nll': @pos_nll/metrics.pos_nll.PositionNegativeLogLikelihood, | ||
'pos_nll1s': @pos_nll1s/metrics.pos_nll.PositionNegativeLogLikelihood, | ||
'pos_nll2s': @pos_nll2s/metrics.pos_nll.PositionNegativeLogLikelihood, | ||
'pos_nll3s': @pos_nll3s/metrics.pos_nll.PositionNegativeLogLikelihood, | ||
'pos_nll4s': @pos_nll4s/metrics.pos_nll.PositionNegativeLogLikelihood, | ||
} |
32 changes: 32 additions & 0 deletions
32
human_scene_transformer/config/jrdb_challenge/model_params.gin
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,32 @@ | ||
ModelParams.agents_position_key = 'agents/position' | ||
ModelParams.agents_feature_config = { | ||
'agents/position': @AgentPositionEncoder, | ||
'agents/keypoints': @AgentKeypointsEncoder, | ||
#'agents/gaze': @Agent2DOrientationEncoder, | ||
} | ||
ModelParams.hidden_size = 128 | ||
ModelParams.feature_embedding_size = 128 | ||
ModelParams.transformer_ff_dim = 128 | ||
|
||
ModelParams.num_heads = 4 | ||
ModelParams.num_modes = 4 | ||
ModelParams.scene_encoder = @PointCloudEncoderLayer | ||
ModelParams.attn_architecture = ( | ||
'self-attention', | ||
'self-attention', | ||
'cross-attention', | ||
'multimodality_induction', | ||
'self-attention', | ||
'self-attention-mode', | ||
'self-attention', | ||
'self-attention-mode', | ||
) | ||
ModelParams.mask_style = "has_historic_data" | ||
ModelParams.drop_prob = 0.1 | ||
ModelParams.prediction_head = @Prediction2DPositionHeadLayer | ||
|
||
ModelParams.num_history_steps = 11 | ||
ModelParams.num_steps = 24 | ||
ModelParams.timestep = 0.4 | ||
# Must be one of the classes in is_hidden_generators.py. | ||
ModelParams.is_hidden_generator = @BPIsHiddenGenerator |
10 changes: 10 additions & 0 deletions
10
human_scene_transformer/config/jrdb_challenge/training_params.gin
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,10 @@ | ||
TrainingParams.batch_size = 64 | ||
TrainingParams.shuffle_buffer_size = 10000 | ||
TrainingParams.total_train_steps = 2e6 | ||
TrainingParams.warmup_steps = 5e4 | ||
TrainingParams.peak_learning_rate = 1e-4 | ||
#TrainingParams.global_clipnorm = 1. | ||
TrainingParams.batches_per_train_step = 25000 | ||
TrainingParams.batches_per_eval_step = 2000 | ||
TrainingParams.eval_every_n_step = 1e4 | ||
TrainingParams.loss = @MultimodalPositionNLLLoss |
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
Oops, something went wrong.