Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

default_conversion_params.yaml 1.8 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  1. experiment_name: # The experiment name used to train the model (optional- ignored when checkpoint_path is given)
  2. ckpt_root_dir: # The checkpoint root directory, s.t ckpt_root_dir/experiment_name/ckpt_name resides.
  3. # Can be ignored if the checkpoints directory is the default (i.e path to checkpoints module from contents root), or when checkpoint_path is given
  4. ckpt_name: ckpt_best.pth # Name of the checkpoint to export ("ckpt_latest.pth", "average_model.pth" or "ckpt_best.pth" for instance).
  5. checkpoint_path:
  6. strict_load: no_key_matching # One of [On, Off, no_key_matching] (case insensitive) See super_gradients/common/data_types/enum/strict_load.py
  7. # NOTES ON: ckpt_root_dir, checkpoint_path, and ckpt_name:
  8. # - ckpt_root_dir, experiment_name and ckpt_name are only used when checkpoint_path is None.
  9. # - when checkpoint_path is None, the model will be vuilt according to the output yaml config inside ckpt_root_dir/experiment_name/ckpt_name. Also note that in
  10. # this case its also legal not to pass ckpt_root_dir, which will be resolved to the default SG ckpt dir.
  11. # CONVERSION RELATED PARAMS
  12. out_path: # str, Destination path for the .onnx file. When None- will be set to the checkpoint_path.replace(".ckpt",".onnx").
  13. input_shape: # input shape, not including batch_size. Always channels first (i.e (3, 224, 224)).
  14. pre_process: # Preprocessing pipeline, will be resolved by TransformsFactory(), and will be baked into the converted model (optional).
  15. post_process: # Postprocessing pipeline, will be resolved by TransformsFactory(), and will be baked into the converted model (optional).
  16. prep_model_for_conversion_kwargs: # For SgModules, args to be passed to model.prep_model_for_conversion prior to torch.onnx.export call.
  17. torch_onnx_export_kwargs: # kwargs (EXCLUDING: FIRST 3 KWARGS- MODEL, F, ARGS). to be unpacked in torch.onnx.export call
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...