leoosx commited on
Commit
8027dc6
·
verified ·
1 Parent(s): 021d65e

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - image-classification
5
+ - vit
6
+ - bittensor-sn72
7
+ - roadwork
8
+ base_model: natix-network-org/roadwork
9
+ ---
10
+
11
+ # Roadwork classifier (fine-tuned for Bittensor SN72)
12
+
13
+ Fine-tuned from `natix-network-org/roadwork` against the validator augmentation pipeline
14
+ in `natix/utils/image_transforms.py` (rotation/flips/JPEG/blur/noise/color distortions).
15
+
16
+ ## Training
17
+ - 4 epochs, AdamW lr=2e-5 cosine schedule, class weights for the 4:1 label imbalance
18
+ - Filter rule from validator's image cache applied to keep only consistent (description, label) pairs
19
+
20
+ ## Eval (augmented test set, 2,263 examples)
21
+
22
+ | Metric | Baseline | This model | Cubic reward gain |
23
+ |---|---|---|---|
24
+ | Accuracy | 0.9633 | 0.9806 | |
25
+ | MCC | — | 0.8888 | |
26
+ | Reward proxy | 0.8564 | 0.9347 | +30.0% |
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "natix-network-org/roadwork",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "None",
13
+ "1": "Roadwork"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "None": 0,
20
+ "Roadwork": 1
21
+ },
22
+ "layer_norm_eps": 1e-12,
23
+ "model_type": "vit",
24
+ "num_attention_heads": 12,
25
+ "num_channels": 3,
26
+ "num_hidden_layers": 12,
27
+ "patch_size": 16,
28
+ "problem_type": "single_label_classification",
29
+ "qkv_bias": true,
30
+ "torch_dtype": "float32",
31
+ "transformers_version": "4.45.2"
32
+ }
eval_baseline.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "acc": 0.9633230225364561,
3
+ "mcc": 0.7494988404245919,
4
+ "f1": 0.9802615933412604,
5
+ "reward_proxy": 0.8564109314805239
6
+ }
eval_final.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "acc": 0.9805567830313743,
3
+ "mcc": 0.8888310837478142,
4
+ "f1": 0.9892630551488532,
5
+ "reward_proxy": 0.9346939333895943
6
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04fa4d4b5e09746ada5412c7641f0bfa8aa619c0a829756905ce10a40f3355c7
3
+ size 343223968
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": null,
3
+ "default_to_square": true,
4
+ "do_center_crop": null,
5
+ "do_convert_rgb": null,
6
+ "do_normalize": true,
7
+ "do_rescale": true,
8
+ "do_resize": true,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_processor_type": "ViTImageProcessorFast",
15
+ "image_std": [
16
+ 0.5,
17
+ 0.5,
18
+ 0.5
19
+ ],
20
+ "resample": 2,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "height": 224,
24
+ "width": 224
25
+ }
26
+ }