Giter Club home page Giter Club logo

efficientunet's Introduction

EfficientUnet

Keras Implementation of Unet with EfficientNet as encoder

  • Unet with EfficientNet encoder
    • EfficientNet-B0
    • EfficientNet-B1
    • EfficientNet-B2
    • EfficientNet-B3
    • EfficientNet-B4
    • EfficientNet-B5
    • EfficientNet-B6
    • EfficientNet-B7

Requirements

  1. tensorflow >= 1.13.1
  2. Keras >= 2.2.4 (It will automatically be installed when you install efficientunet)

Installation

Install efficientunet:

pip install efficientunet

Useful notes

  1. This library assumes channels_last !

  2. You cannot specify None for input_shape, since the input_shape is heavily used in the code for inferring the architecture. (The EfficientUnets are constructed dynamically)

  3. Since you cannot use None for input_shape, the image size for training process and for inference process have to be the same.
    If you do need to use a different image size for inference, a feasible solution is:

    1. Save the weights of your well-trained model
    2. Create a new model with the desired input shape
    3. Load the weights of your well-trained model into this newly created model
  4. Due to some rounding problem in the decoder path (not a bug, this is a feature ๐Ÿ˜), the input shape should be divisible by 32.
    e.g. 224x224 is a suitable size for input images, but 225x225 is not.


Potential issues

  • If you are unable to load the model from the saved HDF5 file, please refer to this issue.
  • Especially this comment can be used as a workaround.

Acknowledgment

  1. Some code snippets of EfficientNet are directly borrowed from this repo.
  2. The links of pretrained weights are borrowed from this repo.

efficientunet's People

Contributors

zhoudaxia233 avatar

Watchers

James Cloos 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.