Giter VIP home page Giter VIP logo

keras_zoo's Introduction

Keras implementation of Classification, Detection and Segmentation Networks

Introduction

This repo contains the code to train and evaluate state of the art classification, detection and segmentation methods in a unified Keras framework working with Theano and TensorFlow. Pretrained models are also supplied.

Available models

Classification

Detection

Segmentation

Available dataset wrappers

Classification

  • MIT dataset described in .
  • TT100K classsification dataset described in .
  • INRIA pedestrian dataset described in .
  • ImageNet dataset described in .
  • Pascal dataset described in .

Detection

  • TT100K detection dataset described in .
  • INRIA pedestrian dataset described in .

Segmentation

Installation

You need to install :

Run experiments

All the parameters of the experiment are defined at config/dataset.py where dataset.py is the name of the dataset to use. Configure this file according to you needs.

To train/test a model in Theano, use the command: THEANO_FLAGS='device=cuda0,floatX=float32,lib.cnmem=0.95' python train.py -c config/dataset.py -e expName where dataset is the name of the dataset you want to use and expName the name of the experiment.

To train/test a model in TensorFlow, use the command: CUDA_VISIBLE_DEVICES=0 python train.py -c config/dataset.py -e expName -s SharedPath -l LocalPath where dataset is the name of the dataset you want to use and expName the name of the experiment, SharedPath points to the folder in which the shared path is (same for LocalPath).

All the logs of the experiments are stored in the result folder of the experiment.

Authors

David Vázquez, Adriana Romero, Michal Drozdzal, Lluis Gomez

How to cite

TODO

  • Relaunch: Remember the number of the last epoch

keras_zoo's People

Contributors

adri-romsor avatar david-vazquez avatar jbernoz avatar joan-s avatar lluisgomez avatar michaldrozdzal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

keras_zoo's Issues

Issue with imports

While running the FCN-8.py file, I get the error
from keras.utils.np_utils import conv_input_length which is imported in the deconv file.
I have installed np.utils separately but it doesnt seem to fix the issue

Which version of Keras should be used?

Hi David,

We are trying to run the train.py as described. With Python 2.7 and Keras 1.2.0 in Tensorflow 1.2.1.

But encountered the following error due to generator_queue has been changed to GeneratorEnqueuer.

Log:
Using TensorFlow backend.
Traceback (most recent call last):
File "train.py", line 14, in
from callbacks.callbacks_factory import Callbacks_Factory
File "/scratch//keras_zoo/keras_zoo/callbacks/callbacks_factory.py", line 7, in
from callbacks import (History_plot, Jacc_new, Save_results,
File "/scratch//keras_zoo/keras_zoo/callbacks/callbacks.py", line 6, in
from keras.engine.training import GeneratorEnqueuer
ImportError: cannot import name GeneratorEnqueuer

However, if we used Keras 2.0.2. the names from other packages has been changed as well.

Log:
Using TensorFlow backend.
Traceback (most recent call last):
File "train.py", line 15, in
from models.model_factory import Model_Factory
File "/scratch//keras_zoo/keras_zoo/models/model_factory.py", line 6, in
from keras.utils.visualize_util import plot
ImportError: No module named visualize_util

To full reproduce the experiment, do you mind to suggest which dependencies should we use?

Thank you,
Heng

pre-trained models

Based on the documentation pre-trained models are also available for the integrated modules. Is that true? If yes, then is there a singe script to download them all?

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.