Update model-card.md
Browse files- model-card.md +36 -94
model-card.md
CHANGED
@@ -1,113 +1,55 @@
|
|
1 |
---
|
2 |
-
language:
|
3 |
-
- ar
|
4 |
-
- en
|
5 |
-
library_name: custom
|
6 |
-
tags:
|
7 |
-
- computer-vision
|
8 |
-
- image-classification
|
9 |
-
- ai-detection
|
10 |
-
- ai-generated-content
|
11 |
-
- deepfake-detection
|
12 |
-
datasets:
|
13 |
-
- custom
|
14 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
---
|
16 |
|
17 |
-
#
|
18 |
-
|
19 |
-
هذا النموذج يكتشف ما إذا كانت الصورة حقيقية أم منشأة بواسطة الذكاء الاصطناعي باستخدام تقنيات متعددة لرؤية الحاسوب.
|
20 |
-
|
21 |
-
This model detects whether an image is real or AI-generated using multiple computer vision techniques.
|
22 |
-
|
23 |
-
## Model Description (وصف النموذج)
|
24 |
-
|
25 |
-
يستخدم كاشف الصور المنشأة بالذكاء الاصطناعي المحسن مجموعة من تقنيات رؤية الكمبيوتر لتحليل جوانب مختلفة من الصور وتحديد ما إذا كانت صورًا فوتوغرافية أصلية أو تم إنشاؤها بواسطة أدوات الذكاء الاصطناعي مثل DALL-E أو Midjourney أو Stable Diffusion.
|
26 |
-
|
27 |
-
The Enhanced AI Image Detector uses a combination of computer vision techniques to analyze various aspects of images and determine whether they are authentic photographs or generated by AI tools like DALL-E, Midjourney, or Stable Diffusion.
|
28 |
-
|
29 |
-
### Key Features (الميزات الرئيسية)
|
30 |
-
|
31 |
-
- **تحليل متعدد الجوانب**: يفحص أنماط الضوضاء والملمس واتساق الألوان والحواف وميزات الوجه
|
32 |
-
- **لا يتطلب التعلم العميق**: يستخدم تقنيات رؤية الكمبيوتر التقليدية دون الحاجة إلى موارد وحدة معالجة الرسومات
|
33 |
-
- **نتائج مفصلة**: يوفر تحليلًا شاملاً مع درجات لكل طريقة كشف
|
34 |
-
- **كشف يدرك الوجوه**: تحليل خاص للصور التي تحتوي على وجوه، والتي غالبًا ما تكون حالات صعبة
|
35 |
-
|
36 |
-
- **Multi-faceted Analysis**: Examines noise patterns, texture, color coherence, edges, and facial features
|
37 |
-
- **No Deep Learning Required**: Uses traditional computer vision techniques without requiring GPU resources
|
38 |
-
- **Detailed Results**: Provides comprehensive analysis with scores for each detection method
|
39 |
-
- **Face-aware Detection**: Special analysis for images containing faces, which are often challenging cases
|
40 |
-
|
41 |
-
## How It Works (كيف يعمل)
|
42 |
-
|
43 |
-
يحلل النموذج العديد من خصائص الصورة التي تختلف عادة بين الصور الحقيقية والصور المنشأة بالذكاء الاصطناعي:
|
44 |
-
|
45 |
-
The model analyzes several image characteristics that typically differ between real and AI-generated images:
|
46 |
-
|
47 |
-
1. **تحليل أنماط الضوضاء**:
|
48 |
-
- تحليل مستوى الخطأ (ELA)
|
49 |
-
- كشف الضوضاء باستخدام مرشح لابلاس
|
50 |
-
- تحليل المجال الترددي
|
51 |
-
|
52 |
-
2. **تحليل الملمس**:
|
53 |
-
- ميزات مصفوفة التواجد المشترك للمستويات الرمادية (GLCM)
|
54 |
-
- تجانس الملمس والتباين
|
55 |
|
56 |
-
|
57 |
-
- توزيع الألوان والانتروبيا
|
58 |
-
- الارتباطات بين القنوات
|
59 |
|
60 |
-
|
61 |
-
- اتساق الحواف وأنماطها
|
62 |
-
- توزيع اتجاه التدرج
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
|
|
68 |
|
69 |
-
##
|
70 |
|
71 |
-
|
72 |
-
from ai_detector import EnhancedAIDetector
|
73 |
|
74 |
-
|
75 |
-
|
|
|
|
|
76 |
|
77 |
-
|
78 |
-
result = detector.analyze_image("path/to/image.jpg")
|
79 |
|
80 |
-
|
81 |
-
if result["is_ai_generated"]:
|
82 |
-
print("هذه الصورة على الأرجح منشأة بالذكاء الاصطناعي")
|
83 |
-
print(f"درجة الثقة: {result['overall_score']:.2f}")
|
84 |
-
else:
|
85 |
-
print("هذه الصورة على الأرجح حقيقية")
|
86 |
-
print(f"درجة الثقة: {1 - result['overall_score']:.2f}")
|
87 |
|
88 |
-
|
89 |
-
print(f"نتيجة تحليل الضوضاء: {result['noise_analysis']['score']:.2f}")
|
90 |
-
print(f"نتيجة تحليل الملمس: {result['texture_analysis']['score']:.2f}")
|
91 |
-
print(f"نتيجة تحليل الألوان: {result['color_analysis']['score']:.2f}")
|
92 |
-
print(f"نتيجة تحليل الحواف: {result['edge_analysis']['score']:.2f}")
|
93 |
-
if "face_analysis" in result:
|
94 |
-
print(f"نتيجة تحليل الوجه: {result['face_analysis']['score']:.2f}")
|
95 |
-
```
|
96 |
|
97 |
-
|
|
|
|
|
|
|
98 |
|
99 |
-
|
100 |
-
- قد يتم تصنيف بعض الصور الحقيقية ذات الخصائص غير العادية بشكل خاطئ
|
101 |
-
- يعتمد الأداء على جودة الصورة ودقتها
|
102 |
-
- يتطلب تحليل الوجه وجود وجوه مرئية بتفاصيل كافية
|
103 |
|
104 |
-
|
105 |
-
- Some real images with unusual characteristics may be misclassified
|
106 |
-
- Performance depends on image quality and resolution
|
107 |
-
- Face analysis requires visible faces with sufficient detail
|
108 |
|
109 |
-
|
|
|
|
|
110 |
|
111 |
-
|
112 |
|
113 |
-
|
|
|
1 |
---
|
2 |
+
language: en
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
license: mit
|
4 |
+
datasets:
|
5 |
+
- custom
|
6 |
+
tags:
|
7 |
+
- image-classification
|
8 |
+
- computer-vision
|
9 |
+
- ai-detection
|
10 |
+
- deep-learning
|
11 |
---
|
12 |
|
13 |
+
# AI Image Detector
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
+
This model can detect whether an image is authentic (real) or AI-generated. It has been trained on a dataset of real photographs and AI-generated images.
|
|
|
|
|
16 |
|
17 |
+
## Model Details
|
|
|
|
|
18 |
|
19 |
+
- **Model Type:** EfficientNetV2-S
|
20 |
+
- **Task:** Binary Classification (Real vs. AI-Generated)
|
21 |
+
- **Training Data:** Custom dataset of real and AI-generated images
|
22 |
+
- **Input:** Images (224x224 pixels)
|
23 |
+
- **Output:** Probability scores for real and AI-generated classes
|
24 |
|
25 |
+
## Intended Use
|
26 |
|
27 |
+
This model is designed to help detect AI-generated content in images, which can be useful for:
|
|
|
28 |
|
29 |
+
- Identifying manipulated or synthetic media
|
30 |
+
- Content moderation
|
31 |
+
- Research on AI image generation detection
|
32 |
+
- Educational purposes about AI-generated content
|
33 |
|
34 |
+
## Performance
|
|
|
35 |
|
36 |
+
The model achieves high accuracy in distinguishing between real photographs and AI-generated images. It performs best on images that haven't been heavily compressed or modified after creation.
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
+
## Limitations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
+
- The model may struggle with highly unusual lighting conditions or abstract compositions
|
41 |
+
- Very high-quality AI-generated images might occasionally be misclassified as real
|
42 |
+
- The model may not generalize well to AI generators it was not trained on
|
43 |
+
- Low-quality, heavily compressed, or resized images may lead to less accurate results
|
44 |
|
45 |
+
## Ethical Considerations
|
|
|
|
|
|
|
46 |
|
47 |
+
This model should be used responsibly and ethically. It should not be used to:
|
|
|
|
|
|
|
48 |
|
49 |
+
- Make harmful accusations without human review
|
50 |
+
- Discriminate against content creators
|
51 |
+
- Bypass appropriate content moderation processes
|
52 |
|
53 |
+
## Citation and Contact
|
54 |
|
55 |
+
If you use this model in your research or application, please provide appropriate attribution.
|