Gesture Recognition Dataset: Jester 数据集解压

1. 官方说明

The Jester gesture recognition dataset includes 148,092 labeled video clips of humans performing basic, pre-defined hand gestures in front of a laptop camera or webcam. It is designed for training machine learning models to recognize human hand gestures like sliding two fingers down, swiping left or right and drumming fingers.

The clips cover 27 different classes of human hand gestures, split in the ratio of 8:1:1 for training, development and testing. The dataset also includes two “no gesture” classes to help the network distinguish between specific gestures and unknown hand movements.

In the age of mobile computing, gesture/action recognition and its role in human-computer interfaces have grown in importance. The Jester video dataset allows the training of robust machine learning models to recognize human hand gestures.

Samples from the Jester dataset:
Gesture Recognition Dataset: Jester 数据集解压_第1张图片
In order to extract the TGZ archive, the 23 files must be downloaded and concatenated in the right order. Only then they can be extracted. In Linux-based environments the following command can be executed in the download directory in order to achieve this:

cat 20bn-jester-v1-?? | tar zx

2. 数据集下载

Jester 数据集下载链接:https://developer.qualcomm.com/software/ai-datasets/jester

数据集下载完成后:

(cv) zjcao@zjcao:~/work/data/jester$ ll
total 22393176
drwxrwxr-x  2 zjcao zjcao       4096 Jul  7 17:08 ./
drwxrwxr-x 18 zjcao zjcao       4096 Jul  7 15:49 ../
-rw-rw-r--  1 zjcao zjcao  999984148 Jul  7 15:02 20bn-jester-v1-00.zip
-rw-rw-r--  1 zjcao zjcao  999973115 Jul  7 15:04 20bn-jester-v1-01.zip
-rw-rw-r--  1 zjcao zjcao 1000003583 Jul  7 15:05 20bn-jester-v1-02.zip
-rw-rw-r--  1 zjcao zjcao  999997007 Jul  7 15:05 20bn-jester-v1-03.zip
-rw-rw-r--  1 zjcao zjcao  999963476 Jul  7 15:16 20bn-jester-v1-04.zip
-rw-rw-r--  1 zjcao zjcao 1000005788 Jul  7 15:17 20bn-jester-v1-05.zip
-rw-rw-r--  1 zjcao zjcao  999982134 Jul  7 15:20 20bn-jester-v1-06.zip
-rw-rw-r--  1 zjcao zjcao  999995940 Jul  7 15:21 20bn-jester-v1-07.zip
-rw-rw-r--  1 zjcao zjcao 1000003520 Jul  7 15:24 20bn-jester-v1-08.zip
-rw-rw-r--  1 zjcao zjcao  999988822 Jul  7 15:26 20bn-jester-v1-09.zip
-rw-rw-r--  1 zjcao zjcao 1000003656 Jul  7 15:27 20bn-jester-v1-10.zip
-rw-rw-r--  1 zjcao zjcao 1000008600 Jul  7 15:32 20bn-jester-v1-11.zip
-rw-rw-r--  1 zjcao zjcao  999980360 Jul  7 15:29 20bn-jester-v1-12.zip
-rw-rw-r--  1 zjcao zjcao  999974932 Jul  7 15:33 20bn-jester-v1-13.zip
-rw-rw-r--  1 zjcao zjcao  999970537 Jul  7 15:34 20bn-jester-v1-14.zip
-rw-rw-r--  1 zjcao zjcao  999964985 Jul  7 15:35 20bn-jester-v1-15.zip
-rw-rw-r--  1 zjcao zjcao  999999583 Jul  7 15:39 20bn-jester-v1-16.zip
-rw-rw-r--  1 zjcao zjcao  999960798 Jul  7 15:41 20bn-jester-v1-17.zip
-rw-rw-r--  1 zjcao zjcao  999996814 Jul  7 15:42 20bn-jester-v1-18.zip
-rw-rw-r--  1 zjcao zjcao  999970771 Jul  7 15:57 20bn-jester-v1-19.zip
-rw-rw-r--  1 zjcao zjcao  999972417 Jul  7 15:43 20bn-jester-v1-20.zip
-rw-rw-r--  1 zjcao zjcao  999962320 Jul  7 15:46 20bn-jester-v1-21.zip
-rw-rw-r--  1 zjcao zjcao  930695441 Jul  7 15:46 20bn-jester-v1-22.zip

3. 数据集解压

官网给的指令是:cat 20bn-jester-v1-?? | tar zx

但是,直接运行会提示:

(cv) zjcao@zjcao:~/work/data/jester$ cat 20bn-jester-v1-?? | tar zx

cat: '20bn-jester-v1-??': No such file or directory

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

其实,官方做了zip压缩,故需要先进行zip解压:unzip '*.zip'

(cv) zjcao@zjcao:~/work/data/jester$ unzip '*.zip' 
(cv) zjcao@zjcao:~/work/data/jester$ ll
total 44790180
drwxrwxr-x  3 zjcao zjcao       4096 Jul  7 17:11 ./
drwxrwxr-x 18 zjcao zjcao       4096 Jul  7 15:49 ../
-rw-rw-r--  1 zjcao zjcao 1000000000 Jul 11  2018 20bn-jester-v1-00
-rw-rw-r--  1 zjcao zjcao         52 Jul 11  2018 20bn-jester-v1-00.md5
-rw-rw-r--  1 zjcao zjcao  999984148 Jul  7 15:02 20bn-jester-v1-00.zip
***
***
-rw-rw-r--  1 zjcao zjcao  930724987 Jul 11  2018 20bn-jester-v1-22
-rw-rw-r--  1 zjcao zjcao         52 Jul 11  2018 20bn-jester-v1-22.md5
-rw-rw-r--  1 zjcao zjcao  930695441 Jul  7 15:46 20bn-jester-v1-22.zip

然后:再运行:cat 20bn-jester-v1-?? | tar zx

(cv) zjcao@zjcao:~/work/data/jester$ cat 20bn-jester-v1-?? | tar zx
(cv) zjcao@zjcao:~/work/data/jester$ ll
total 44790180
drwxrwxr-x  3 zjcao zjcao       4096 Jul  7 17:25 ./
drwxrwxr-x 18 zjcao zjcao       4096 Jul  7 15:49 ../
drwxrwxr-x  1 zjcao zjcao    3579904 Jun 11  2017 20bn-jester-v1/    # 解压好的文件目录
-rw-rw-r--  1 zjcao zjcao 1000000000 Jul 11  2018 20bn-jester-v1-00
-rw-rw-r--  1 zjcao zjcao         52 Jul 11  2018 20bn-jester-v1-00.md5
***
***
(cv) zjcao@zjcao:~/work/data/jester$ cd 20bn-jester-v1/
(cv) zjcao@zjcao:~/work/data/jester/20bn-jester-v1$ ls -lR | grep "^d" | wc -l
148092   # 总目录数
(cv) zjcao@zjcao:~/work/data/jester/20bn-jester-v1$ ls -lR| grep "^-" | wc -l
5279581  # 总文件数

你可能感兴趣的:(Others,linux,python)