FrancoMango
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -8,6 +8,6 @@ lon_mean = -75.19136178838008
|
|
8 |
lon_std = 0.0006865423903444358
|
9 |
|
10 |
<h1>Running Inference</h1>
|
11 |
-
model_path = hf_hub_download(repo_id="Latitude-Attitude/vit-gps-coordinates-predictor-with-filter", filename="vit-gps-coordinates-predictor-with-filter-
|
12 |
|
13 |
with torch.no_grad(): for images in dataloader: images = images.to(device) outputs = model(images) preds = outputs.cpu() * torch.tensor([lat_std, lon_std]) + torch.tensor([lat_mean, lon_mean])
|
|
|
8 |
lon_std = 0.0006865423903444358
|
9 |
|
10 |
<h1>Running Inference</h1>
|
11 |
+
model_path = hf_hub_download(repo_id="Latitude-Attitude/vit-gps-coordinates-predictor-with-filter", filename="vit-gps-coordinates-predictor-with-filter-3.pth") model = torch.load(model_path) model.eval()
|
12 |
|
13 |
with torch.no_grad(): for images in dataloader: images = images.to(device) outputs = model(images) preds = outputs.cpu() * torch.tensor([lat_std, lon_std]) + torch.tensor([lat_mean, lon_mean])
|