File tree 2 files changed +21
-15
lines changed
{{cookiecutter.project_slug}}
2 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 18
18
19
19
20
20
train :
21
- experiment_dir : ??? # TODO specify the path to save the run results, will also be used to store checkpoints etc.
21
+ experiment_dir : ??? # TODO specify the path to save the run results, will also be used to store checkpoints etc.
22
+ input_shape : # TODO specify the input shape of the model
23
+ - ???
24
+ - ???
25
+ - ???
26
+
27
+ validate :
28
+ batch_size : ???
29
+ container : ${data.container}
30
+ dataset : ${data.dataset}
31
+ num_transmitters : ${gt.num_transmitters}
32
+ experiment_dir : ${train.experiment_dir}
33
+ checkpoint_number : ???
34
+ input_shape : ${train.input_shape}
35
+ num_workers : 12
36
+ nt_name : ${gt.nt_name}
37
+ point_id : ${gt.point_id}
38
+ num_partitions : 10
39
+ partition_id : 1
40
+ output_dir : ??? # TODO specify the path to save the validation results, optional
Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ def validate(
253
253
save_output (results , identifiers , class_names_ordered , output_file )
254
254
logging .info (f"Intermediate results saved to { output_file } " )
255
255
256
- @hydra .main (config_path = "../config" , config_name = "validate " )
256
+ @hydra .main (config_path = "../config" , config_name = "config " )
257
257
def main (cfg : DictConfig ):
258
258
logging .basicConfig (
259
259
level = logging .INFO ,
@@ -267,25 +267,12 @@ def main(cfg: DictConfig):
267
267
# training data
268
268
validation_data = cfg .gt .val
269
269
270
- num_partitions = 1
271
- partition_id = 1
272
- if "num_partitions" in cfg :
273
- num_partitions = cfg .num_partitions
274
- if "partition_id" in cfg :
275
- partition_id = cfg .partition_id
276
- output_dir = None
277
- if "output_dir" in cfg :
278
- output_dir = cfg .output_dir
279
-
280
270
# run validation
281
271
validate (
282
272
model = model ,
283
273
# Get the data location
284
274
val_gt_location = validation_data ,
285
275
** cfg .validate ,
286
- num_partitions = num_partitions ,
287
- partition_id = partition_id ,
288
- output_dir = output_dir ,
289
276
)
290
277
291
278
You can’t perform that action at this time.
0 commit comments