(name, cfg, cfg_dict, root_box: Sandbox)
| 10 | |
| 11 | |
| 12 | def execute_experiment(name, cfg, cfg_dict, root_box: Sandbox) -> str: |
| 13 | # Execute an experiment, and return the spaceID |
| 14 | exp_space = root_box.new_child(name) |
| 15 | exp_space.config = cfg_dict |
| 16 | |
| 17 | sequence = smart_transform( |
| 18 | SequenceBase[StereoFrame].instantiate(cfg.Data.type, cfg.Data.args), |
| 19 | cfg.Preprocess |
| 20 | ).preload() |
| 21 | system = DeepPatchVO.from_config(cfg, sequence) |
| 22 | system.receive_frames(sequence, exp_space) |
| 23 | |
| 24 | return str(exp_space.folder) |
| 25 | |
| 26 | |
| 27 | if __name__ == "__main__": |
no test coverage detected