Skip to content

YnmtDJ/PVG-DET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PVG-DET

Pyramid Vision GNN + FPN for Small Object Recognition.

Requirements

python 3.11
torch 2.1
torchvision 0.16
PyQt5 5.15
numpy
pycocotools
opencv-python
tqdm

Dataset

Download the dataset from: COCO, VisDrone.
Please organize the dataset as follows:

./dataset/
    coco/
        annotations/
            instances_train2017.json
            instances_val2017.json
        images/
            train2017/
                000000000009.jpg
                ...
            val2017/
                000000000139.jpg
                ...
    visdrone/
        train/
            annotations/
                0000001_00000_d_0000001.txt
                ...
            images/
                0000001_00000_d_0000001.jpg
                ...
        val/
            annotations/
                0000001_00000_d_0000001.txt
                ...
            images/
                0000001_00000_d_0000001.jpg
                ...

Train

You can train the model by running the script ./start.sh.
Details of the training parameters can be viewed in ./util/option.py.
Note that:
--dataset_name only supports coco, visdrone
--baseline only supports fcos, retinanet, fasterrcnn, maskrcnn
--backbone only supports resnet18, resnet50, pvt_v2_b1, pvt_v2_b2_li, pvg_t, pvg_s

Visualize

Here is an example of the recognition results. Example

About

GCN for Object Detection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published