commit files to HF hub
Browse files- README.md +24 -0
- config.json +120 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- image-classification
|
| 4 |
+
- pytorch
|
| 5 |
+
- huggingpics
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
|
| 9 |
+
model-index:
|
| 10 |
+
- name: BlurorBokehv2
|
| 11 |
+
results:
|
| 12 |
+
- task:
|
| 13 |
+
name: Image Classification
|
| 14 |
+
type: image-classification
|
| 15 |
+
metrics:
|
| 16 |
+
- name: Accuracy
|
| 17 |
+
type: accuracy
|
| 18 |
+
value: 0.98
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# BlurorBokehv2
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
Blur Or Bokeh Model
|
config.json
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "microsoft/cvt-21-384-22k",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"CvtForImageClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_drop_rate": [
|
| 7 |
+
0.0,
|
| 8 |
+
0.0,
|
| 9 |
+
0.0
|
| 10 |
+
],
|
| 11 |
+
"cls_token": [
|
| 12 |
+
false,
|
| 13 |
+
false,
|
| 14 |
+
true
|
| 15 |
+
],
|
| 16 |
+
"depth": [
|
| 17 |
+
1,
|
| 18 |
+
4,
|
| 19 |
+
16
|
| 20 |
+
],
|
| 21 |
+
"drop_path_rate": [
|
| 22 |
+
0.0,
|
| 23 |
+
0.0,
|
| 24 |
+
0.1
|
| 25 |
+
],
|
| 26 |
+
"drop_rate": [
|
| 27 |
+
0.0,
|
| 28 |
+
0.0,
|
| 29 |
+
0.0
|
| 30 |
+
],
|
| 31 |
+
"embed_dim": [
|
| 32 |
+
64,
|
| 33 |
+
192,
|
| 34 |
+
384
|
| 35 |
+
],
|
| 36 |
+
"id2label": {
|
| 37 |
+
"0": "Blur",
|
| 38 |
+
"1": "Bokeh",
|
| 39 |
+
"2": "Normal"
|
| 40 |
+
},
|
| 41 |
+
"image_size": 384,
|
| 42 |
+
"initializer_range": 0.02,
|
| 43 |
+
"kernel_qkv": [
|
| 44 |
+
3,
|
| 45 |
+
3,
|
| 46 |
+
3
|
| 47 |
+
],
|
| 48 |
+
"label2id": {
|
| 49 |
+
"Blur": "0",
|
| 50 |
+
"Bokeh": "1",
|
| 51 |
+
"Normal": "2"
|
| 52 |
+
},
|
| 53 |
+
"layer_norm_eps": 1e-12,
|
| 54 |
+
"mlp_ratio": [
|
| 55 |
+
4.0,
|
| 56 |
+
4.0,
|
| 57 |
+
4.0
|
| 58 |
+
],
|
| 59 |
+
"model_type": "cvt",
|
| 60 |
+
"num_channels": 3,
|
| 61 |
+
"num_heads": [
|
| 62 |
+
1,
|
| 63 |
+
3,
|
| 64 |
+
6
|
| 65 |
+
],
|
| 66 |
+
"num_stages": 3,
|
| 67 |
+
"padding_kv": [
|
| 68 |
+
1,
|
| 69 |
+
1,
|
| 70 |
+
1
|
| 71 |
+
],
|
| 72 |
+
"padding_q": [
|
| 73 |
+
1,
|
| 74 |
+
1,
|
| 75 |
+
1
|
| 76 |
+
],
|
| 77 |
+
"patch_padding": [
|
| 78 |
+
2,
|
| 79 |
+
1,
|
| 80 |
+
1
|
| 81 |
+
],
|
| 82 |
+
"patch_sizes": [
|
| 83 |
+
7,
|
| 84 |
+
3,
|
| 85 |
+
3
|
| 86 |
+
],
|
| 87 |
+
"patch_stride": [
|
| 88 |
+
4,
|
| 89 |
+
2,
|
| 90 |
+
2
|
| 91 |
+
],
|
| 92 |
+
"pos_embed": [
|
| 93 |
+
false,
|
| 94 |
+
false,
|
| 95 |
+
false
|
| 96 |
+
],
|
| 97 |
+
"problem_type": "single_label_classification",
|
| 98 |
+
"qkv_bias": [
|
| 99 |
+
true,
|
| 100 |
+
true,
|
| 101 |
+
true
|
| 102 |
+
],
|
| 103 |
+
"qkv_projection_method": [
|
| 104 |
+
"dw_bn",
|
| 105 |
+
"dw_bn",
|
| 106 |
+
"dw_bn"
|
| 107 |
+
],
|
| 108 |
+
"stride_kv": [
|
| 109 |
+
2,
|
| 110 |
+
2,
|
| 111 |
+
2
|
| 112 |
+
],
|
| 113 |
+
"stride_q": [
|
| 114 |
+
1,
|
| 115 |
+
1,
|
| 116 |
+
1
|
| 117 |
+
],
|
| 118 |
+
"torch_dtype": "float32",
|
| 119 |
+
"transformers_version": "4.44.2"
|
| 120 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:97376c090e4050cb9f0e36780813a3b96c620e11d4fbe45500d96b5be64f366b
|
| 3 |
+
size 125241140
|
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": 384
|
| 21 |
+
}
|
| 22 |
+
}
|