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

#970 Update YoloNASQuickstart.md

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:bugfix/SG-000_fix_readme_yolonas_snippets
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
  1. """
  2. Entry point for training from a recipe using SuperGradients.
  3. General use: python -m super_gradients.train_from_recipe --config-name="DESIRED_RECIPE".
  4. For recipe's specific instructions and details refer to the recipe's configuration file in the recipes directory.
  5. """
  6. from omegaconf import DictConfig
  7. import hydra
  8. from super_gradients import Trainer, init_trainer
  9. @hydra.main(config_path="recipes", version_base="1.2")
  10. def _main(cfg: DictConfig) -> None:
  11. Trainer.train_from_config(cfg)
  12. def main() -> None:
  13. init_trainer() # `init_trainer` needs to be called before `@hydra.main`
  14. _main()
  15. if __name__ == "__main__":
  16. main()
Discard
Tip!

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