Git Product home page Git Product logo

mlx-resnet's Introduction

๐Ÿ MLX - ResNet ๐Ÿ

ResNet implementation with the MLX, Apple's deep learning framework.

Drop a โญ๏ธ!!

MNIST with ResNet18

Here the logs when training with ResNet18 (no tuning at all) for couple epochs:

Epoch: 0 | Iter: 0 | Loss: 2.550
Epoch: 0 | Iter: 50 | Loss: 1.813
Epoch: 0 | Iter: 100 | Loss: 1.241
Epoch: 0 | Iter: 150 | Loss: 0.965
Epoch: 0 | Iter: 200 | Loss: 0.741
Epoch 0: Test accuracy 0.671
Epoch: 1 | Iter: 0 | Loss: 1.039
Epoch: 1 | Iter: 50 | Loss: 0.491
Epoch: 1 | Iter: 100 | Loss: 0.471
Epoch: 1 | Iter: 150 | Loss: 0.497
Epoch: 1 | Iter: 200 | Loss: 0.377
Epoch 1: Test accuracy 0.876
Epoch: 2 | Iter: 0 | Loss: 0.425
Epoch: 2 | Iter: 50 | Loss: 0.367
Epoch: 2 | Iter: 100 | Loss: 0.334
Epoch: 2 | Iter: 150 | Loss: 0.323
Epoch: 2 | Iter: 200 | Loss: 0.346
Epoch 2: Test accuracy 0.916
Epoch: 3 | Iter: 0 | Loss: 0.334
Epoch: 3 | Iter: 50 | Loss: 0.308
Epoch: 3 | Iter: 100 | Loss: 0.282
Epoch: 3 | Iter: 150 | Loss: 0.230
Epoch: 3 | Iter: 200 | Loss: 0.173
Epoch 3: Test accuracy 0.902
Epoch: 4 | Iter: 0 | Loss: 0.282
Epoch: 4 | Iter: 50 | Loss: 0.184
Epoch: 4 | Iter: 100 | Loss: 0.268
Epoch: 4 | Iter: 150 | Loss: 0.205
Epoch: 4 | Iter: 200 | Loss: 0.246
Epoch 4: Test accuracy 0.932

Future updates

  • dilation and groups features in convolutional layers is missing (issue created). More recent ResNet requires this parameters.
  • Batch norm is also missing.
  • No pretrained weights.

Contribute

Feel free to create issues and PRs :)

mlx-resnet's People

Contributors

aavache avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.