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

training_params_factory_test.py 683 B

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
  1. import unittest
  2. from super_gradients.training import training_hyperparams
  3. class TrainingParamsTest(unittest.TestCase):
  4. def test_get_train_params(self):
  5. train_params = training_hyperparams.coco2017_yolox_train_params()
  6. self.assertTrue(train_params["loss"] == "yolox_loss")
  7. self.assertTrue(train_params["max_epochs"] == 300)
  8. def test_get_train_params_with_overrides(self):
  9. train_params = training_hyperparams.coco2017_yolox_train_params(overriding_params={"max_epochs": 5})
  10. self.assertTrue(train_params["loss"] == "yolox_loss")
  11. self.assertTrue(train_params["max_epochs"] == 5)
  12. if __name__ == '__main__':
  13. unittest.main()
Tip!

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

Comments

Loading...