Skip to content

machine-perception-robotics-group/AttentionEditorABN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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内のパスを各自の環境に合わせて書き換えます.

# データセット(画像)を保存しているディレクトリまでのパス
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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages