mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-20 14:20:38 +08:00
Adding SQL dataset classes to ImplicitronDataSource imports
Summary: Making it easier for the clients to use these datasets. Reviewed By: bottler Differential Revision: D46727179 fbshipit-source-id: cf619aee4c4c0222a74b30ea590cf37f08f014cc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3d886c32d5
commit
cd5db076d5
@@ -116,3 +116,16 @@ data_loader_map_provider_SimpleDataLoaderMapProvider_args:
|
||||
dataset_length_train: 0
|
||||
dataset_length_val: 0
|
||||
dataset_length_test: 0
|
||||
data_loader_map_provider_TrainEvalDataLoaderMapProvider_args:
|
||||
batch_size: 1
|
||||
num_workers: 0
|
||||
dataset_length_train: 0
|
||||
dataset_length_val: 0
|
||||
dataset_length_test: 0
|
||||
train_conditioning_type: SAME
|
||||
val_conditioning_type: SAME
|
||||
test_conditioning_type: KNOWN
|
||||
images_per_seq_options: []
|
||||
sample_consecutive_frames: false
|
||||
consecutive_frames_max_gap: 0
|
||||
consecutive_frames_max_gap_seconds: 0.1
|
||||
|
||||
@@ -68,6 +68,9 @@ class TestDataSource(unittest.TestCase):
|
||||
# making the test invariant to env variables
|
||||
cfg.dataset_map_provider_JsonIndexDatasetMapProvider_args.dataset_root = ""
|
||||
cfg.dataset_map_provider_JsonIndexDatasetMapProviderV2_args.dataset_root = ""
|
||||
# making the test invariant to the presence of SQL dataset
|
||||
if "dataset_map_provider_SqlIndexDatasetMapProvider_args" in cfg:
|
||||
del cfg.dataset_map_provider_SqlIndexDatasetMapProvider_args
|
||||
yaml = OmegaConf.to_yaml(cfg, sort_keys=False)
|
||||
if DEBUG:
|
||||
(DATA_DIR / "data_source.yaml").write_text(yaml)
|
||||
|
||||
Reference in New Issue
Block a user