Update README.md
Browse files
README.md
CHANGED
@@ -5,17 +5,17 @@ metrics:
|
|
5 |
- accuracy
|
6 |
base_model:
|
7 |
- microsoft/resnet-50
|
8 |
-
pipeline_tag: image-classification
|
9 |
---
|
10 |
|
11 |
-
# Multi-Task Image Classifier
|
12 |
|
13 |
## Model Overview
|
14 |
This model is a **Multi-Task Image Classifier** that performs two tasks simultaneously:
|
15 |
-
1. **Object Recognition:** Identifies the primary
|
16 |
2. **Authenticity Classification:** Determines whether the image is AI-generated or a real photograph.
|
17 |
|
18 |
-
The model uses a **ResNet-50** backbone with two heads: one for multi-class object recognition
|
19 |
|
20 |
## Intended Use
|
21 |
This model is designed for:
|
@@ -32,12 +32,13 @@ from model import MultiTaskModel # Your model definition
|
|
32 |
# Instantiate your model architecture (must match training)
|
33 |
model = MultiTaskModel(...)
|
34 |
|
|
|
35 |
# Load the saved state dictionary (trained weights)
|
36 |
-
model.load_state_dict(torch.load("
|
37 |
model.eval()
|
38 |
```
|
39 |
Alternatively, you can test the model directly via our interactive demo:
|
40 |
-
[Test the Model Here](https://huggingface.co/spaces/Abdu07/
|
41 |
|
42 |
## Training Data and Evaluation
|
43 |
- **Dataset:** The model was trained on a subset of the [Hemg/AI-Generated-vs-Real-Images-Datasets](https://huggingface.co/datasets/Hemg/AI-Generated-vs-Real-Images-Datasets) comprising approximately 152k images.
|
|
|
5 |
- accuracy
|
6 |
base_model:
|
7 |
- microsoft/resnet-50
|
8 |
+
pipeline_tag: image-classification, object-detection
|
9 |
---
|
10 |
|
11 |
+
# DualSight: A Multi-Task Image Classifier for Object Recognition and Authenticity Verification
|
12 |
|
13 |
## Model Overview
|
14 |
This model is a **Multi-Task Image Classifier** that performs two tasks simultaneously:
|
15 |
+
1. **Object Recognition:** Identifies the primary objects in an image (e.g., "cat," "dog," "car," etc.) using pseudo-labels generated through a YOLO-based object detection approach.
|
16 |
2. **Authenticity Classification:** Determines whether the image is AI-generated or a real photograph.
|
17 |
|
18 |
+
The model uses a **ResNet-50** backbone with two heads: one for multi-class object recognition and another for binary classification (AI-generated vs. Real). It was trained on a subset of the [Hemg/AI-Generated-vs-Real-Images-Datasets](https://huggingface.co/datasets/Hemg/AI-Generated-vs-Real-Images-Datasets) and leverages YOLO for improved pseudo-labeling across the entire dataset.
|
19 |
|
20 |
## Intended Use
|
21 |
This model is designed for:
|
|
|
32 |
# Instantiate your model architecture (must match training)
|
33 |
model = MultiTaskModel(...)
|
34 |
|
35 |
+
|
36 |
# Load the saved state dictionary (trained weights)
|
37 |
+
model.load_state_dict(torch.load("Yolloplusclassproject_weights.pth", map_location="cpu"))
|
38 |
model.eval()
|
39 |
```
|
40 |
Alternatively, you can test the model directly via our interactive demo:
|
41 |
+
[Test the Model Here(CLICK)](https://huggingface.co/spaces/Abdu07/DualSight-Demo)
|
42 |
|
43 |
## Training Data and Evaluation
|
44 |
- **Dataset:** The model was trained on a subset of the [Hemg/AI-Generated-vs-Real-Images-Datasets](https://huggingface.co/datasets/Hemg/AI-Generated-vs-Real-Images-Datasets) comprising approximately 152k images.
|