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

#313 Feature/sg 187 rename sg model

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-187_rename_sg_model
@@ -1,7 +1,7 @@
 import unittest
 import unittest
 from super_gradients.training.utils.utils import HpmStruct
 from super_gradients.training.utils.utils import HpmStruct
 from super_gradients.training.datasets.dataset_interfaces.dataset_interface import ClassificationTestDatasetInterface
 from super_gradients.training.datasets.dataset_interfaces.dataset_interface import ClassificationTestDatasetInterface
-from super_gradients import SgModel
+from super_gradients import Trainer
 from super_gradients.training.metrics import Accuracy, Top5
 from super_gradients.training.metrics import Accuracy, Top5
 
 
 
 
@@ -21,10 +21,10 @@ class TestViT(unittest.TestCase):
         """
         """
         Validate vit_base
         Validate vit_base
         """
         """
-        model = SgModel("test_vit_base", device='cpu')
-        model.connect_dataset_interface(self.dataset, data_loader_num_workers=8)
-        model.build_model('vit_base', load_checkpoint=False)
-        model.train(training_params=self.train_params)
+        trainer = Trainer("test_vit_base", device='cpu')
+        trainer.connect_dataset_interface(self.dataset, data_loader_num_workers=8)
+        trainer.build_model('vit_base', load_checkpoint=False)
+        trainer.train(training_params=self.train_params)
 
 
 
 
 if __name__ == '__main__':
 if __name__ == '__main__':
Discard
Tip!

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