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

#798 Feature/sg 713 ppyolo L & X models to model zoo

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-713-ppyolo
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
  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. import pkg_resources
  9. from super_gradients import Trainer, init_trainer
  10. @hydra.main(config_path=pkg_resources.resource_filename("super_gradients.recipes", ""), version_base="1.2")
  11. def main(cfg: DictConfig) -> None:
  12. Trainer.train_from_config(cfg)
  13. def run():
  14. init_trainer()
  15. main()
  16. if __name__ == "__main__":
  17. run()
Discard
Tip!

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