robocan commited on
Commit
1de1740
·
verified ·
1 Parent(s): 4e3af53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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/GeoG-GCP",
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=512),
39
  torch.nn.ReLU(),
40
- torch.nn.Linear(in_features=512, out_features=len_classes),
 
 
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):