Upload 3 files
Browse files- config.json +145 -0
- model.safetensors +3 -0
- preprocessor_config.json +39 -0
config.json
ADDED
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"return_dict": true,
|
3 |
+
"output_hidden_states": false,
|
4 |
+
"output_attentions": false,
|
5 |
+
"torchscript": false,
|
6 |
+
"torch_dtype": "float32",
|
7 |
+
"use_bfloat16": false,
|
8 |
+
"tf_legacy_loss": false,
|
9 |
+
"pruned_heads": {},
|
10 |
+
"tie_word_embeddings": true,
|
11 |
+
"chunk_size_feed_forward": 0,
|
12 |
+
"is_encoder_decoder": false,
|
13 |
+
"is_decoder": false,
|
14 |
+
"cross_attention_hidden_size": null,
|
15 |
+
"add_cross_attention": false,
|
16 |
+
"tie_encoder_decoder": false,
|
17 |
+
"max_length": 20,
|
18 |
+
"min_length": 0,
|
19 |
+
"do_sample": false,
|
20 |
+
"early_stopping": false,
|
21 |
+
"num_beams": 1,
|
22 |
+
"num_beam_groups": 1,
|
23 |
+
"diversity_penalty": 0.0,
|
24 |
+
"temperature": 1.0,
|
25 |
+
"top_k": 50,
|
26 |
+
"top_p": 1.0,
|
27 |
+
"typical_p": 1.0,
|
28 |
+
"repetition_penalty": 1.0,
|
29 |
+
"length_penalty": 1.0,
|
30 |
+
"no_repeat_ngram_size": 0,
|
31 |
+
"encoder_no_repeat_ngram_size": 0,
|
32 |
+
"bad_words_ids": null,
|
33 |
+
"num_return_sequences": 1,
|
34 |
+
"output_scores": false,
|
35 |
+
"return_dict_in_generate": false,
|
36 |
+
"forced_bos_token_id": null,
|
37 |
+
"forced_eos_token_id": null,
|
38 |
+
"remove_invalid_values": false,
|
39 |
+
"exponential_decay_length_penalty": null,
|
40 |
+
"suppress_tokens": null,
|
41 |
+
"begin_suppress_tokens": null,
|
42 |
+
"architectures": [
|
43 |
+
"SegformerForSemanticSegmentation"
|
44 |
+
],
|
45 |
+
"finetuning_task": null,
|
46 |
+
"id2label": {
|
47 |
+
"0": "etc",
|
48 |
+
"1": "broken",
|
49 |
+
"2": "crack",
|
50 |
+
"3": "crush",
|
51 |
+
"4": "dent",
|
52 |
+
"5": "flat_tire",
|
53 |
+
"6": "misalignment",
|
54 |
+
"7": "missing",
|
55 |
+
"8": "scratch",
|
56 |
+
"9": "shatter",
|
57 |
+
"10": "tear"
|
58 |
+
},
|
59 |
+
"label2id": {
|
60 |
+
"etc": "0",
|
61 |
+
"broken": "1",
|
62 |
+
"crack": "2",
|
63 |
+
"crush": "3",
|
64 |
+
"dent": "4",
|
65 |
+
"flat_tire": "5",
|
66 |
+
"misalignment": "6",
|
67 |
+
"missing": "7",
|
68 |
+
"scratch": "8",
|
69 |
+
"shatter": "9",
|
70 |
+
"tear": "10"
|
71 |
+
},
|
72 |
+
"tokenizer_class": null,
|
73 |
+
"prefix": null,
|
74 |
+
"bos_token_id": null,
|
75 |
+
"pad_token_id": null,
|
76 |
+
"eos_token_id": null,
|
77 |
+
"sep_token_id": null,
|
78 |
+
"decoder_start_token_id": null,
|
79 |
+
"task_specific_params": null,
|
80 |
+
"problem_type": null,
|
81 |
+
"_name_or_path": "mattmdjaga/segformer_b2_clothes",
|
82 |
+
"transformers_version": "4.39.3",
|
83 |
+
"downsampling_rates": [
|
84 |
+
1,
|
85 |
+
4,
|
86 |
+
8,
|
87 |
+
16
|
88 |
+
],
|
89 |
+
"image_size": 224,
|
90 |
+
"model_type": "segformer",
|
91 |
+
"reshape_last_stage": true,
|
92 |
+
"num_channels": 3,
|
93 |
+
"num_encoder_blocks": 4,
|
94 |
+
"depths": [
|
95 |
+
3,
|
96 |
+
4,
|
97 |
+
6,
|
98 |
+
3
|
99 |
+
],
|
100 |
+
"sr_ratios": [
|
101 |
+
8,
|
102 |
+
4,
|
103 |
+
2,
|
104 |
+
1
|
105 |
+
],
|
106 |
+
"hidden_sizes": [
|
107 |
+
64,
|
108 |
+
128,
|
109 |
+
320,
|
110 |
+
512
|
111 |
+
],
|
112 |
+
"patch_sizes": [
|
113 |
+
7,
|
114 |
+
3,
|
115 |
+
3,
|
116 |
+
3
|
117 |
+
],
|
118 |
+
"strides": [
|
119 |
+
4,
|
120 |
+
2,
|
121 |
+
2,
|
122 |
+
2
|
123 |
+
],
|
124 |
+
"mlp_ratios": [
|
125 |
+
4,
|
126 |
+
4,
|
127 |
+
4,
|
128 |
+
4
|
129 |
+
],
|
130 |
+
"num_attention_heads": [
|
131 |
+
1,
|
132 |
+
2,
|
133 |
+
5,
|
134 |
+
8
|
135 |
+
],
|
136 |
+
"hidden_act": "gelu",
|
137 |
+
"hidden_dropout_prob": 0.0,
|
138 |
+
"attention_probs_dropout_prob": 0.0,
|
139 |
+
"classifier_dropout_prob": 0.1,
|
140 |
+
"initializer_range": 0.02,
|
141 |
+
"drop_path_rate": 0.1,
|
142 |
+
"layer_norm_eps": 1e-06,
|
143 |
+
"decoder_hidden_size": 768,
|
144 |
+
"semantic_loss_ignore_index": 255
|
145 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2f2b152f55557c58d70da638d10ed8876dd52dd335c4fc836ef20b23a4241092
|
3 |
+
size 109471708
|
preprocessor_config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_valid_processor_keys": [
|
3 |
+
"images",
|
4 |
+
"segmentation_maps",
|
5 |
+
"do_resize",
|
6 |
+
"size",
|
7 |
+
"resample",
|
8 |
+
"do_rescale",
|
9 |
+
"rescale_factor",
|
10 |
+
"do_normalize",
|
11 |
+
"image_mean",
|
12 |
+
"image_std",
|
13 |
+
"do_reduce_labels",
|
14 |
+
"return_tensors",
|
15 |
+
"data_format",
|
16 |
+
"input_data_format"
|
17 |
+
],
|
18 |
+
"do_normalize": true,
|
19 |
+
"do_reduce_labels": false,
|
20 |
+
"do_rescale": true,
|
21 |
+
"do_resize": true,
|
22 |
+
"image_mean": [
|
23 |
+
0.485,
|
24 |
+
0.456,
|
25 |
+
0.406
|
26 |
+
],
|
27 |
+
"image_processor_type": "SegformerFeatureExtractor",
|
28 |
+
"image_std": [
|
29 |
+
0.229,
|
30 |
+
0.224,
|
31 |
+
0.225
|
32 |
+
],
|
33 |
+
"resample": 2,
|
34 |
+
"rescale_factor": 0.00392156862745098,
|
35 |
+
"size": {
|
36 |
+
"height": 512,
|
37 |
+
"width": 512
|
38 |
+
}
|
39 |
+
}
|