Update README.md
Browse files
README.md
CHANGED
|
@@ -9,7 +9,8 @@ tags:
|
|
| 9 |
|
| 10 |
|
| 11 |
An embedding model to classify images into FLUX generated images and non-flux photographs.
|
| 12 |
-
The embeddings are 128 dimensional and can be used in another classifier to classify.
|
|
|
|
| 13 |
|
| 14 |
The model can load Fourier transformed images of size 512x512 which are then fed into the model and a 128 length output vector is produced.
|
| 15 |
The steps to create the embeddings can be described as:
|
|
@@ -18,10 +19,10 @@ The steps to create the embeddings can be described as:
|
|
| 18 |
3. Input the images into the model using predict.
|
| 19 |
4. The output will be a 128-length vector for use in classification models.
|
| 20 |
|
| 21 |
-
The preprocessing code along with
|
| 22 |
|
| 23 |
```python
|
| 24 |
-
# load an image and apply the
|
| 25 |
|
| 26 |
import numpy as np
|
| 27 |
from PIL import Image
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
An embedding model to classify images into FLUX generated images and non-flux photographs.
|
| 12 |
+
The embeddings are 128 dimensional and can be used in another classifier to classify. Current classifiers can classify up to 83% accuracy.
|
| 13 |
+
XGBoost has an F1 = 0.83 and KNN F1 = 0.87
|
| 14 |
|
| 15 |
The model can load Fourier transformed images of size 512x512 which are then fed into the model and a 128 length output vector is produced.
|
| 16 |
The steps to create the embeddings can be described as:
|
|
|
|
| 19 |
3. Input the images into the model using predict.
|
| 20 |
4. The output will be a 128-length vector for use in classification models.
|
| 21 |
|
| 22 |
+
The preprocessing code along with predict can calculate the embeddings for classification.
|
| 23 |
|
| 24 |
```python
|
| 25 |
+
# load an image and apply the Fourier transform
|
| 26 |
|
| 27 |
import numpy as np
|
| 28 |
from PIL import Image
|