yifeichen666 sy000 commited on
Commit
18a6925
·
0 Parent(s):

Duplicate from sy000/ChatGarmentDataset

Browse files

Co-authored-by: Siyuan Bian <sy000@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mds filter=lfs diff=lfs merge=lfs -text
13
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
+ *.model filter=lfs diff=lfs merge=lfs -text
15
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
16
+ *.npy filter=lfs diff=lfs merge=lfs -text
17
+ *.npz filter=lfs diff=lfs merge=lfs -text
18
+ *.onnx filter=lfs diff=lfs merge=lfs -text
19
+ *.ot filter=lfs diff=lfs merge=lfs -text
20
+ *.parquet filter=lfs diff=lfs merge=lfs -text
21
+ *.pb filter=lfs diff=lfs merge=lfs -text
22
+ *.pickle filter=lfs diff=lfs merge=lfs -text
23
+ *.pkl filter=lfs diff=lfs merge=lfs -text
24
+ *.pt filter=lfs diff=lfs merge=lfs -text
25
+ *.pth filter=lfs diff=lfs merge=lfs -text
26
+ *.rar filter=lfs diff=lfs merge=lfs -text
27
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
28
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar filter=lfs diff=lfs merge=lfs -text
31
+ *.tflite filter=lfs diff=lfs merge=lfs -text
32
+ *.tgz filter=lfs diff=lfs merge=lfs -text
33
+ *.wasm filter=lfs diff=lfs merge=lfs -text
34
+ *.xz filter=lfs diff=lfs merge=lfs -text
35
+ *.zip filter=lfs diff=lfs merge=lfs -text
36
+ *.zst filter=lfs diff=lfs merge=lfs -text
37
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
38
+ # Audio files - uncompressed
39
+ *.pcm filter=lfs diff=lfs merge=lfs -text
40
+ *.sam filter=lfs diff=lfs merge=lfs -text
41
+ *.raw filter=lfs diff=lfs merge=lfs -text
42
+ # Audio files - compressed
43
+ *.aac filter=lfs diff=lfs merge=lfs -text
44
+ *.flac filter=lfs diff=lfs merge=lfs -text
45
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
46
+ *.ogg filter=lfs diff=lfs merge=lfs -text
47
+ *.wav filter=lfs diff=lfs merge=lfs -text
48
+ # Image files - uncompressed
49
+ *.bmp filter=lfs diff=lfs merge=lfs -text
50
+ *.gif filter=lfs diff=lfs merge=lfs -text
51
+ *.png filter=lfs diff=lfs merge=lfs -text
52
+ *.tiff filter=lfs diff=lfs merge=lfs -text
53
+ # Image files - compressed
54
+ *.jpg filter=lfs diff=lfs merge=lfs -text
55
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
56
+ *.webp filter=lfs diff=lfs merge=lfs -text
57
+ # Video files - compressed
58
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
59
+ *.webm filter=lfs diff=lfs merge=lfs -text
60
+ garment_restpose_data_v1.json filter=lfs diff=lfs merge=lfs -text
61
+ editing/random_newgarments_textsewing.json filter=lfs diff=lfs merge=lfs -text
62
+ generation/data_detailtext_singlegarment_v2.json filter=lfs diff=lfs merge=lfs -text
63
+ generation/data_detailtext_v2.json filter=lfs diff=lfs merge=lfs -text
64
+ generation/data_detailtextimg_singlegarment_v2.json filter=lfs diff=lfs merge=lfs -text
65
+ generation/data_detailtextimg_v2.json filter=lfs diff=lfs merge=lfs -text
66
+ generation/data_detailtextimg_v3.json filter=lfs diff=lfs merge=lfs -text
67
+ generation/data_detailtextimg_v4.json filter=lfs diff=lfs merge=lfs -text
68
+ generation/data_img_v2.json filter=lfs diff=lfs merge=lfs -text
69
+ generation/data_img_v3.json filter=lfs diff=lfs merge=lfs -text
70
+ generation/data_restpose_img_v1.json filter=lfs diff=lfs merge=lfs -text
71
+ shhq/sshq_llavaformat_list_detaildescp.json filter=lfs diff=lfs merge=lfs -text
72
+ training/editing/random_newgarments_textsewing.json filter=lfs diff=lfs merge=lfs -text
73
+ training/shhq/sshq_llavaformat_list_detaildescp.json filter=lfs diff=lfs merge=lfs -text
74
+ training/synthetic/data_detailtext_singlegarment_v2.json filter=lfs diff=lfs merge=lfs -text
75
+ training/synthetic/data_detailtext_v2.json filter=lfs diff=lfs merge=lfs -text
76
+ training/synthetic/data_detailtextimg_singlegarment_v2.json filter=lfs diff=lfs merge=lfs -text
77
+ training/synthetic/data_detailtextimg_v2.json filter=lfs diff=lfs merge=lfs -text
78
+ training/synthetic/data_detailtextimg_v3.json filter=lfs diff=lfs merge=lfs -text
79
+ training/synthetic/data_detailtextimg_v4.json filter=lfs diff=lfs merge=lfs -text
80
+ training/synthetic/data_img_v2.json filter=lfs diff=lfs merge=lfs -text
81
+ training/synthetic/data_img_v3.json filter=lfs diff=lfs merge=lfs -text
82
+ training/synthetic/data_img_v4.json filter=lfs diff=lfs merge=lfs -text
83
+ training/synthetic/data_restpose_img_v1.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChatGarment Dataset
2
+
3
+ ## Introduction
4
+ This repository provides the dataset for training and evaluating [ChatGarment](https://chatgarment.github.io/).
5
+
6
+ ## 1. Formatted Data
7
+ These data are intended for general use.
8
+
9
+ #### Garment Image Archives
10
+ All garment images are stored in ``.zip`` files: ``garments_imgs_v1_*.zip``, ``garments_imgs_v2_*.zip``, ``garments_imgs_v3.zip``, ``garments_imgs_v4.zip``, etc. ``garments_imgs_v1_*.zip``, ``garments_imgs_v2_*.zip`` are split using the ``zipsplit`` command for ease of distribution.
11
+
12
+ #### v1 & v2 Annotations
13
+ We utilize the [GarmentCodeData v1](https://www.research-collection.ethz.ch/handle/20.500.11850/673889) dataset as the base garment dataset for garment sampling. The annotations are given in ``garment_restpose_data_v1.json`` and ``garment_posed_data_v2.json``.
14
+
15
+ Here is the structure of the ``.json`` files:
16
+ ```json
17
+ [{
18
+ 'upper_garment': ... // Directory of upper garments in GarmentCodeData v1 dataset
19
+ 'lower_garment': ... // Directory of lower garments in GarmentCodeData v1 dataset
20
+ 'whole_garment': ... // Directory of wholebody garments in GarmentCodeData v1 dataset
21
+ 'text_label': ... // Text descriptions for the outfit
22
+ 'img_name': ... // Directory of outfit images in garments_imgs_v1 or garments_imgs_v2
23
+ 'img_restpose_name': // Directory of A-pose outfit images in garments_imgs_v1 or garments_imgs_v2
24
+ },
25
+ ...
26
+ ]
27
+ ```
28
+
29
+ * **Dataset v1** contains only A-pose garments, and the text labels are extracted directly from ``dataset_properties_default_body.yaml`` in GarmentCodeData v1 dataset.
30
+ * **Dataset v2** contains garments in different poses. The text labels are generated by GPT-4o.
31
+
32
+
33
+ #### v3 & v4 Annotations
34
+ These versions are generated through customized sampling strategies. The annotations are provided in ``garment_posed_data_v3.json`` and ``garment_posed_data_v4.json``.
35
+
36
+ Here is the structure of the ``.json`` files:
37
+ ```json
38
+ [{
39
+ 'upper_garment': ... // Directory of upper garments in garments_imgs_v4
40
+ 'lower_garment': ... // Directory of lower garments in garments_imgs_v4
41
+ 'whole_garment': ... // Directory of wholebody garments in garments_imgs_v4
42
+ 'text_label_list': ... // A list of slightly different text descriptions for the outfit
43
+ 'img_name': ... // Directory of outfit images in garments_imgs_v4
44
+ },
45
+ ...
46
+ ]
47
+ ```
48
+ **Dataset v3** and **Dataset v4** contain garments in different poses. The text labels are generated by GPT-4o.
49
+
50
+
51
+
52
+ ## 2. Training Data for ChatGarment
53
+ We provide LLaVA-format JSON files used to train ChatGarment in the ``training`` folder.
54
+
55
+ #### a. Synthetic Image and Text Dataset
56
+ * Garments rendered in Blender.
57
+ * Descriptions generated with GPT-4o.
58
+ * Available at: training/synthetic/
59
+
60
+ #### b. Synthetic Garment Editing Dataset
61
+ * Available at: ``training/editing``.
62
+
63
+ #### c. Text Labels for SHHQ Dataset
64
+ * Available at: ``training/shhq``.
65
+
66
+
67
+ ## 3. Evaluation Data for ChatGarment
68
+ * CloSE Evaluation: ``evaluations/close_eva_imgs.zip``
69
+ * Dress4D Evaluation: ``evaluations/dress4d_eva_imgs.zip``
70
+ * Garment Editing Evaluation: ``evaluations/garment_edit_eva.json``
71
+
72
+
73
+ ## 4. Extra Data
74
+ The ``new_garments/`` folder contains:
75
+
76
+ * NEW Rest-pose garments used in ChatGarment (excluding v1 and v2 garments from GarmentCodeData)
77
+ * Corresponding ``.obj`` mesh files
78
+
79
+
80
+ ## Citation
81
+ ```bibtex
82
+ @article{bian2024chatgarment,
83
+ title={ChatGarment: Garment Estimation, Generation and Editing via Large Language Models},
84
+ author={Bian, Siyuan and Xu, Chenghao and Xiu, Yuliang and Grigorev, Artur and Liu, Zhen and Lu, Cewu and Black, Michael J and Feng, Yao},
85
+ journal={arXiv preprint arXiv:2412.17811},
86
+ year={2024}
87
+ }
88
+ ```
evaluations/close_eva_imgs.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c211d24e2e284d1f4ec87f2a0bfeecc4fd36a8593c8dfec51dfa3fa6d8cc886
3
+ size 26671673
evaluations/dress4d_eva_imgs.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af6b6471911000d36464ad9239066ed7ce2c3b8afe9a497693b868b1993c99b6
3
+ size 75647310
evaluations/garment_edit_eva.json ADDED
The diff for this file is too large to render. See raw diff
 
garment_posed_data_v2.json ADDED
The diff for this file is too large to render. See raw diff
 
garment_posed_data_v3.json ADDED
The diff for this file is too large to render. See raw diff
 
garment_posed_data_v4.json ADDED
The diff for this file is too large to render. See raw diff
 
garment_restpose_data_v1.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f689a4e4b8b23322350a6ffd1f414702c75dc9b104941bc33b5e591295697e32
3
+ size 32613000
garments_imgs_v1_1.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1d8e3166ce970fe7378fe7a4a36051a9d7dab1ccac0dff75014cb5cc21327d4
3
+ size 32210405861
garments_imgs_v1_2.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb61652ce31a0fa31982345cc466c3421cf14d809d75f0850aa9d3c618867648
3
+ size 32209904921
garments_imgs_v1_3.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90249d69b98f40502e8a9c6ed580037953332ae88680145eda78bf8b5f67e79f
3
+ size 32209862431
garments_imgs_v1_4.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d81ae1f98fbca037e9087241cfef60c052db18a848f20c2b3a2e14e0880535d7
3
+ size 32209902793
garments_imgs_v1_5.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b34f76bbdd35b0f4505125ea2024bcd98555b085d57ae7fa521412a17a9d1501
3
+ size 28076526234
garments_imgs_v2_1.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42c17115a271ea6b594906878c153167164e755597010e3c606bbe631bca80ec
3
+ size 32209650967
garments_imgs_v2_2.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c9584bf694a9d551a27a82699e7748fb6db24af071bd534cd175265ad3cedfb
3
+ size 32209083485
garments_imgs_v2_3.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b072c70cf4048a99e47b0c3073c3518ba481ad91e0a009b238c93f4ee414c331
3
+ size 8118467898
garments_imgs_v3.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:253d23251bd888b0a0b14e69528639e506293d9d497478009ae5993b8248b244
3
+ size 26768738535
garments_imgs_v4.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dae196c96da8d9b3f81ce50c401ae4eb5ccdf1cef0d89a24ca001331179a1cb6
3
+ size 19493405541
gpt4o_prompts.txt ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ I will provide an image of a human model wearing several garments. Describe the outer layer garments the model is wearing. In the image, the model may wear one upper garment and one lower garment, or the model may wear a single wholebody garment. Avoid describing extra accessories such as the scarves, socks, watch, badges, and etc.
2
+
3
+ For each garment, you should generate TWO strings.
4
+
5
+ In the first string, describe the garment type (If THE SUBJECT HAS A NAME, INCLUDE ITS NAME FIRST!);
6
+
7
+ Example phrases for the first string: "hood", "T-shirt", "jacket", "tuxedo", etc.
8
+
9
+
10
+ In the second string, describe the overall global geometric features of the garment (DO NOT INCLUDE ANY INFO ABOUT THE HUMAN MODEL AND THE COLOR INFO OF THE GARMENT) using several different short phrases split by ',' with the following tips:
11
+
12
+ Example rules:
13
+ Describe the length of the sleeves: long, normal, short, sleeveless, etc.
14
+ Describe if it has a hood: with a hood, etc.
15
+ Describe the length of the dress: long, normal, short, etc.
16
+ Describe the width of the garment: wide, normal, narrow, etc.
17
+ Describe the length of the garment: long, normal, short, etc.
18
+ Describe the length of the legs of trousers: long, normal, short, etc.
19
+
20
+ Please follow the example rules above (not limited to these examples) to describe the geometric features of the garment.
21
+
22
+ Example phrases for the second string: "long sleeves", "wide garment", "with a hood", "deep collar", "sleeveless"...
23
+
24
+
25
+ Please strictly avoid mentioning color, texture, and material.
26
+
27
+ In the image, if the model is wearing one upper garment and one lower garment, return the results in the following format: {"upper garment": [upper garment type, upper garment geometric features], "lower garment": [lower garment type, lower garment geometric features]}. Otherwise, the model is wearing a single wholebody garment , return the results in the following format: {"wholebody garment": [wholebody garment type, wholebody garment geometric features]}. Return only the JSON dictionary in the above format with a length of 1 or 2.
new_garments/garment_v3_1.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09c61cc3fd050a94ba7da82d60a2771e78009e04a2307e71b6b84cb412cd0f59
3
+ size 42946956653
new_garments/garment_v3_2.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8da5c255b996dba7413ae68b05e8b22cf9c04d179a5565c806302669bcba2bb3
3
+ size 27045293179
new_garments/garment_v4.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0700ded8761825674877c6a0da474d2b602dbd8a0329fda2c7ce8ff9fa7c94f8
3
+ size 38235534425
training/editing/random_newgarments_textsewing.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:069ecd4bd535d4aa468f7d625d41788a07f7e201e1e1ae40ada2ded5dde93391
3
+ size 20461564
training/shhq/sshq_llavaformat_list_detaildescp.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b967a9a49c545d0562ef3e2f33e556ec8049b7bcf13883fc907c1521305a424d
3
+ size 25326654
training/synthetic/data_detailtext_singlegarment_v2.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96252333e8af1dd0ec9976c4a663240920bf978fe7e1b577304968b4c69a5b79
3
+ size 22170245
training/synthetic/data_detailtext_v2.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:221bab31b14282303376b3ff3fe669290334dea368af5232619aa40535ef6f24
3
+ size 21569219
training/synthetic/data_detailtext_v4.json ADDED
The diff for this file is too large to render. See raw diff
 
training/synthetic/data_detailtextimg_singlegarment_v2.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:086a0a53eeb3e44ef5267fc7cf015f5e2be340f7ea546ae256eee2c3ad1ab789
3
+ size 865401551
training/synthetic/data_detailtextimg_v2.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4566604249f030930d2ba38777068ba94fa5b340595318a84fbcf8d2db40a3fe
3
+ size 813358152
training/synthetic/data_detailtextimg_v3.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2b8e6d4865ffa3d57c4f507b91920bcdb0c727bfc08b3a9e7c7090530bf3c6b
3
+ size 234929756
training/synthetic/data_detailtextimg_v4.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:176eacf7ded179367dbb4f98b609547420f7bae008ce897756f998526cf39e0a
3
+ size 166010466
training/synthetic/data_img_v2.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:317bb871d39092409fc488e39f245314fb63a89867f8050e5f65799d551f2333
3
+ size 734434620
training/synthetic/data_img_v3.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b1e4cfd0c84e1f441afcacada3eb85a8aab89b77f0d2a208064298f97637f2e
3
+ size 759062756
training/synthetic/data_img_v4.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7b457235d9c16cb48db83aea537ec0ff7a03da61487e4ea3259699de33a085e
3
+ size 128112640
training/synthetic/data_restpose_img_v1.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37e1b9e09ffec28eb09bf235db8d7bda7b0c187b2646f5d0c362744e0bb75e51
3
+ size 1408155834