Giter VIP home page Giter VIP logo

vgg_bpca's Introduction

Exploring BPCAPooling Layer in VGG-16 Network: A Comparative Study with Conventional Pooling Methods

This repository was created for the paper submitted to SIBGRAPI and contains the code for the experiments. Our goal is to provide a simple and easy to use implementation of the proposed method.

The proposed method is called BPCAPooling, that is inspired by the conventional PCA method but specifically designed for pooling in CNNs. It subdivides the input feature map into blocks and applies PCA to each block to extract important information while preserving spatial information. The transformed blocks are then concatenated to form a reduced-size feature map. This is ilustrated in the figure below.

BPCAPooling

Installation

The code was tested with Python 3.6.9 and Tensorflow 2.12.0. To install the required packages run:

pip install -r requirements.txt

Usage

The code is structured based on the Jupiter notebooks in the notebooks folder. So the main files are the notebooks.

The notebooks contain the code for the experiments (using Food-101 and CIFAR-100) and can be run directly.

The scripts folder contains the implementation of the proposed method and other methods used in the experiments.

In the models_weights folder you could find the weights of the models used in the experiments on h5 format, so you can load them directly in the notebooks. OBS.: In this repository we are GIT LFS to store the weights files. So you need to install it to download the weights.

Citation

If you use this code in your research, please cite our paper:

@inproceedings{,
  title={Exploring BPCAPooling Layer in VGG-16 Network: A Comparative Study with Conventional Pooling Methods},
  author={Lucas de Brito Silva, Alvaro Leandro Cavalcante Carneiro, Uemerson Pinheiro Junior, Denis Henrique Pinheiro Salvadeo, Davi Duarte de Paula},
  booktitle={},
  year={2023},
  organization={Sao Paulo State University (UNESP)},
  url={}
}

License

This project is licensed under the Apache 2.0 - see the LICENSE file for details.

vgg_bpca's People

Contributors

dependabot[bot] avatar lucs1590 avatar uemerson avatar

Watchers

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