Update README.md
Browse files
README.md
CHANGED
|
@@ -98,6 +98,42 @@ While AIRealNet performs exceptionally well on typical AI-generated images, user
|
|
| 98 |
|
| 99 |
---
|
| 100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
## Intended Use
|
| 102 |
|
| 103 |
* Detect AI-generated imagery on social media, research publications, and digital media platforms.
|
|
|
|
| 98 |
|
| 99 |
---
|
| 100 |
|
| 101 |
+
## Demo and Usage
|
| 102 |
+
|
| 103 |
+
1. **Installing dependecies**
|
| 104 |
+
|
| 105 |
+
```python
|
| 106 |
+
pip install -U transformers
|
| 107 |
+
```
|
| 108 |
+
2. **Loading and running a demo**
|
| 109 |
+
|
| 110 |
+
```python
|
| 111 |
+
from transformers import pipeline
|
| 112 |
+
|
| 113 |
+
pipe = pipeline("image-classification", model="XenArcAI/AIRealNet")
|
| 114 |
+
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# example image
|
| 115 |
+
```
|
| 116 |
+
# Demo
|
| 117 |
+
|
| 118 |
+
* **Given Image**(Checkout Maths best filtered dataset focused on reasoning on XenArcAI)
|
| 119 |
+
|
| 120 |
+
<p align="center">
|
| 121 |
+
<img
|
| 122 |
+
src="https://cdn-uploads.huggingface.co/production/uploads/677fcdf29b9a9863eba3f29f/eVkKUTdiInUl6pbIUghQC.png"
|
| 123 |
+
alt="AIRealNet Banner"
|
| 124 |
+
width="90%"
|
| 125 |
+
style="border-radius:15px;"
|
| 126 |
+
/>
|
| 127 |
+
</p>
|
| 128 |
+
|
| 129 |
+
* **Model Output**
|
| 130 |
+
|
| 131 |
+
```bash
|
| 132 |
+
[{'label': 'artificial', 'score': 0.9865425825119019},
|
| 133 |
+
{'label': 'real', 'score': 0.013457471504807472}]
|
| 134 |
+
```
|
| 135 |
+
**Note** its correct as the image was generated by a diffusion model
|
| 136 |
+
|
| 137 |
## Intended Use
|
| 138 |
|
| 139 |
* Detect AI-generated imagery on social media, research publications, and digital media platforms.
|