Thank you! We'll be in touch ASAP.
Something went wrong, please try again or contact us directly at contact@dagshub.com
Deci-AI:master
deci-ai:feature/SG-171-Make_coco_inherit_from_detection_dataset
import unittest import super_gradients from super_gradients import SgModel from super_gradients.training.datasets.dataset_interfaces import LibraryDatasetInterface class TestCifar10Trainer(unittest.TestCase): def test_train_cifar10(self): super_gradients.init_trainer() model = SgModel("test", model_checkpoints_location='local') 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}) if __name__ == '__main__': unittest.main()
Press p or to see the previous file or, n or to see the next file