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

#875 Feature/sg 761 yolo nas

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-761-yolo-nas
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
  1. """
  2. Example code for running SuperGradient's recipes.
  3. General use: python convert_recipe_example.py --config-name=DESIRED_RECIPE'S_CONVERSION_PARAMS experiment_name=DESIRED_RECIPE'S_EXPERIMENT_NAME.
  4. For more optoins see : super_gradients/recipes/conversion_params/default_conversion_params.yaml.
  5. Note: conversion_params yaml file should reside under super_gradients/recipes/conversion_params
  6. """
  7. from omegaconf import DictConfig
  8. import hydra
  9. import pkg_resources
  10. from super_gradients import init_trainer
  11. from super_gradients.training import models
  12. @hydra.main(config_path=pkg_resources.resource_filename("super_gradients.recipes.conversion_params", ""), version_base="1.2")
  13. def main(cfg: DictConfig) -> None:
  14. # INSTANTIATE ALL OBJECTS IN CFG
  15. models.convert_from_config(cfg)
  16. def run():
  17. init_trainer()
  18. main()
  19. if __name__ == "__main__":
  20. run()
Discard
Tip!

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