Coder Social home page Coder Social logo

xingzhehe / autolink-self-supervised-learning-of-human-skeletons-and-object-outlines-by-linking-keypoints Goto Github PK

View Code? Open in Web Editor NEW
40.0 2.0 7.0 4.83 MB

[NeurIPS 2022] AutoLink, a simple and novel unsupervised approach to detect keypoints from single static images

Home Page: https://xingzhehe.github.io/autolink/

License: MIT License

Python 100.00%
keypoint-detection landmark-detection self-supervised-learning unsupervised-learning

autolink-self-supervised-learning-of-human-skeletons-and-object-outlines-by-linking-keypoints's Introduction

AutoLink: Self-supervised Learning of Human Skeletons and Object Outlines by Linking Keypoints (NeurIPS 2022 Spotlight)

PWC PWC PWC PWC PWC PWC

AutoLink: Self-supervised Learning of Human Skeletons and Object Outlines by Linking Keypoints
Xingzhe He, Bastian Wandt, and Helge Rhodin
Thirty-sixth Conference on Neural Information Processing Systems (NeurIPS 2022 Spotlight)

[Paper][Website][๐Ÿค— Hugging Face Demo ]

Setup

Setup environment
conda create -n autolink python=3.8
conda activate autolink
pip install -r requirements.txt
Download datasets

The CelebA-in-the-wild, Taichi, Human3.6m, DeepFashion, CUB, 11k Hands, AFHQ, Horse2Zebra and Flower can be found on their websites. We provide the pre-processing code for CelebA-in-the-wild, CUB and Flower to make them h5 files. Others can be used directly.

Download pre-trained models

The pre-trained models can be downloaded from Google Drive.

Testing

To qualitatively test the model, you can run our demo by

python app.py --log celeba_wild/celeba_wild_k8_m0.8_b16_t0.0025_sklr512

where,

  • --log specifies the checkpoint folder under `checkpoints/

The default is our model on face:

You can also generate multiple images at the same time. Run

python gen_detection.py --log celeba_wild/celeba_wild_k8_m0.8_b16_t0.0025_sklr512 --folder_name celeba_wild_k8_detection --data_root data/celeba_wild

where,

  • --data_root specifies the location of the dataset,
  • --folder_name specifies the folder where you want to save the detection images.

To numerically test the model performance, run

python test.py --log celeba_wild/celeba_wild_k8_m0.8_b16_t0.0025_sklr512 --data_root data/celeba_wild

Therefore, the above command will give the performance metric on CelebA-in-the-wild, which is described in the paper.

Training

Note: We notice that, on h36m w/o background, training on A100 and A6000 are not as stable as training on V100, and there might be overfitting. We suggest to stop early or use larger masking ratio if readers want to train on h36m w/o background on A100 or A6000. We acknowledge Yuchen Yang for valuable discussion and experiments.

To train our model on CelebA-in-the-wild, run

python train.py --n_parts 8 --missing 0.8 --block 16 --thick 2.5e-3 --sklr 512 --data_root data/celeba_wild --dataset celeba_wild

where,

  • --n_parts specifies the number of keypoints,
  • --missing specifies the ratio of the image masking,
  • --block specifies number of patches to divide the image in one dimension,
  • --thick specifies thickness of the edges,
  • --sklr specifies the learning rate of the edge weights,
  • --data_root specifies the location of the dataset,
  • --dataset specifies name of the dataset.

The trained model can be found in checkpoints/celeba_wild_k8_m0.8_b16_t0.0025_sklr512.

Citation

@inproceedings{he2022autolink,
    title={AutoLink: Self-supervised Learning of Human Skeletons and Object Outlines by Linking Keypoints},
    author={He, Xingzhe and Wandt, Bastian and Rhodin, Helge},
    booktitle={Advances in Neural Information Processing Systems},
    year={2022}
}

autolink-self-supervised-learning-of-human-skeletons-and-object-outlines-by-linking-keypoints's People

Contributors

xingzhehe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

autolink-self-supervised-learning-of-human-skeletons-and-object-outlines-by-linking-keypoints's Issues

the location WFLW five keypoints of is very worse!

thanks to this nice work, I try to train autoLink on wflw with five keypoints because of low cuda memory. but I don't get the desired result. Any advice is helpful,this is my result.
ๅ›พ็‰‡

this is desired location of keypoints.
ๅ›พ็‰‡

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.