Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ import folium
|
|
18 |
token = os.environ.get("token")
|
19 |
|
20 |
local_dir = snapshot_download(
|
21 |
-
repo_id="robocan/
|
22 |
repo_type="model",
|
23 |
local_dir="SVD",
|
24 |
token=token
|
@@ -35,9 +35,11 @@ class ModelPre(torch.nn.Module):
|
|
35 |
self.embedding = torch.nn.Sequential(
|
36 |
*list(models.convnext_small(weights=models.ConvNeXt_Small_Weights.IMAGENET1K_V1).children())[:-1],
|
37 |
torch.nn.Flatten(),
|
38 |
-
torch.nn.Linear(in_features=768, out_features=
|
39 |
torch.nn.ReLU(),
|
40 |
-
torch.nn.Linear(in_features=
|
|
|
|
|
41 |
)
|
42 |
|
43 |
def forward(self, data):
|
|
|
18 |
token = os.environ.get("token")
|
19 |
|
20 |
local_dir = snapshot_download(
|
21 |
+
repo_id="robocan/GeoG_23k",
|
22 |
repo_type="model",
|
23 |
local_dir="SVD",
|
24 |
token=token
|
|
|
35 |
self.embedding = torch.nn.Sequential(
|
36 |
*list(models.convnext_small(weights=models.ConvNeXt_Small_Weights.IMAGENET1K_V1).children())[:-1],
|
37 |
torch.nn.Flatten(),
|
38 |
+
torch.nn.Linear(in_features=768, out_features=1024),
|
39 |
torch.nn.ReLU(),
|
40 |
+
torch.nn.Linear(in_features=1024, out_features=1024),
|
41 |
+
torch.nn.ReLU(),
|
42 |
+
torch.nn.Linear(in_features=1024, out_features=len_classes),
|
43 |
)
|
44 |
|
45 |
def forward(self, data):
|