forked from ruhyadi/yolo3d-lightning
-
Notifications
You must be signed in to change notification settings - Fork 1
/
convert.yaml
39 lines (28 loc) · 837 Bytes
/
convert.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# @package _global_
# specify here default training configuration
defaults:
- _self_
- model: regressor.yaml
# enable color logging
- override hydra/hydra_logging: colorlog
- override hydra/job_logging: colorlog
# pretty print config at the start of the run using Rich library
print_config: True
# disable python warnings if they annoy you
ignore_warnings: True
# root
root: ${hydra:runtime.cwd}
# TODO: cahnge to your checkpoint file
checkpoint_dir: ${root}/weights/last.ckpt
# dump dir
dump_dir: ${root}/weights
# input sample shape
input_sample:
__target__: torch.randn
size: (1, 3, 224, 224)
# convert to
convert_to: "pytorch" # [pytorch, onnx, tensorrt]
# TODO: model name without extension
name: ${dump_dir}/pytorch-kitti
# convert_to: "onnx" # [pytorch, onnx, tensorrt]
# name: ${dump_dir}/onnx-3d-0817-5