Update model
Browse files- config.json +3 -2
- preprocessor_config.json +1 -1
config.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"architectures": [
|
3 |
-
"
|
4 |
],
|
5 |
"attention_probs_dropout_prob": 0.0,
|
6 |
"classifier_dropout_prob": 0.1,
|
@@ -354,6 +354,7 @@
|
|
354 |
3,
|
355 |
3
|
356 |
],
|
|
|
357 |
"sr_ratios": [
|
358 |
8,
|
359 |
4,
|
@@ -367,5 +368,5 @@
|
|
367 |
2
|
368 |
],
|
369 |
"torch_dtype": "float32",
|
370 |
-
"transformers_version": "4.
|
371 |
}
|
|
|
1 |
{
|
2 |
"architectures": [
|
3 |
+
"SegformerForImageSegmentation"
|
4 |
],
|
5 |
"attention_probs_dropout_prob": 0.0,
|
6 |
"classifier_dropout_prob": 0.1,
|
|
|
354 |
3,
|
355 |
3
|
356 |
],
|
357 |
+
"reshape_last_stage": true,
|
358 |
"sr_ratios": [
|
359 |
8,
|
360 |
4,
|
|
|
368 |
2
|
369 |
],
|
370 |
"torch_dtype": "float32",
|
371 |
+
"transformers_version": "4.12.0.dev0"
|
372 |
}
|
preprocessor_config.json
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
"do_pad": true,
|
9 |
"do_random_crop": false,
|
10 |
"do_resize": true,
|
11 |
-
"feature_extractor_type": "
|
12 |
"image_mean": [
|
13 |
0.485,
|
14 |
0.456,
|
|
|
8 |
"do_pad": true,
|
9 |
"do_random_crop": false,
|
10 |
"do_resize": true,
|
11 |
+
"feature_extractor_type": "SegformerFeatureExtractor",
|
12 |
"image_mean": [
|
13 |
0.485,
|
14 |
0.456,
|