justin-shopcapsule valentinafeve commited on
Commit
0dea7f8
0 Parent(s):

Duplicate from valentinafeve/yolos-fashionpedia

Browse files

Co-authored-by: Valentina Feruere <valentinafeve@users.noreply.huggingface.co>

Files changed (5) hide show
  1. .gitattributes +34 -0
  2. README.md +23 -0
  3. config.json +130 -0
  4. preprocessor_config.json +18 -0
  5. pytorch_model.bin +3 -0
.gitattributes ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tflite filter=lfs diff=lfs merge=lfs -text
29
+ *.tgz filter=lfs diff=lfs merge=lfs -text
30
+ *.wasm filter=lfs diff=lfs merge=lfs -text
31
+ *.xz filter=lfs diff=lfs merge=lfs -text
32
+ *.zip filter=lfs diff=lfs merge=lfs -text
33
+ *.zst filter=lfs diff=lfs merge=lfs -text
34
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - detection-datasets/fashionpedia
4
+ language:
5
+ - en
6
+ pipeline_tag: object-detection
7
+ tags:
8
+ - YOLOS
9
+ - Object detection
10
+ ---
11
+
12
+ This is a fine-tunned object detection model for fashion.
13
+
14
+ For more details of the implementation you can check the source code [here](https://github.com/valntinaf/fine_tunning_YOLOS_for_fashion)
15
+
16
+ the dataset used for its training is available [here](https://huggingface.co/datasets/detection-datasets/fashionpedia)
17
+
18
+ this model supports the following categories:
19
+
20
+ CATS = ['shirt, blouse', 'top, t-shirt, sweatshirt', 'sweater', 'cardigan', 'jacket', 'vest', 'pants', 'shorts', 'skirt', 'coat', 'dress', 'jumpsuit', 'cape', 'glasses', 'hat', 'headband, head covering, hair accessory', 'tie', 'glove', 'watch', 'belt', 'leg warmer', 'tights, stockings', 'sock', 'shoe', 'bag, wallet', 'scarf', 'umbrella', 'hood', 'collar', 'lapel', 'epaulette', 'sleeve', 'pocket', 'neckline', 'buckle', 'zipper', 'applique', 'bead', 'bow', 'flower', 'fringe', 'ribbon', 'rivet', 'ruffle', 'sequin', 'tassel']
21
+
22
+
23
+ ![image](https://miro.medium.com/v2/resize:fit:1400/format:webp/1*q8TTgxX_gf6vRe5AJN2r4g.png)
config.json ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "valentinafeve/yolos-fashionpedia",
3
+ "architectures": [
4
+ "YolosForObjectDetection"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "auxiliary_loss": false,
8
+ "bbox_cost": 5,
9
+ "bbox_loss_coefficient": 5,
10
+ "class_cost": 1,
11
+ "eos_coefficient": 0.1,
12
+ "giou_cost": 2,
13
+ "giou_loss_coefficient": 2,
14
+ "hidden_act": "gelu",
15
+ "hidden_dropout_prob": 0.0,
16
+ "hidden_size": 384,
17
+ "id2label": {
18
+ "0": "shirt, blouse",
19
+ "1": "top, t-shirt, sweatshirt",
20
+ "2": "sweater",
21
+ "3": "cardigan",
22
+ "4": "jacket",
23
+ "5": "vest",
24
+ "6": "pants",
25
+ "7": "shorts",
26
+ "8": "skirt",
27
+ "9": "coat",
28
+ "10": "dress",
29
+ "11": "jumpsuit",
30
+ "12": "cape",
31
+ "13": "glasses",
32
+ "14": "hat",
33
+ "15": "headband, head covering, hair accessory",
34
+ "16": "tie",
35
+ "17": "glove",
36
+ "18": "watch",
37
+ "19": "belt",
38
+ "20": "leg warmer",
39
+ "21": "tights, stockings",
40
+ "22": "sock",
41
+ "23": "shoe",
42
+ "24": "bag, wallet",
43
+ "25": "scarf",
44
+ "26": "umbrella",
45
+ "27": "hood",
46
+ "28": "collar",
47
+ "29": "lapel",
48
+ "30": "epaulette",
49
+ "31": "sleeve",
50
+ "32": "pocket",
51
+ "33": "neckline",
52
+ "34": "buckle",
53
+ "35": "zipper",
54
+ "36": "applique",
55
+ "37": "bead",
56
+ "38": "bow",
57
+ "39": "flower",
58
+ "40": "fringe",
59
+ "41": "ribbon",
60
+ "42": "rivet",
61
+ "43": "ruffle",
62
+ "44": "sequin",
63
+ "45": "tassel"
64
+ },
65
+ "image_size": [
66
+ 512,
67
+ 864
68
+ ],
69
+ "initializer_range": 0.02,
70
+ "intermediate_size": 1536,
71
+ "label2id": {
72
+ "applique": 36,
73
+ "bag, wallet": 24,
74
+ "bead": 37,
75
+ "belt": 19,
76
+ "bow": 38,
77
+ "buckle": 34,
78
+ "cape": 12,
79
+ "cardigan": 3,
80
+ "coat": 9,
81
+ "collar": 28,
82
+ "dress": 10,
83
+ "epaulette": 30,
84
+ "flower": 39,
85
+ "fringe": 40,
86
+ "glasses": 13,
87
+ "glove": 17,
88
+ "hat": 14,
89
+ "headband, head covering, hair accessory": 15,
90
+ "hood": 27,
91
+ "jacket": 4,
92
+ "jumpsuit": 11,
93
+ "lapel": 29,
94
+ "leg warmer": 20,
95
+ "neckline": 33,
96
+ "pants": 6,
97
+ "pocket": 32,
98
+ "ribbon": 41,
99
+ "rivet": 42,
100
+ "ruffle": 43,
101
+ "scarf": 25,
102
+ "sequin": 44,
103
+ "shirt, blouse": 0,
104
+ "shoe": 23,
105
+ "shorts": 7,
106
+ "skirt": 8,
107
+ "sleeve": 31,
108
+ "sock": 22,
109
+ "sweater": 2,
110
+ "tassel": 45,
111
+ "tie": 16,
112
+ "tights, stockings": 21,
113
+ "top, t-shirt, sweatshirt": 1,
114
+ "umbrella": 26,
115
+ "vest": 5,
116
+ "watch": 18,
117
+ "zipper": 35
118
+ },
119
+ "layer_norm_eps": 1e-12,
120
+ "model_type": "yolos",
121
+ "num_attention_heads": 6,
122
+ "num_channels": 3,
123
+ "num_detection_tokens": 100,
124
+ "num_hidden_layers": 12,
125
+ "patch_size": 16,
126
+ "qkv_bias": true,
127
+ "torch_dtype": "float32",
128
+ "transformers_version": "4.23.1",
129
+ "use_mid_position_embeddings": true
130
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_resize": true,
4
+ "feature_extractor_type": "YolosFeatureExtractor",
5
+ "format": "coco_detection",
6
+ "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
+ ],
11
+ "image_std": [
12
+ 0.229,
13
+ 0.224,
14
+ 0.225
15
+ ],
16
+ "max_size": 1333,
17
+ "size": 512
18
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b5f4cc272f8f32b2f25b129f9ce7df4756cb030d5fbd234c790b6a9eef962a1
3
+ size 122738781