vineetpasumarti
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -1,16 +1,19 @@
|
|
1 |
-
|
2 |
|
3 |
-
|
4 |
-
from huggingface_hub import hf_hub_download
|
5 |
-
import torch
|
6 |
-
|
7 |
-
# Specify the repository and the filename of the model you want to load
|
8 |
-
repo_id = "{organization_name}/{repo_name}" # Replace with your repo name
|
9 |
-
filename = "{path_name}"
|
10 |
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
16 |
```
|
|
|
1 |
+
Hello! You can perform inference with our Resnet model using the Resnet_inference.ipynb notebook located in this repo.
|
2 |
|
3 |
+
Please open the notebook and navigate to the INPUTS tab, then follow the steps below in order to perform inference on your images.
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
+
## 1. Replace the latitude and longitude mean and std with your own.
|
6 |
+
The latitude and longitude mean and std values are preloaded from our training data.
|
7 |
+
```python
|
8 |
+
# Latitude and longitude mean and std loaded from training data
|
9 |
+
lat_mean = 39.95173675925926
|
10 |
+
lat_std = 0.0006117096745964738
|
11 |
+
lon_mean = -75.19119498148149
|
12 |
+
lon_std = 0.0007743986248108865
|
13 |
+
```
|
14 |
|
15 |
+
## 2. Load your images for inference
|
16 |
+
Your images will be stored as 'dataset_test' in the code.
|
17 |
+
```python
|
18 |
+
dataset_test = load_dataset("{YOUR ORGANIZATION NAME}/{DATASET NAME}", split="test")
|
19 |
```
|