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
  1. """
  2. Example code for resuming SuperGradient's recipes.
  3. General use: python -m super_gradients.resume_experiment --experiment_name=resnet18_cifar
  4. """
  5. from super_gradients import Trainer, init_trainer
  6. from super_gradients.common.environment.argparse_utils import pop_arg
  7. def main() -> None:
  8. init_trainer()
  9. experiment_name = pop_arg("experiment_name")
  10. ckpt_root_dir = pop_arg("ckpt_root_dir")
  11. Trainer.resume_experiment(experiment_name=experiment_name, ckpt_root_dir=ckpt_root_dir)
  12. if __name__ == "__main__":
  13. main()
Discard
Tip!

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