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

#614 Feature/sg 493 modelnames instead of strings

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-493_modelnames_instead_of_strings
@@ -1,6 +1,7 @@
 import shutil
 import shutil
 import unittest
 import unittest
 
 
+from super_gradients.common.object_names import Models
 from super_gradients.training import models
 from super_gradients.training import models
 
 
 import super_gradients
 import super_gradients
@@ -41,7 +42,7 @@ class TestTrainer(unittest.TestCase):
     @staticmethod
     @staticmethod
     def get_classification_trainer(name=""):
     def get_classification_trainer(name=""):
         trainer = Trainer(name)
         trainer = Trainer(name)
-        model = models.get("resnet18", num_classes=5)
+        model = models.get(Models.RESNET18, num_classes=5)
         return trainer, model
         return trainer, model
 
 
     def test_train(self):
     def test_train(self):
Discard
Tip!

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