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
@@ -2,18 +2,18 @@ import unittest
 
 
 import super_gradients
 import super_gradients
 
 
-from super_gradients import SgModel
+from super_gradients import Trainer
 from super_gradients.training.datasets.dataset_interfaces import LibraryDatasetInterface
 from super_gradients.training.datasets.dataset_interfaces import LibraryDatasetInterface
 
 
 
 
 class TestCifar10Trainer(unittest.TestCase):
 class TestCifar10Trainer(unittest.TestCase):
     def test_train_cifar10(self):
     def test_train_cifar10(self):
         super_gradients.init_trainer()
         super_gradients.init_trainer()
-        model = SgModel("test", model_checkpoints_location='local')
+        trainer = Trainer("test", model_checkpoints_location='local')
         cifar_10_dataset_interface = LibraryDatasetInterface(name="cifar10")
         cifar_10_dataset_interface = LibraryDatasetInterface(name="cifar10")
-        model.connect_dataset_interface(cifar_10_dataset_interface)
-        model.build_model("resnet18_cifar", arch_params={'num_classes': 10})
-        model.train(training_params={"max_epochs": 1})
+        trainer.connect_dataset_interface(cifar_10_dataset_interface)
+        trainer.build_model("resnet18_cifar", arch_params={'num_classes': 10})
+        trainer.train(training_params={"max_epochs": 1})
 
 
 
 
 if __name__ == '__main__':
 if __name__ == '__main__':
Discard
Tip!

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