Image Classification
timm
ONNX
Safetensors
mobile-screenshots
phone-screenshots
screenshot-analysis
content-safety
Instructions to use yapwithai/phone-screen-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use yapwithai/phone-screen-classifier with timm:
import timm model = timm.create_model("hf_hub:yapwithai/phone-screen-classifier", pretrained=True) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -22,7 +22,7 @@ Yap Phone Screenshot Classifier predicts two labels for one image:
|
|
| 22 |
|
| 23 |
The model returns exactly two outputs: `screen` and `safety`.
|
| 24 |
|
| 25 |
-
The model is fine-tuned from `timm/mobilenetv4_conv_medium.e250_r384_in12k`
|
| 26 |
|
| 27 |
## What It Is For
|
| 28 |
|
|
@@ -180,14 +180,6 @@ Or run it directly:
|
|
| 180 |
bun inference/typescript.ts example.png another.png --model-format fp16
|
| 181 |
```
|
| 182 |
|
| 183 |
-
## Training Data
|
| 184 |
-
|
| 185 |
-
The model is trained from local shards of [`yapwithai/phone-screenshots`](https://huggingface.co/datasets/yapwithai/phone-screenshots). Screen labels come from the dataset `label` field. Safety labels come from the dataset `safety` field. `fine_label` is not used.
|
| 186 |
-
|
| 187 |
-
Training uses one minimum train-count floor for both heads. The default is `--min-train-count 300`. Labels with fewer than `--min-train-count` train samples are not trained directly. Screen labels below the floor are folded into `generic`; safety labels below the floor are omitted from the safety head. The exported `config.json` and `inference/labels.json` files are the source of truth for the active screen and safety labels.
|
| 188 |
-
|
| 189 |
-
Training uses adaptive label sampling. `--screen-target-ratio` and `--safety-target-ratio` set the desired effective per-epoch class ratio; `--screen-max-repeat` and `--safety-max-repeat` cap how often smaller classes can repeat in one epoch.
|
| 190 |
-
|
| 191 |
## Citation
|
| 192 |
|
| 193 |
If you use this model, please cite:
|
|
|
|
| 22 |
|
| 23 |
The model returns exactly two outputs: `screen` and `safety`.
|
| 24 |
|
| 25 |
+
The model is fine-tuned from `timm/mobilenetv4_conv_medium.e250_r384_in12k`.
|
| 26 |
|
| 27 |
## What It Is For
|
| 28 |
|
|
|
|
| 180 |
bun inference/typescript.ts example.png another.png --model-format fp16
|
| 181 |
```
|
| 182 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
## Citation
|
| 184 |
|
| 185 |
If you use this model, please cite:
|