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,5 +1,6 @@
 import unittest
 import unittest
 
 
+from super_gradients.common.object_names import Models
 from super_gradients.training import models
 from super_gradients.training import models
 
 
 from super_gradients import Trainer
 from super_gradients import Trainer
@@ -27,7 +28,7 @@ class InitializeWithDataloadersTest(unittest.TestCase):
 
 
     def test_train_with_dataloaders(self):
     def test_train_with_dataloaders(self):
         trainer = Trainer(experiment_name="test_name")
         trainer = Trainer(experiment_name="test_name")
-        model = models.get("resnet18", num_classes=5)
+        model = models.get(Models.RESNET18, num_classes=5)
         trainer.train(
         trainer.train(
             model=model,
             model=model,
             training_params={
             training_params={
Discard
Tip!

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