NguyenDinhHieu commited on
Commit
50dae38
·
verified ·
1 Parent(s): 55aa511

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -8
README.md CHANGED
@@ -41,14 +41,16 @@ Accurate garment fitting in virtual try-on systems remains difficult under compl
41
  |----------|--------|
42
  | Focus | Upper-body virtual try-on (women), multi-pose |
43
  | Typical resolution | 1024 × 768 |
44
- | Splits on Hub | Two top-level folders: **`train/`** (training assets) and **`test/`** (evaluation assets); see layout below |
45
  | Annotations | Parsing-style labels, edges, DensePose-related assets (see folder layout) |
46
 
47
  VITON-Extends extends the original VITON setting with **more diverse standing postures and arm configurations** (e.g. arms crossed, sideways stance), which stress-tests warping and synthesis under occlusion and misalignment.
48
 
49
  ## Folder layout (this upload)
50
 
51
- The Hugging Face repository root contains **`train/`** and **`test/`**. Inside each folder, subfolder names match what the [VITON-Extends](https://github.com/nguyendinhhieu1309/VITON-Extends) code expects **relative to `--dataroot`**: training reads `train_img`, `train_label`, … from the directory you pass as `dataroot`, so after `snapshot_download` point **`dataroot` to the `train` folder** (the path that directly contains `train_img/`, …). For testing / inference, point **`dataroot` to the `test` folder** (the path that directly contains `test_img/`, `test_clothes/`, `test_edge/`).
 
 
52
 
53
  ### Under `train/`
54
 
@@ -82,21 +84,24 @@ File naming follows the conventions expected by the training and testing scripts
82
  ```python
83
  from huggingface_hub import snapshot_download
84
 
85
- # Full snapshot: creates ./VITON-Extends_data/train/... and ./VITON-Extends_data/test/...
86
  path = snapshot_download(
87
  repo_id="NguyenDinhHieu/VITON-Extends-DB",
88
  repo_type="dataset",
89
  local_dir="./VITON-Extends_data",
90
  )
91
 
 
 
 
92
  # Training: set dataroot to the train folder, e.g. ./VITON-Extends_data/train
93
  # Testing: set dataroot to the test folder, e.g. ./VITON-Extends_data/test
94
 
95
- # Only training split:
96
- # snapshot_download(..., allow_patterns=["train/**"])
97
 
98
- # Only test split:
99
- # snapshot_download(..., allow_patterns=["test/**"])
100
  ```
101
 
102
  Use the **`train`** directory as `dataroot` when running training scripts, and the **`test`** directory as `dataroot` when running inference, per [training / testing instructions](https://github.com/nguyendinhhieu1309/VITON-Extends).
@@ -133,4 +138,4 @@ This dataset builds on **VITON** / community virtual try-on resources and **Deep
133
 
134
  ### Dataset card (Tiếng Việt — tóm tắt)
135
 
136
- Repo trên Hub có hai thư mục gốc **`train/`** và **`test/`**. Trong `train/` là các thư mục con `train_img`, `train_color`, `train_edge`, `train_label`, `train_densepose`; trong `test/` là `test_img`, `test_clothes`, `test_edge`. Khi chạy code, đặt `dataroot` trỏ vào thư mục **`train`** (huấn luyện) hoặc **`test`** (suy luận). Mô hình: [NguyenDinhHieu/VITON-Extends](https://huggingface.co/NguyenDinhHieu/VITON-Extends). Vui lòng trích dẫn bài báo qua DOI ở trên.
 
41
  |----------|--------|
42
  | Focus | Upper-body virtual try-on (women), multi-pose |
43
  | Typical resolution | 1024 × 768 |
44
+ | Splits on Hub | Two archives at repo root: **`Train.zip`** and **`Test.zip`**. **Extract both** after download to obtain the **`train/`** and **`test/`** folder layout below |
45
  | Annotations | Parsing-style labels, edges, DensePose-related assets (see folder layout) |
46
 
47
  VITON-Extends extends the original VITON setting with **more diverse standing postures and arm configurations** (e.g. arms crossed, sideways stance), which stress-tests warping and synthesis under occlusion and misalignment.
48
 
49
  ## Folder layout (this upload)
50
 
51
+ The Hugging Face dataset repository root ships **`Train.zip`** and **`Test.zip`** (not the raw folders). **You must unzip both** into the same parent directory (e.g. your `local_dir` after `snapshot_download`) so you end up with **`train/`** and **`test/`** as described below. If an archive already contains a single top-level `train` or `test` folder, extract as usual; if your tool nests an extra directory, move the inner `train` / `test` so `dataroot` points at the folder that **directly** contains `train_img/`, `test_img/`, etc.
52
+
53
+ Inside each folder, subfolder names match what the [VITON-Extends](https://github.com/nguyendinhhieu1309/VITON-Extends) code expects **relative to `--dataroot`**: training reads `train_img`, `train_label`, … from the directory you pass as `dataroot`, so **after extracting**, point **`dataroot` to the `train` folder** (the path that directly contains `train_img/`, …). For testing / inference, point **`dataroot` to the `test` folder** (the path that directly contains `test_img/`, `test_clothes/`, `test_edge/`).
54
 
55
  ### Under `train/`
56
 
 
84
  ```python
85
  from huggingface_hub import snapshot_download
86
 
87
+ # Downloads repo root (including Train.zip and Test.zip) into ./VITON-Extends_data
88
  path = snapshot_download(
89
  repo_id="NguyenDinhHieu/VITON-Extends-DB",
90
  repo_type="dataset",
91
  local_dir="./VITON-Extends_data",
92
  )
93
 
94
+ # Then unzip Train.zip and Test.zip in that folder (Explorer, unzip, 7-Zip, etc.)
95
+ # so you get ./VITON-Extends_data/train/... and ./VITON-Extends_data/test/...
96
+
97
  # Training: set dataroot to the train folder, e.g. ./VITON-Extends_data/train
98
  # Testing: set dataroot to the test folder, e.g. ./VITON-Extends_data/test
99
 
100
+ # Only the training archive (smaller download):
101
+ # snapshot_download(..., allow_patterns=["Train.zip"])
102
 
103
+ # Only the test archive:
104
+ # snapshot_download(..., allow_patterns=["Test.zip"])
105
  ```
106
 
107
  Use the **`train`** directory as `dataroot` when running training scripts, and the **`test`** directory as `dataroot` when running inference, per [training / testing instructions](https://github.com/nguyendinhhieu1309/VITON-Extends).
 
138
 
139
  ### Dataset card (Tiếng Việt — tóm tắt)
140
 
141
+ Trên Hub, dữ liệu chính nằm ở hai file nén gốc **`Train.zip`** và **`Test.zip`**. Sau khi tải về, **bắt buộc giải nén** cả hai để có thư mục **`train/`** và **`test/`**. Trong `train/` gồm các thư mục con `train_img`, `train_color`, `train_edge`, `train_label`, `train_densepose`; trong `test/` gồm `test_img`, `test_clothes`, `test_edge`. Khi chạy code, đặt `dataroot` trỏ vào thư mục **`train`** (huấn luyện) hoặc **`test`** (suy luận). Mô hình: [NguyenDinhHieu/VITON-Extends](https://huggingface.co/NguyenDinhHieu/VITON-Extends). Vui lòng trích dẫn bài báo qua DOI ở trên.