Coder Social home page Coder Social logo

taaccoo-beta / bottom-up-features Goto Github PK

View Code? Open in Web Editor NEW

This project forked from violetteshev/bottom-up-features

0.0 1.0 0.0 182 KB

Bottom-up features extractor implemented in PyTorch.

License: MIT License

Python 72.30% MATLAB 0.45% Shell 0.55% Cuda 11.23% C 14.85% C++ 0.61%

bottom-up-features's Introduction

Bottom-Up Features Extractor

This code implements an extraction of Bottom-up image features (paper). Based on the original bottom-up attention model and PyTorch implementation of Faster R-CNN.

Requirements

  • Python 3.6
  • PyTorch 0.4.0
  • CUDA 9.0

Note: CPU version is not supported.

Installation

  1. Clone the code:

    git clone https://github.com/violetteshev/bottom-up-features.git
    
  2. Install PyTorch with pip:

    pip install https://download.pytorch.org/whl/cu90/torch-0.4.0-cp36-cp36m-linux_x86_64.whl
    

    or with Anaconda:

    conda install pytorch=0.4.0 cuda90 -c pytorch
    
  3. Install dependencies:

    pip install -r requirements.txt
    
  4. Compile the code:

    cd lib
    sh make.sh
    
  5. Download the pretrained model from dropbox or google drive and put it in models/ folder.

Feature Extraction

  1. To extract image features and store them in .npy format:

    python extract_features.py --image_dir images --out_dir features
    
  2. To save bounding boxes use --boxes argument:

    python extract_features.py --image_dir images --out_dir features --boxes
    

bottom-up-features's People

Contributors

violetteshev avatar

Watchers

 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.