Giter Site home page Giter Site logo

wandererzzx / simplehand Goto Github PK

View Code? Open in Web Editor NEW

This project forked from patiencefromzhou/simplehand

0.0 0.0 0.0 15.23 MB

This is the project page for paper "A Simple Baseline for Efficient Hand Mesh Reconstruction, CVPR2024"

License: MIT License

Python 99.93% Makefile 0.07%

simplehand's Introduction

News

20240521: ๐Ÿ“ขโœจ Update checkpoints and train logs in download link. Fix some bugs.

20240507: ๐Ÿ“ขโœจ code released.

20240306: ๐Ÿ”ฅ๐Ÿ”ฅ Our project page is available. ๐Ÿš€๐Ÿš€

20240228: ๐ŸŽ‰๐Ÿ“„ Paper accepted by CVPR 2024.๐Ÿ“„๐ŸŽ‰

20230930: ๐Ÿฅ‡๐Ÿฅ‡ We won the 1st place in Egocentric 3D Hand Pose Estimation challenge.๐Ÿ†๐Ÿ† [Technical Report]

simpleHand

JIIOV Technology

A Simple Baseline for Efficient Hand Mesh Reconstruction

Zhishan Zhou, Shihao Zhou, Zhi Lv, Minqiang Zou, Tong Wu, Mochen Yu, Yao Tang, Jiajun Liang

[Paper] [Project]

framework

A Simple Baseline for Efficient Hand Mesh Reconstruction (simpleHand) has been accepted by CVPR2024. This paper ropose a simple yet effective baseline that not only surpasses state-of-the-art (SOTA) methods but also demonstrates computational efficiency. SimpleHand can be easily transplant to mainstream backbones and datasets.

Getting Started

Installation

First you need to clone the repo:

git clone --recursive https://github.com/patienceFromZhou/simpleHand.git
cd simpleHand

We recommend creating a virtual environment for simpleHand. You can use venv:

python3.10 -m venv .simpleHand
source .simpleHand/bin/activate

or alternatively conda:

conda create --name simpleHand python=3.10
conda activate simpleHand

Then install the rest of the dependencies by

pip3 install -r requirements.txt

Training

Please visit the FreiHAND project website to download FreiHAND data. Then refer to FreiHAND toolbox for MANO model and generate vertices annotations. Name the annotation files to have the same prefix as the corresponding images and put them in a same folder like:

{dataset_dir}
โ”œโ”€โ”€ 00000000.jpg
โ”œโ”€โ”€ 00000000.json
โ”œโ”€โ”€ ...
โ”œโ”€โ”€ ...
โ”œโ”€โ”€ 00130239.jpg
โ”œโ”€โ”€ 00130239.json

where the annotation json file is formatted as:

dict(
    xyz: List(np.array) # 21x3 
    uv: List(np.array) # 21x2 
    K: List(np.array) # 3x3 
    vertices: List(np.array) # 778x3
    image_path: string # *.jpg
)

[RECOMMENDED] you can alternatively download the pre-generated images and annatations from google drive. This file can be used directly for training and evaluation, without any additional processing.

https://drive.google.com/drive/folders/1BfHjNjxQj3MdsGoq5irCrOskyCA9a64l?usp=drive_link

The folder consists of three train files, train.json, eval.json, FreiHAND.zip. Json files specify image paths. ZIP file consists images and annotations. Validate FreiHAND.zip by

md5sum FreiHAND.zip
1d58ff7d6029c8ff724471e06803afa4  FreiHAND.zip

We release two checkpoints epoch_200_rerun1, epoch_200_rerun2. One can use them for quick comparison or model variance assessment. Also, We provided the out.log, which contains the output from the training process.

Specify the folders in cfg.py. Then you can start training using the following command:

make train

Checkpoints and logs will be saved to ./train_logs/.

evaluation

when training is Done, evaluate the default epoch_200 by

make eval

here is an example output

Evaluation 3D KP results:
auc=0.000, mean_kp3d_avg=70.70 cm
Evaluation 3D KP ALIGNED results:
auc=0.887, mean_kp3d_avg=0.57 cm

Evaluation 3D MESH results:
auc=0.000, mean_kp3d_avg=70.69 cm
Evaluation 3D MESH ALIGNED results:
auc=0.881, mean_kp3d_avg=0.60 cm

F-scores
[email protected] = 0.0000        [email protected] = 0.7717
[email protected] = 0.0000       [email protected] = 0.9858

simplehand's People

Contributors

simplehand avatar patiencefromzhou avatar

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.