Coder Social home page Coder Social logo

martijnvwezel / resnet-attention-layer-custom-data-set Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 20 KB

This is a deep learning network: ResNet with an attention layer that can be used on a custom data set.

License: GNU Lesser General Public License v3.0

Python 100.00%
attention deep-learning resnet attention-layer custom-dataset resnet-attention-layer

resnet-attention-layer-custom-data-set's Introduction

ResNet with attention-layer on custom data set.

Here is a ResNet with attention layers that are designed for custom data sets. There is always a way for improvements, but this would get you started. The training.py is compatible with the CIFAR data sets. The attention layer is based on the following github page (commit version: 15c111d).

This is the cleaned version, maybe some mistakes namings are wrong, like the test script is missing

Usage

Install with anaconda python 3 version and Keras. Go to the train directory.
Change in vars.py the variables for your dataset.

Always double check if function load_custom_data(...) is uncommented if you learn on your own data set

# Start training
python training.py

Dataset structure

The directory names (train, validation, test) can be changed in the vars.py file if needed.
In the vars.py there are some defines that depense on your data set, like the class_names.

Dataset structure: 
        [path_to_dataset]/train/[class_directorys]/[files]
        [path_to_dataset]/validation/[class_directorys]/[files]
        [path_to_dataset]/test/[class_directorys]/[files]

Made by:

[email protected] and @RensHam

resnet-attention-layer-custom-data-set's People

Contributors

martijnvwezel avatar rensham avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

anthar

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.