varora commited on
Commit
56661e2
1 Parent(s): 4564db3
Files changed (2) hide show
  1. README.md +24 -1
  2. vis_hit_sample.py +1 -1
README.md CHANGED
@@ -53,6 +53,30 @@ HIT fosters a new direction and therefore there aren't any exisiting Benchmarks.
53
  ### Languages
54
  [N/A]
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  ## Dataset Structure
57
  The dataset is structured as follows:
58
  ```
@@ -122,7 +146,6 @@ The HIT dataset has 3 splits for each subject type (male, female): train, val, a
122
  | male | 126 | 16 | 15 |
123
  | female | 191 | 25 | 25 |
124
 
125
-
126
  ## Dataset Creation
127
  ### Curation Rationale
128
  The dataset was created to foster research in biomechanics, computer graphics and Human Digital Twins.
 
53
  ### Languages
54
  [N/A]
55
 
56
+ ## Usage
57
+ ### Quick use
58
+ ```angular2html
59
+ pip install -r requirements.txt
60
+ ```
61
+ ```angular2html
62
+ from datasets import load_dataset
63
+
64
+ # name in ['male', 'female']
65
+ # split in ['train', 'validation', 'test']
66
+ male_train = load_dataset("varora/hit", name='male', split='train')
67
+
68
+ print(male_train.__len__())
69
+ print(next(iter(male_train)))
70
+ ```
71
+
72
+ ### Visualize data
73
+ ```angular2html
74
+ git clone https://huggingface.co/datasets/varora/HIT
75
+ ```
76
+ ```angular2html
77
+ python vis_hit_sample.py --gender male --split test --idx 5
78
+ ```
79
+
80
  ## Dataset Structure
81
  The dataset is structured as follows:
82
  ```
 
146
  | male | 126 | 16 | 15 |
147
  | female | 191 | 25 | 25 |
148
 
 
149
  ## Dataset Creation
150
  ### Curation Rationale
151
  The dataset was created to foster research in biomechanics, computer graphics and Human Digital Twins.
vis_hit_sample.py CHANGED
@@ -70,7 +70,7 @@ if __name__ == '__main__':
70
  assert args.split in ['train', 'validation', 'test']
71
 
72
  # load split
73
- hit_dataset = load_dataset("varora/hit", args.gender, split=args.split)
74
 
75
  # to load specific split, use:
76
  # male splits
 
70
  assert args.split in ['train', 'validation', 'test']
71
 
72
  # load split
73
+ hit_dataset = load_dataset("varora/hit", name=args.gender, split=args.split)
74
 
75
  # to load specific split, use:
76
  # male splits