GithubHelp home page GithubHelp logo

poar's Introduction

POAR

Our paper POAR: Towards Open Vocabulary Pedestrian Attribute Recognition

train-TEMSπŸ“Ž

A PyTorch Lightning solution to train pedestrian open attribute recognition models

Dependencies

pip install 'git+https://github.com/katsura-jp/pytorch-cosine-annealing-with-warmup'
pip install pytorch-lightning

Usage πŸš‚

Finetuning πŸš†

python train_finetune.py --folder data_dir --batch_size 512

Testing πŸš†

CUDA_VISIBLE_DEVICES=0 python test_UDA_T2I.py --testset PA100K --trainset PETA --folder  ./test/dataset/PETA/

Training with our DataModule πŸ“‰

As long as each of the image pairs have the same stem name (i.e. img1.png and img1.txt) all that you need to do is specify the folder on runtime. Any subfolder structure will be ignored, meaning foo/bar/image1.jpg will always find its myster/folder/image1.txt so long as they share a common parent folder. All image suffixes will work, the only expectation is that captions are separated by \n.

Goal ⚽

Our aim is to create an easy to use Lightning implementation of pedestrian open attribute recognition. We will live by:

TEMS Framework Image

Citation

@inproceedings{Yue2023poar,
title={POAR: Towards Open Vocabulary Pedestrian Attribute Recognition},
author={Yue Zhang, Suchen Wang, Shichao Kan, Zhenyu Weng, Yigang Cen, and Yappeng Tan},
booktitle={In Proceedings of the 31st ACM International Conference on Multimedia (MM ’23), October 29–November 3, Ottawa, ON, Canada.},
year={2023},
doi={10.1145/3581783.3611719}
}

TODO βœ…

  • Get OpenAI's model creation script
  • Create model inits
    • ResNet50
    • ResNet50x4
    • ResNet101
    • ViT-B/32
    • all models
  • Create model wrapper
  • Create lightning trainer
  • Create dataset files
  • Performance boosts
    • Mixed-precision
    • Self-distillation
    • Gradient checkpointing
    • Half-precision Adam statistics
    • Half-precision stochastically rounded text encoder weights

poar's People

Contributors

ivyyz avatar

Stargazers

clusty avatar Kaicheng Yang avatar  avatar Nezih avatar  avatar Xiao WangοΌˆηŽ‹ι€οΌ‰ avatar  avatar  avatar

Watchers

 avatar

Forkers

itxiaoxian

poar's Issues

Pre-trained checkpoints

Hello
How are you?
Thanks for contributing to this project.
Could you share the checkpoints trained on your side?
Thanks

the txt for "cls_35.txt"

Great work!
I have thie issue for the txt for "/raid2/yue/ReID/vision_language/train-CLIP-2th/train-CLIP-FT-6TScls/data/cls_35.txt".
Can you provide me for the txt, and tell me the function?
Thanks!

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.