Upload 4 files
Browse files- config.json +57 -0
- model.onnx +3 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/resnet-50",
|
3 |
+
"architectures": [
|
4 |
+
"ResNetForImageClassification"
|
5 |
+
],
|
6 |
+
"depths": [
|
7 |
+
3,
|
8 |
+
4,
|
9 |
+
6,
|
10 |
+
3
|
11 |
+
],
|
12 |
+
"downsample_in_bottleneck": false,
|
13 |
+
"downsample_in_first_stage": false,
|
14 |
+
"embedding_size": 64,
|
15 |
+
"hidden_act": "relu",
|
16 |
+
"hidden_sizes": [
|
17 |
+
256,
|
18 |
+
512,
|
19 |
+
1024,
|
20 |
+
2048
|
21 |
+
],
|
22 |
+
"id2label": {
|
23 |
+
"0": "crazing",
|
24 |
+
"1": "inclusion",
|
25 |
+
"2": "patches",
|
26 |
+
"3": "pitted_surface",
|
27 |
+
"4": "rolled-in_scale",
|
28 |
+
"5": "scratches"
|
29 |
+
},
|
30 |
+
"label2id": {
|
31 |
+
"crazing": "0",
|
32 |
+
"inclusion": "1",
|
33 |
+
"patches": "2",
|
34 |
+
"pitted_surface": "3",
|
35 |
+
"rolled-in_scale": "4",
|
36 |
+
"scratches": "5"
|
37 |
+
},
|
38 |
+
"layer_type": "bottleneck",
|
39 |
+
"model_type": "resnet",
|
40 |
+
"num_channels": 3,
|
41 |
+
"out_features": [
|
42 |
+
"stage4"
|
43 |
+
],
|
44 |
+
"out_indices": [
|
45 |
+
4
|
46 |
+
],
|
47 |
+
"problem_type": "single_label_classification",
|
48 |
+
"stage_names": [
|
49 |
+
"stem",
|
50 |
+
"stage1",
|
51 |
+
"stage2",
|
52 |
+
"stage3",
|
53 |
+
"stage4"
|
54 |
+
],
|
55 |
+
"torch_dtype": "float32",
|
56 |
+
"transformers_version": "4.45.0"
|
57 |
+
}
|
model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:75e0b67b71442a7fe45e6160ff871b678f5b0f4d9c3414f299b8c6456a00b284
|
3 |
+
size 94011101
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7451109cef37b3651b093ae32fd4b1984daab1fdd7be6be947de58ad3224d977
|
3 |
+
size 94335752
|
preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_pct": 0.875,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [
|
7 |
+
0.485,
|
8 |
+
0.456,
|
9 |
+
0.406
|
10 |
+
],
|
11 |
+
"image_processor_type": "ConvNextImageProcessor",
|
12 |
+
"image_std": [
|
13 |
+
0.229,
|
14 |
+
0.224,
|
15 |
+
0.225
|
16 |
+
],
|
17 |
+
"resample": 3,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"shortest_edge": 224
|
21 |
+
}
|
22 |
+
}
|