File tree 5 files changed +41
-0
lines changed
projects/implicitron_trainer/tests
pytorch3d/implicitron/dataset
5 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,19 @@ data_source_ImplicitronDataSource_args:
129
129
dataset_length_train : 0
130
130
dataset_length_val : 0
131
131
dataset_length_test : 0
132
+ data_loader_map_provider_TrainEvalDataLoaderMapProvider_args :
133
+ batch_size : 1
134
+ num_workers : 0
135
+ dataset_length_train : 0
136
+ dataset_length_val : 0
137
+ dataset_length_test : 0
138
+ train_conditioning_type : SAME
139
+ val_conditioning_type : SAME
140
+ test_conditioning_type : KNOWN
141
+ images_per_seq_options : []
142
+ sample_consecutive_frames : false
143
+ consecutive_frames_max_gap : 0
144
+ consecutive_frames_max_gap_seconds : 0.1
132
145
model_factory_ImplicitronModelFactory_args :
133
146
resume : true
134
147
model_class_type : GenericModel
Original file line number Diff line number Diff line change @@ -136,6 +136,8 @@ def test_yaml_contents(self):
136
136
ds_arg = cfg .data_source_ImplicitronDataSource_args
137
137
ds_arg .dataset_map_provider_JsonIndexDatasetMapProvider_args .dataset_root = ""
138
138
ds_arg .dataset_map_provider_JsonIndexDatasetMapProviderV2_args .dataset_root = ""
139
+ if "dataset_map_provider_SqlIndexDatasetMapProvider_args" in ds_arg :
140
+ del ds_arg .dataset_map_provider_SqlIndexDatasetMapProvider_args
139
141
cfg .training_loop_ImplicitronTrainingLoop_args .visdom_port = 8097
140
142
yaml = OmegaConf .to_yaml (cfg , sort_keys = False )
141
143
if DEBUG :
Original file line number Diff line number Diff line change @@ -72,6 +72,16 @@ def pre_expand(cls) -> None:
72
72
from .rendered_mesh_dataset_map_provider import ( # noqa: F401
73
73
RenderedMeshDatasetMapProvider ,
74
74
)
75
+ from .train_eval_data_loader_provider import ( # noqa: F401
76
+ TrainEvalDataLoaderMapProvider ,
77
+ )
78
+
79
+ try :
80
+ from .sql_dataset_provider import ( # noqa: F401 # pyre-ignore
81
+ SqlIndexDatasetMapProvider ,
82
+ )
83
+ except ModuleNotFoundError :
84
+ pass # environment without SQL dataset
75
85
finally :
76
86
pass
77
87
Original file line number Diff line number Diff line change @@ -116,3 +116,16 @@ data_loader_map_provider_SimpleDataLoaderMapProvider_args:
116
116
dataset_length_train : 0
117
117
dataset_length_val : 0
118
118
dataset_length_test : 0
119
+ data_loader_map_provider_TrainEvalDataLoaderMapProvider_args :
120
+ batch_size : 1
121
+ num_workers : 0
122
+ dataset_length_train : 0
123
+ dataset_length_val : 0
124
+ dataset_length_test : 0
125
+ train_conditioning_type : SAME
126
+ val_conditioning_type : SAME
127
+ test_conditioning_type : KNOWN
128
+ images_per_seq_options : []
129
+ sample_consecutive_frames : false
130
+ consecutive_frames_max_gap : 0
131
+ consecutive_frames_max_gap_seconds : 0.1
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ def test_one(self):
68
68
# making the test invariant to env variables
69
69
cfg .dataset_map_provider_JsonIndexDatasetMapProvider_args .dataset_root = ""
70
70
cfg .dataset_map_provider_JsonIndexDatasetMapProviderV2_args .dataset_root = ""
71
+ # making the test invariant to the presence of SQL dataset
72
+ if "dataset_map_provider_SqlIndexDatasetMapProvider_args" in cfg :
73
+ del cfg .dataset_map_provider_SqlIndexDatasetMapProvider_args
71
74
yaml = OmegaConf .to_yaml (cfg , sort_keys = False )
72
75
if DEBUG :
73
76
(DATA_DIR / "data_source.yaml" ).write_text (yaml )
You can’t perform that action at this time.
0 commit comments