readme yaml
Browse files
README.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Comic Sans Detector
|
| 2 |
|
| 3 |
This repository contains a fine-tuned ResNet-18 model, specifically trained to detect whether an image contains Comic Sans font. It is a fine-tuning of a previously fine-tuned font classification model, based on the ResNet-18 foundation model.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
tags:
|
| 5 |
+
- image-classification
|
| 6 |
+
- font-detection
|
| 7 |
+
- resnet
|
| 8 |
+
- fine-tuning
|
| 9 |
+
datasets:
|
| 10 |
+
- custom
|
| 11 |
+
license: mit
|
| 12 |
+
library_name: transformers
|
| 13 |
+
base_model: resnet-18
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Comic Sans Detector
|
| 17 |
+
|
| 18 |
+
This repository contains a fine-tuned ResNet-18 model, specifically trained to detect whether an image contains Comic Sans font. It is a fine-tuning of a previously fine-tuned font classification model, based on the ResNet-18 foundation model.
|
| 19 |
+
|
| 20 |
+
## Features
|
| 21 |
+
- Distinguishes between Comic Sans and non-Comic Sans images.
|
| 22 |
+
- Built using a custom dataset with two classes: `comic` and `not-comic`.
|
| 23 |
+
|
| 24 |
+
## Usage
|
| 25 |
+
To use this model with the Hugging Face Inference API:
|
| 26 |
+
|
| 27 |
+
```python
|
| 28 |
+
from transformers import pipeline
|
| 29 |
+
|
| 30 |
+
classifier = pipeline("image-classification", model="shoni/comic-sans-detector")
|
| 31 |
+
result = classifier("path/to/image.jpg")
|
| 32 |
+
print(result)
|
| 33 |
+
|
| 34 |
+
|
| 35 |
# Comic Sans Detector
|
| 36 |
|
| 37 |
This repository contains a fine-tuned ResNet-18 model, specifically trained to detect whether an image contains Comic Sans font. It is a fine-tuning of a previously fine-tuned font classification model, based on the ResNet-18 foundation model.
|