Giter VIP home page Giter VIP logo

deep_learning_lecture's Introduction

Deep learning: an historical perspective

Description

This repository contains the sildes of the introduction to deep learning 3h lecture given at the ECAS-ENBIS 1-Day Summer School, on the 6 of september, 2018 (00_Main_Deep_2018.pdf)

It comes together with practical exercices on deep learning with the solution in python based on keras

Deep learning practical session

Requirements

Keras should be available on your python environment.
You can install this library in the local environment using pip (pip3 install keras)

TP_Deep_2_webcam.py require opencv-python
You can also install this library in the local environment using pip (pip install opencv-python)

TP_Deep_1_MNIST.py (based on MNIST)

The purpose of this code is to help to take our first step in deep learning by reproducing the results given on the MNIST site. In less than 3 minutes, you will build and train a fully connected neural network (NN) performing less than 1.5% error on the MNIST database, and then, in less than 15 minutes, a convolutional neural network performing less than 1% error.
It comes together with the jupyter notebook TP_Deep_1_MNIST.ipynb

TP_Deep_2_webcam.py

require a web cam, and opencv-python pip install opencv-python

TP_Deep_3_fine_tuning.py

It works with the directories contained in these zip files

  • train_cheese.zip
  • test_cheese.zip

to make it run you may:

  • dowload the TP_Deep_3_fine_tuning.py file to some directory and move to this directory with python (e.g. cd ../Deep_learning_lecture)
  • define the class MonArg as follows
class MonArg(object):
   def __init__(self, train, val):
        self.train_dir = train
        self.val_dir = val
        self.nb_epoch = NB_EPOCHS
        self.batch_size = BAT_SIZE
        self.output_model_file = "inceptionv3-ft.model"
        self.plot = "store_true"
  • define some constants
IM_WIDTH, IM_HEIGHT = 299, 299 
NB_EPOCHS = 25
BAT_SIZE = 32
FC_SIZE = 1024
NB_IV3_LAYERS_TO_FREEZE = 172
  • import the TP_Deep_3_fine_tuning.py file and run it
import TP_Deep_3_fine_tuning
TP_Deep_3_fine_tuning.train(MonArg("train_cheese","test_cheese"))

Run the tutorials in Browser

This link is to run the first part of these 3 tutorials, tp1 in the browser with Zero installation time. You just need a google acount. It is all free of charge!

https://colab.research.google.com/github/StephaneCanu/Deep_learning_lecture/blob/master/TP1_MNIST.ipynb#scrollTo=PcgyO7Izza2w

To go further

deep_learning_lecture's People

Contributors

marknabil avatar stephanecanu 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.