Giter VIP home page Giter VIP logo

attentioneditorabn's Introduction

Attention Editor

Author: Masahiro Mitsuhara

Maintainer: Tsubasa Hirakawa

動作環境

Python

Anaconda (3-5.3.1) を用いてPython環境を構築しています.

  • torch (0.4.1)
  • torchvision (0.2.1)
  • opencv (3.4.2)
  • PyQt5 (5.9.2)

使用方法

CUB-200-2010 datasetのダウンロード

CUB-200-2010 datasetを下記のwebページからダウンロードし,保存します. CBU-200-2010 dataset

学習済みモデルのダウンロード

学習済みモデルを下記のURLからダウンロードします.

configファイルの編集

./atteditor/config.py内のパスを各自の環境に合わせて書き換えます.

# 本プロジェクトのディレクトリまでのパス
PROJECT_ROOT = "/path/to/AttentionEditorABN"

# データセット(画像)を保存しているディレクトリまでのパス
IMAGE_DIR = "/path/to/CUB-200-2010_dataset"

# アプリケーションに表示するネットワーク名
MODEL_NAME = "ABN ResNet 50"

# 学習済みモデルのパス
CHECKPOINT_FILE = "/path/to/pretrained_model_file"

起動

下記のコマンドを実行することでアプリケーションが起動します.

python3 main.py

操作

左側のウィンドウは使用する画像データを指定するためのウィンドウです. 右側のウィンドウは指定したネットワークモデルを使用して推論・推論結果を表示するためのウィンドウです. **の部分で画像・アテンションマップの表示,修正を行います. Attention Editor

Reference

If you find useful for this application, please cite the following reference.

  1. M. Mitsuhara, H. Fukui, Y. Sakashita, T. Ogata, T. Hirakawa, T. Yamashita, H. Fujiyoshi, "Embedding Human Knowledge into Deep Neural Network via Attention Map," arXiv preprint, arXiv:1905.03540, 2019.

attentioneditorabn's People

Contributors

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