Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
---
|
4 |
+
# original model repo :
|
5 |
+
📖 this is a cutomized version of the following model [aaronespasa/deepfake-detection-resnetinceptionv1](https://huggingface.co/aaronespasa/deepfake-detection-resnetinceptionv1)
|
6 |
+
# how to use
|
7 |
+
```python
|
8 |
+
from transformers import pipeline
|
9 |
+
pipe = pipeline(model="not-lain/deepfake",trust_remote_code=True)
|
10 |
+
pipe.predict("img_path.jpg")
|
11 |
+
```
|
12 |
+
```python
|
13 |
+
>> {"confidences":confidences,"face_with_mask": face_with_mask}
|
14 |
+
```
|