Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Files

Latest commit

c985a71 · Dec 4, 2020

History

History

ResNet-CIFAR10

ResNet-50 with CIFAR-10

This example demonstrates how to train the ResNet-50 network against the CIFAR-10 image classification dataset.

A modified ResNet-50 network is instantiated from the ImageClassificationModels library of standard models, and applied to an instance of the CIFAR-10 dataset. A custom training loop is defined, and the training and test losses and accuracies for each epoch are shown during training.

Setup

To begin, you'll need the latest version of Swift for TensorFlow installed. Make sure you've added the correct version of swift to your path.

To train the model, run:

cd swift-models
swift run -c release ResNet-CIFAR10