ivanm151 commited on
Commit
02ffbc0
·
1 Parent(s): 7c66dd3

new datasets fix

Browse files
Files changed (3) hide show
  1. models.py +1 -1
  2. weights/class.pth +0 -3
  3. weights/class2.pth +0 -3
models.py CHANGED
@@ -37,7 +37,7 @@ def load_model3(weights_path='weights/class_2.pth'):
37
  model3 = models.mobilenet_v2(pretrained=False)
38
  for param in model3.features.parameters():
39
  param.requires_grad = False
40
- model3.classifier[1] = nn.Linear(model3.classifier[1].in_features, 6)
41
  state_dict = torch.load(weights_path, map_location=DEVICE)
42
  model3.load_state_dict(state_dict)
43
  model3.eval()
 
37
  model3 = models.mobilenet_v2(pretrained=False)
38
  for param in model3.features.parameters():
39
  param.requires_grad = False
40
+ model3.classifier[1] = nn.Linear(model3.classifier[1].in_features, 2)
41
  state_dict = torch.load(weights_path, map_location=DEVICE)
42
  model3.load_state_dict(state_dict)
43
  model3.eval()
weights/class.pth DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0720a4afc5d0649b9af6e1532947af363f7230276172f6345aae6b951be071e5
3
- size 9205515
 
 
 
 
weights/class2.pth DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:bf1835ce202339850361b67f914d7768400f981aa2f0c1a6a29e7f268a749f18
3
- size 9174411