BoseungJeong / Anyang_ar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Anyang_AttributeRecognition

Installation

git clone https://github.com/jicheol93/Anyang_ar.git
cd anyang_ar
conda env create -f requirements.yml

Prepare Anyang Attribute Recognition dataset

Anyang_ar
└── Anyang_data
    ├── Attribute_labeling.xlsx
    ├── train
    └── test

cd anyang_ar
(change data path from prepare_Anyang_xxx.py)
python prepare_Anyang_train.py --h
python prepare_Anyang_train.py --h
(--h option means filtering data lower than the height of 150 pixels.)

Train

python train_att_backbone_from_AR_Anyang.py --AR --name AR_Anyang_high_lr001_b128 --lr 0.001 --batchsize 128 --h --data_dir "/home/jicheol/Anyang_ar/Anyang_data/pytorch/"

Inference

 python test_att_backbone_from_AR_Anyang.py --AR --name AR_Anyang_high_lr001_b128 --batchsize 128 --h --data_dir "/home/jicheol/Anyang_ar/Anyang_data/pytorch/" --which_epoch "last"

Visualization

 python test_att_backbone_from_AR_Anyang.py --AR --name AR_Anyang_high_lr001_b128 --batchsize 128 --h --vis --data_dir "/home/jicheol/Anyang_ar/Anyang_data/pytorch/" --which_epoch "last"
 
 Anyang_ar
└── vis_image
(visualization results are saved in vis_image)

=======

 Anyang_ar
└── vis_image
(visualization results are saved in vis_image)
![image](https://user-images.githubusercontent.com/39580015/187052365-3194588d-a5a9-420b-8e88-bd4ea831d48b.png)

About


Languages

Language:Python 100.0%