odunkel commited on
Commit
139cd34
·
verified ·
1 Parent(s): 248f967

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +44 -42
README.md CHANGED
@@ -17,32 +17,33 @@ size_categories:
17
 
18
  SOCOv1 is a structured object correspondence dataset with rendered object images, per-view keypoint annotations, pair files, and metadata.
19
 
20
- The dataset is distributed as an unpacked folder tree on the Hugging Face Hub. Use `huggingface_hub.snapshot_download` to download the full dataset or selected subfolders.
21
 
22
- ## Folder Structure
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  ```text
25
  SOCOv1/
26
- Images/
27
- <category>/
28
- *.JPEG
29
- KeypointAnnotations/
30
- <category>/
31
- *.json
32
  PairAnnotations/
33
- intra/
34
- <category>/
35
- *.json
36
- cross/
37
- <category>/
38
- *.json
39
  trainsplits/
40
- train/
41
- <category>/
42
- *.json
43
- test/
44
- <category>/
45
- *.json
46
  Metadata/
47
  filename_mapping.json
48
  keypoint_taxonomy.json
@@ -50,14 +51,12 @@ SOCOv1/
50
 
51
  ## Contents
52
 
53
- - `Images/`: rendered object images, organized by category.
54
- - `KeypointAnnotations/`: per-view keypoint annotations, organized by category.
55
- - `PairAnnotations/intra/`: intra-category image-pair files.
56
- - `PairAnnotations/cross/`: cross-category image-pair files.
57
- - `PairAnnotations/trainsplits/`: train/test split pair files.
58
- - `Metadata/`: keypoint taxonomy and filename mapping.
59
 
60
- This release contains 100 categories, 4,000 images, 4,000 keypoint annotation files, and 60,001 pair annotation files.
61
 
62
  ## Download
63
 
@@ -67,33 +66,36 @@ Install the Hub client:
67
  pip install -U huggingface_hub
68
  ```
69
 
70
- Download the full dataset:
71
-
72
- ```python
73
- from huggingface_hub import snapshot_download
74
 
75
- path = snapshot_download(
76
- repo_id="GenIntelLab/SOCO",
77
- repo_type="dataset",
78
- local_dir="SOCOv1",
79
- token=True, # required while the dataset is private
80
- )
81
  ```
82
 
83
- Download only selected folders:
84
 
85
  ```python
86
  from huggingface_hub import snapshot_download
87
 
88
- path = snapshot_download(
89
  repo_id="GenIntelLab/SOCO",
90
  repo_type="dataset",
91
- local_dir="SOCOv1_images_and_metadata",
92
- allow_patterns=["Images/**", "Metadata/**"],
93
- token=True,
94
  )
 
95
  ```
96
 
 
 
 
 
 
 
 
 
 
 
97
  ## Citation
98
 
99
  Citation information will be added with the public release.
 
17
 
18
  SOCOv1 is a structured object correspondence dataset with rendered object images, per-view keypoint annotations, pair files, and metadata.
19
 
20
+ The dataset is distributed on the Hugging Face Hub as three zip archives plus an unpacked `Metadata/` folder. Download the repository and unzip the archives in place to obtain the full folder tree.
21
 
22
+ ## Repository Layout
23
+
24
+ ```text
25
+ GenIntelLab/SOCO
26
+ Images.zip # -> Images/<category>/*.JPEG
27
+ KeypointAnnotations.zip # -> KeypointAnnotations/<category>/*.json
28
+ PairAnnotations.zip # -> PairAnnotations/{intra,cross,trainsplits/{train,test}}/<category>/*.json
29
+ Metadata/
30
+ filename_mapping.json
31
+ keypoint_taxonomy.json
32
+ README.md
33
+ ```
34
+
35
+ After unzipping, the dataset tree is:
36
 
37
  ```text
38
  SOCOv1/
39
+ Images/<category>/*.JPEG
40
+ KeypointAnnotations/<category>/*.json
 
 
 
 
41
  PairAnnotations/
42
+ intra/<category>/*.json
43
+ cross/<category>/*.json
 
 
 
 
44
  trainsplits/
45
+ train/<category>/*.json
46
+ test/<category>/*.json
 
 
 
 
47
  Metadata/
48
  filename_mapping.json
49
  keypoint_taxonomy.json
 
51
 
52
  ## Contents
53
 
54
+ - `Images.zip`: rendered object images, organized by category.
55
+ - `KeypointAnnotations.zip`: per-view keypoint annotations, organized by category.
56
+ - `PairAnnotations.zip`: image-pair files for intra-category (`intra`), cross-category (`cross`), and the predefined train/test splits (`trainsplits`).
57
+ - `Metadata/`: keypoint taxonomy and filename mapping (shipped unzipped).
 
 
58
 
59
+ This release contains 100 categories, 4,000 images (40 per category), 4,000 keypoint annotation files, and 60,000 pair annotation files (20,000 intra-category, 20,000 cross-category, and a 10,000 / 10,000 intra-category train / test split).
60
 
61
  ## Download
62
 
 
66
  pip install -U huggingface_hub
67
  ```
68
 
69
+ Download the repository and unpack the archives:
 
 
 
70
 
71
+ ```bash
72
+ huggingface-cli download GenIntelLab/SOCO --repo-type dataset --local-dir SOCOv1
73
+ cd SOCOv1 && for z in *.zip; do unzip -q "$z" && rm "$z"; done
 
 
 
74
  ```
75
 
76
+ Equivalently in Python:
77
 
78
  ```python
79
  from huggingface_hub import snapshot_download
80
 
81
+ snapshot_download(
82
  repo_id="GenIntelLab/SOCO",
83
  repo_type="dataset",
84
+ local_dir="SOCOv1",
 
 
85
  )
86
+ # then unzip Images.zip, KeypointAnnotations.zip, PairAnnotations.zip inside SOCOv1/
87
  ```
88
 
89
+ ## Using the data
90
+
91
+ After extraction the folder layout maps directly onto a dataset-root path: point your
92
+ loader at the `SOCOv1/` directory and read images from `Images/<category>/` and pairs from
93
+ the relevant `PairAnnotations/` subfolder. For evaluation, use `PairAnnotations/intra`
94
+ (within-category pairs); for training and evaluating a probe, use the predefined
95
+ `PairAnnotations/trainsplits/train` and `PairAnnotations/trainsplits/test` splits. Each
96
+ pair file references two views and their corresponding keypoints; per-view keypoints are
97
+ also available under `KeypointAnnotations/<category>/`.
98
+
99
  ## Citation
100
 
101
  Citation information will be added with the public release.