GithubHelp home page GithubHelp logo

chaos1992 / tf-senet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hikapok/tf-senet

0.0 1.0 0.0 24 KB

SE_ResNet && SE_ResNeXt with pretrained weights on ImageNet (SENet In TensorFlow)

License: Apache License 2.0

Python 100.00%

tf-senet's Introduction

SE_ResNet and SE_ResNeXt model for Tensorflow with pre-trained weights on ImageNet

This repository contains code of the un-official re-implement of SE_ResNe?t50 and SE_ResNe?t101 model. Here is the authors' implementation in Caffe.

SENet is one state-of-the-art convolutional neural network architecture, where dynamic channelwise feature recalibration have been introduced to improve the representational capacity of CNN. More details can be found in the original paper: Squeeze-and-Excitation Networks.

In order to accelerate further research based on SE_ResNet and SE_ResNeXt, I would like to share the pre-trained weights on ImageNet for them, you can download from Google Drive. The pre-trained weights are converted from official weights in Caffe using MMdnn with other post-processing. And the outputs of all the network using the converted weights has almost the same outputs as original Caffe network (errors<1e-5). All rights related to the pre-trained weights belongs to the original author of SENet.

This code and the pre-trained weights only can be used for research purposes.

The canonical input image size for this SE_ResNe?t is 224x224, each pixel value should in range [-128,128](BGR order), and the input preprocessing routine is quite simple, only normalization through mean channel subtraction was used. According to the official open-source version in Caffe, SE-ResNe?t models got to 22.37%(SE-ResNet-50) and 20.97%(SE-ResNeXt-50) on ImageNet-1k for the single crop top-1 validation error.

The codes was tested under Tensorflow 1.6, Python 3.5, Ubuntu 16.04.

BTW, other scaffold need to be build for training from scratch. You can refer to resnet/imagenet_main for adding weight decay to the loss manually.

Apache License 2.0

tf-senet's People

Contributors

hikapok 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.