FBX Handler
Load file:
input_file = Path('/path/to/file.fbx')
container = FBXContainer(input_file)
Preprocess data:
container.init_world_transforms(r=...)
train_raw_data = container.extract_training_translations()
test_raw_data = container.extract_inf_translations()
Training workflow:
container = FBXContainer(input_file)
actors_train, markers_train, t_test, _, _ = container.get_split_transforms(mode='train')
...
Testing workflow:
container = FBXContainer(input_file)
actors_test, markers_test, t_test, r_test_, s_test = container.get_split_transforms(mode='test')
actors_pred, markers_pred = Labeler(scale_translations(t_test))
merged = merge_tdc(actors_pred, markers_pred, t_test, r_test, s_test)
new_dict = array_to_dict(merged)
container.replace_keyframes_for_all_actors(new_dict)
container.export_fbx(Path('/path/to/outputfile.fbx'))