Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
FLUX Detection model with sklearn API using wavelets and UMAP embeddings and then K-Nearest neighbors for classification.
|
| 7 |
+
The process is as follows: DWT -> UMAP -> KNN. Accuracy varies depending on the dataset but can be anywhere from 80%-90% depending on the dataset you use.
|
| 8 |
+
|
| 9 |
+
Methods include fit, predict, and predict_proba. First, load an image using PIL (Pillow) and then store using an array. Load the class using joblib and then predict.
|
| 10 |
+
The model is already pretrained but can be trained again using fit.
|
| 11 |
+
|
| 12 |
+
```python
|
| 13 |
+
model = joblib.load("flux_classifier.pkl")
|
| 14 |
+
images = [Image.open("image.jpeg")]
|
| 15 |
+
predictions = model.predict(images)
|
| 16 |
+
```
|