Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Team-BoonMoSa/PANPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cc4570f Β· Mar 16, 2023

History

26 Commits
Mar 15, 2023
Mar 16, 2023
Mar 7, 2023
Mar 14, 2023
Mar 16, 2023
Mar 15, 2023
Mar 16, 2023
Mar 16, 2023
Mar 15, 2023
Mar 7, 2023
Mar 7, 2023
Mar 7, 2023
Mar 7, 2023
Mar 7, 2023

Repository files navigation

Model Structure

Model

Directory Structure
β”œβ”€β”€ cfg.py
β”œβ”€β”€ checkpoints
β”‚   └── cfg
β”‚       └── checkpoint.pth.tar
β”œβ”€β”€ data
β”‚   β”œβ”€β”€ TestData
β”‚   β”‚   β”œβ”€β”€ image
β”‚   β”‚   └── txt
β”‚   └── TrainingData
β”‚       β”œβ”€β”€ image
β”‚       └── txt
β”œβ”€β”€ dataset
β”‚   β”œβ”€β”€ builder.py
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ pan_pp_test.py
β”‚   └── pan_pp_train.py
β”œβ”€β”€ models
β”‚   β”œβ”€β”€ backbone
β”‚   β”‚   β”œβ”€β”€ builder.py
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚   └── resnet.py
β”‚   β”œβ”€β”€ builder.py
β”‚   β”œβ”€β”€ head
β”‚   β”‚   β”œβ”€β”€ builder.py
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚   └── pan_pp_det_head.py
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ loss
β”‚   β”‚   β”œβ”€β”€ acc.py
β”‚   β”‚   β”œβ”€β”€ builder.py
β”‚   β”‚   β”œβ”€β”€ dice_loss.py
β”‚   β”‚   β”œβ”€β”€ emb_loss_v1.py
β”‚   β”‚   β”œβ”€β”€ emb_loss_v2.py
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚   β”œβ”€β”€ iou.py
β”‚   β”‚   └── ohem.py
β”‚   β”œβ”€β”€ neck
β”‚   β”‚   β”œβ”€β”€ builder.py
β”‚   β”‚   β”œβ”€β”€ fpem_v2.py
β”‚   β”‚   └── __init__.py
β”‚   β”œβ”€β”€ pan_pp.py
β”‚   └── utils
β”‚       β”œβ”€β”€ conv_bn_relu.py
β”‚       β”œβ”€β”€ coordconv.py
β”‚       β”œβ”€β”€ fuse_conv_bn.py
β”‚       └── __init__.py
β”œβ”€β”€ README.md
β”œβ”€β”€ requirement.txt
β”œβ”€β”€ main.ipynb
β”œβ”€β”€ test.py
β”œβ”€β”€ test.sh
β”œβ”€β”€ train.py
β”œβ”€β”€ train.sh
└── utils
    β”œβ”€β”€ average_meter.py
    β”œβ”€β”€ corrector.py
    β”œβ”€β”€ __init__.py
    β”œβ”€β”€ logger.py
    β”œβ”€β”€ result_format.py
    └── visualizer.py

Init

~/Google Drive/λ‚΄ λ“œλΌμ΄λΈŒ$ git clone https://github.com/Team-BoonMoSa/PANPP

~/Google Drive/λ‚΄ λ“œλΌμ΄λΈŒ/PANPP/data에 FlickrLogos-v2 μ—…λ‘œλ“œ


Make Ground Truth

sh makeGT.sh

Train

!sh train.sh

Prepare Training Data

./dataset/pan_pp_train.py

tt_root_dir = './data/TrainingData/'
tt_train_data_dir = tt_root_dir + 'image/'
tt_train_gt_dir = tt_root_dir + 'txt/'

Fine-Tuning

./cfg.py

train_cfg = dict(
    ...
    # pretrain='',
)

Test

!sh test.sh

Prepare Test Data

./cfg.py

data = dict(
    ...
    test=dict(
        ...
        data='data/TestData/image/'
    )
)

Prepare Weights of Pretrained PAN++

./cfg.py

test_cfg = dict(
    ...
    pretrain='./checkpoints/cfg/checkpoint.pth.tar', # tmp
)

Reference

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published