Update README.md
Browse files
README.md
CHANGED
|
@@ -4,9 +4,6 @@ tags:
|
|
| 4 |
- keras
|
| 5 |
pipeline_tag: image-to-text
|
| 6 |
---
|
| 7 |
-
---
|
| 8 |
-
license: mit
|
| 9 |
-
---
|
| 10 |
```
|
| 11 |
API_URL = "https://api-inference.huggingface.co/models/CIS-5190-CIA/Ensamble"
|
| 12 |
|
|
@@ -17,17 +14,21 @@ client = InferenceClient(
|
|
| 17 |
token="TOKEN HERE",
|
| 18 |
)
|
| 19 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
lat_mean = 39.95173281562989
|
| 22 |
lat_std = 0.0006925131397316982
|
| 23 |
lon_mean = -75.19143805846498
|
| 24 |
lon_std = 0.0006552266653111098
|
| 25 |
```
|
| 26 |
-
# Run Instructions:
|
| 27 |
-
|
| 28 |
-
## Unpack the Ensamble models
|
| 29 |
-
Use the following file to unpickle our model: Run_Ensemble.ipynb \
|
| 30 |
-
It loads the model from Huggingface and the only thing that they need to update is the directory location of the testing dataset
|
| 31 |
|
| 32 |
## Helper Functions to Predict from & Evaluate Ensamble
|
| 33 |
These functions will allow you to use the ensamble to predict and evaluate the model
|
|
|
|
| 4 |
- keras
|
| 5 |
pipeline_tag: image-to-text
|
| 6 |
---
|
|
|
|
|
|
|
|
|
|
| 7 |
```
|
| 8 |
API_URL = "https://api-inference.huggingface.co/models/CIS-5190-CIA/Ensamble"
|
| 9 |
|
|
|
|
| 14 |
token="TOKEN HERE",
|
| 15 |
)
|
| 16 |
```
|
| 17 |
+
|
| 18 |
+
## How to Run
|
| 19 |
+
In the notebook Run_ensamble.ipynb, replace the line:
|
| 20 |
+
```python
|
| 21 |
+
dataset_test = load_dataset("gydou/released_img")
|
| 22 |
```
|
| 23 |
+
with the proper location of the testing dataset.
|
| 24 |
+
|
| 25 |
+
## Training Dataset Statistics
|
| 26 |
+
```python
|
| 27 |
lat_mean = 39.95173281562989
|
| 28 |
lat_std = 0.0006925131397316982
|
| 29 |
lon_mean = -75.19143805846498
|
| 30 |
lon_std = 0.0006552266653111098
|
| 31 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
## Helper Functions to Predict from & Evaluate Ensamble
|
| 34 |
These functions will allow you to use the ensamble to predict and evaluate the model
|