mlx-examples/cifar
2023-12-12 19:07:39 +01:00
..
dataset.py added CIFAR10 + ResNet example 2023-12-12 19:01:06 +01:00
main.py added CIFAR10 + ResNet example 2023-12-12 19:01:06 +01:00
README.md added CIFAR10 + ResNet example 2023-12-12 19:01:06 +01:00
requirements.txt added CIFAR10 + ResNet example 2023-12-12 19:01:06 +01:00
resnet.py fixed doc for ResNet 2023-12-12 19:07:39 +01:00

CIFAR and ResNets

  • This example shows how to run ResNets on CIFAR10 dataset, in accordance with the original paper.
  • Also illustrates how to use mlx-data to download and load the dataset.

Pre-requisites

  • Install the dependencies:
pip install -r requirements.txt

Running the example

Run the example with:

python main.py

By default the example runs on the GPU. To run on the CPU, use:

python main.py --cpu_only

For all available options, run:

python main.py --help