Upload 3 files
Browse files- config.json +78 -0
- preprocessor_config.json +26 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/maskformer-swin-tiny-coco",
|
3 |
+
"architectures": [
|
4 |
+
"MaskFormerForInstanceSegmentation"
|
5 |
+
],
|
6 |
+
"backbone": null,
|
7 |
+
"backbone_config": {
|
8 |
+
"depths": [
|
9 |
+
2,
|
10 |
+
2,
|
11 |
+
6,
|
12 |
+
2
|
13 |
+
],
|
14 |
+
"drop_path_rate": 0.3,
|
15 |
+
"embed_dim": 96,
|
16 |
+
"encoder_stride": 32,
|
17 |
+
"hidden_size": 768,
|
18 |
+
"image_size": 224,
|
19 |
+
"in_channels": 3,
|
20 |
+
"model_type": "swin",
|
21 |
+
"num_heads": [
|
22 |
+
3,
|
23 |
+
6,
|
24 |
+
12,
|
25 |
+
24
|
26 |
+
],
|
27 |
+
"out_features": [
|
28 |
+
"stage1",
|
29 |
+
"stage2",
|
30 |
+
"stage3",
|
31 |
+
"stage4"
|
32 |
+
],
|
33 |
+
"out_indices": [
|
34 |
+
1,
|
35 |
+
2,
|
36 |
+
3,
|
37 |
+
4
|
38 |
+
],
|
39 |
+
"path_norm": true,
|
40 |
+
"pretrain_img_size": 224,
|
41 |
+
"window_size": 7
|
42 |
+
},
|
43 |
+
"backbone_kwargs": null,
|
44 |
+
"ce_weight": 1.0,
|
45 |
+
"cross_entropy_weight": 1.0,
|
46 |
+
"decoder_config": {
|
47 |
+
"max_position_embeddings": 1024,
|
48 |
+
"model_type": "detr",
|
49 |
+
"scale_embedding": false
|
50 |
+
},
|
51 |
+
"dice_weight": 1.0,
|
52 |
+
"fpn_feature_size": 256,
|
53 |
+
"id2label": {
|
54 |
+
"0": "background",
|
55 |
+
"1": "normal",
|
56 |
+
"2": "abnormal"
|
57 |
+
},
|
58 |
+
"init_std": 0.02,
|
59 |
+
"init_xavier_std": 1.0,
|
60 |
+
"label2id": {
|
61 |
+
"abnormal": 2,
|
62 |
+
"background": 0,
|
63 |
+
"normal": 1
|
64 |
+
},
|
65 |
+
"mask_feature_size": 256,
|
66 |
+
"mask_weight": 20.0,
|
67 |
+
"model_type": "maskformer",
|
68 |
+
"no_object_weight": 0.1,
|
69 |
+
"num_attention_heads": 8,
|
70 |
+
"num_hidden_layers": 6,
|
71 |
+
"num_queries": 100,
|
72 |
+
"output_auxiliary_logits": null,
|
73 |
+
"torch_dtype": "float32",
|
74 |
+
"transformers_version": "4.38.2",
|
75 |
+
"use_auxiliary_loss": false,
|
76 |
+
"use_pretrained_backbone": false,
|
77 |
+
"use_timm_backbone": false
|
78 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_max_size": 1333,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_reduce_labels": false,
|
5 |
+
"do_rescale": true,
|
6 |
+
"do_resize": true,
|
7 |
+
"ignore_index": 255,
|
8 |
+
"image_mean": [
|
9 |
+
0.48500001430511475,
|
10 |
+
0.4560000002384186,
|
11 |
+
0.4059999883174896
|
12 |
+
],
|
13 |
+
"image_processor_type": "MaskFormerImageProcessor",
|
14 |
+
"image_std": [
|
15 |
+
0.2290000021457672,
|
16 |
+
0.2239999920129776,
|
17 |
+
0.22499999403953552
|
18 |
+
],
|
19 |
+
"resample": 2,
|
20 |
+
"rescale_factor": 0.00392156862745098,
|
21 |
+
"size": {
|
22 |
+
"height": 224,
|
23 |
+
"width": 224
|
24 |
+
},
|
25 |
+
"size_divisor": 32
|
26 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:362f7f6d6b250a39648e7e24331735a3ed29117bc023a4a855da21bf1c5212fd
|
3 |
+
size 167312266
|