Coder Social home page Coder Social logo

sspse's Introduction

Towards Single 2D Image-level Self-supervision for 3D Human Pose and Shape Estimation

Prerequisties

The code needs the following libraries:

  • Python 3.7
  • Anaconda
  • PyTorch 1.4.0

Data Preparation

We use the dataset of Human3.6M, LSP, MPII, COCO 2014, MPI-INF-3DHP and YOUTUBE Collection for training, and Human3.6M, LSP 3DPW and UPI_S1H for testing. We attach the google drive link of mask-rcnn results.

├─[Human 3.6M path]
|   ├─images
|         S1_Directions_1.54138969_000001.jpg
|         S1_Directions_1.54138969_000026.jpg
|         ...
|   ├─masks
|         0_S1_Directions_1.54138969_000001.jpg
|         0_S1_Directions_1.54138969_000026.jpg
|         ...
├─[LSP path]
|   ├─images
|         im0001.jpg
|         im0002.jpg
|         ...
|   ├─ masks
|         0_im0001.jpg
|         0_im0002.jpg
|         ...
├─[MPII path]
|   ├─images
|         000001163.jpg
|         000003072.jpg
|         ...
|   ├─masks
|         0_000001163.jpg
|         0_000003072.jpg
|         ...
├─[COCO path]
|   ├─train2014
|         COCO_train2014_000000000086.jpg
|         COCO_train2014_000000000529.jpg
|         ...
|   ├─masks
|         0_COCO_train2014_000000000086.jpg
|         0_COCO_train2014_000000000529.jpg
|         ...
├─[MPI_INF_3DHP path]
|   ├─S1
|   |   ├─Seq1
|   |   |   ├─imageFrames
|   |   |   |   ├─video_0
|                   frame_000001.jpg
|                   frame_000011.jpg
|                   ...
|   |   |   ├─masks
|   |   |   |   ├─video_0
|                   0_frame_000001.jpg
|                   0_frame_000011.jpg
|                   ...

├─[3DPW path]
|   ├─imageFiles
|   |   ├─downtown_arguing_00
|             image_00000.jpg
|             image_00001.jpg
|             ...
├─[UPI_S1H path]
|   ├─data
|   |   ├─lsp
|           im0001_part_segmentation.png
|           im0001_segmentation.png
|           ...
├─[YOUTUBE Collection path]
|   ├─video1
|   |   ├─imageFiles
|           frame000350.jpg
|           frame000775.jpg
|           ...
|   |   ├─masks
|           0_frame000350.jpg
|           0_frame000775.jpg
|           ...

Download npz file, VIBE_data and other data.

source scripts/prepare_data.sh
├─SSPSE
│  ├─data
│  │  ├─dataset_extras
│           3dpw_test.npz
|           coco_2014_train.npz
|           ...
|           youtube_train.npz

We don't use LSP-extension.

Extracting images from videos

python preprocessing.py

Pretrained file

source scripts/pretrained.sh

Training

Semi-supervised

python main.py --train 1 --output_dir semi_

Weakly-supervised

python main.py --train 1 --output_dir weakly_ --ignore_3d

Self-supervised

python main.py --train 1 --output_dir self_ --self_supervised

Testing

H36M

python main.py --train 0 --checkpoint results/semi/save_pth/best.pth --test_dataset h36m-p2

3DPW

python main.py --train 0 --checkpoint results/semi/save_pth/best.pth --test_dataset 3dpw

LSP

python main.py --train 0 --checkpoint results/semi/save_pth/best.pth --test_dataset lsp

sspse's People

Contributors

junukcha avatar

Stargazers

Kim Jae Won avatar changhwa lee(ted.chl) avatar  avatar  avatar Snow avatar ㅎㅎ avatar

Watchers

Snow avatar  avatar

Forkers

thiagoluange

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.