-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added minibatch support to Test-Time Optimization methods (#16)
* Renamed existing TTO to be whole batch * Migrated shared resources * Moved resources around * Fixed loader import * Added sequence minibatcher * Added minibatch tests * More cleanups. loss_fn currently broken * Converted to using model based loss fn * Checkpoint down past the minute * Added missing arg * Added minibatcher type * Moved models to separate folders * First cut at working NSFP with new wrapper * Fixed FastNSF and NSFP tests. * Fixed constant baseline * Fixed liu 2024 * Deleted cruft * Added minibatch optim loop as simple extension * First cut at minibatched gigachad * Added trainable Gigachad * Cleaned up naming, passed args to Liu 2024 subcomponents properly
- Loading branch information
1 parent
b007026
commit cb570aa
Showing
96 changed files
with
1,512 additions
and
1,724 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 |
---|---|---|
|
@@ -26,4 +26,4 @@ checkpoint_eval_launch_dir/ | |
screenshots*/ | ||
eval_results/ | ||
launch_files/ | ||
tests/*/config/ | ||
tests/*/config*/ |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
configs/gigachad_nsf/argo/noncausal_minibatched/val_debug.py
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,38 @@ | ||
has_labels = False | ||
|
||
SEQUENCE_LENGTH = 150 | ||
|
||
test_dataset_root = "/efs/argoverse2_small/val/" | ||
save_output_folder = "/efs/argoverse2_small/val_gigachad_nsf_flow_feather/" | ||
|
||
|
||
model = dict( | ||
name="GigachadNSFOptimizationLoop", | ||
args=dict(save_flow_every=1, minibatch_size=10, speed_threshold=30.0 / 10.0), | ||
) | ||
|
||
epochs = 5000 | ||
learning_rate = 0.008 | ||
save_every = 500 | ||
validate_every = 500 | ||
|
||
train_dataset = dict( | ||
name="BucketedSceneFlowDataset", | ||
args=dict( | ||
dataset_name="Argoverse2NonCausalSceneFlow", | ||
root_dir=test_dataset_root, | ||
with_ground=False, | ||
with_rgb=False, | ||
eval_type="bucketed_epe", | ||
eval_args=dict(), | ||
subsequence_length=SEQUENCE_LENGTH, | ||
split=dict(split_idx=0, num_splits=2), | ||
), | ||
) | ||
|
||
|
||
train_dataloader = dict(args=dict(batch_size=1, num_workers=0, shuffle=False, pin_memory=True)) | ||
|
||
|
||
test_dataset = train_dataset.copy() | ||
test_dataloader = train_dataloader.copy() |
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 |
---|---|---|
@@ -1,42 +1,13 @@ | ||
from .loaders import ( | ||
load_pickle, | ||
save_pickle, | ||
load_json, | ||
save_json, | ||
load_csv, | ||
save_csv, | ||
run_cmd, | ||
load_npz, | ||
save_npz, | ||
load_npy, | ||
save_npy, | ||
load_txt, | ||
save_txt, | ||
save_feather, | ||
load_feather, | ||
save_by_extension, | ||
load_by_extension, | ||
) | ||
|
||
from .model_wrapper import ModelWrapper | ||
from .tb_logging import setup_tb_logger | ||
from .checkpointing import get_checkpoint_path, setup_model | ||
from .dataloading import make_dataloader | ||
|
||
|
||
__all__ = [ | ||
"load_pickle", | ||
"save_pickle", | ||
"load_json", | ||
"save_json", | ||
"load_csv", | ||
"save_csv", | ||
"load_npz", | ||
"save_npz", | ||
"load_npy", | ||
"save_npy", | ||
"run_cmd", | ||
"load_txt", | ||
"save_txt", | ||
"load_feather", | ||
"save_feather", | ||
"save_by_extension", | ||
"load_by_extension", | ||
"ModelWrapper", | ||
] | ||
"setup_tb_logger", | ||
"get_checkpoint_path", | ||
"setup_model", | ||
"make_dataloader", | ||
] |
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.