MarkusEssl commited on
Commit
e1f1638
·
1 Parent(s): 6de9757
nbs/01_displayTraining.ipynb CHANGED
The diff for this file is too large to render. See raw diff
 
pages/3_Signify.py CHANGED
@@ -70,8 +70,8 @@ st.session_state.predict = st.button('Detect Signature')
70
  if st.session_state.predict:
71
  device = torch.device('cpu')
72
  backbone = models.efficientnet_v2_s(pretrained=True)
73
- model = SiameseNetwork(backbone)
74
  weights = torch.load("pages/siamese.pth", map_location=torch.device('cpu'))["model_state_dict"]
 
75
  model.load_state_dict(weights)
76
  img1, img2 = transform_valid(img1).unsqueeze(0), transform_valid(img2).unsqueeze(0)
77
  prediction = model(img1,img2)
 
70
  if st.session_state.predict:
71
  device = torch.device('cpu')
72
  backbone = models.efficientnet_v2_s(pretrained=True)
 
73
  weights = torch.load("pages/siamese.pth", map_location=torch.device('cpu'))["model_state_dict"]
74
+ model = SiameseNetwork(backbone)
75
  model.load_state_dict(weights)
76
  img1, img2 = transform_valid(img1).unsqueeze(0), transform_valid(img2).unsqueeze(0)
77
  prediction = model(img1,img2)
signify/yolo/detect.py CHANGED
@@ -22,7 +22,7 @@ from .utils.torch_utils import (load_classifier, select_device,
22
 
23
  def detect(image_path):
24
  opt = {
25
- 'weights': '../best.pt',
26
  'source': image_path,
27
  'img_size': 640,
28
  'conf_thres': 0.25,
 
22
 
23
  def detect(image_path):
24
  opt = {
25
+ 'weights': 'best.pt',
26
  'source': image_path,
27
  'img_size': 640,
28
  'conf_thres': 0.25,
signify/yolo/models/best.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8940b5b18fbda2e984f972f621c9e52c906a4b499533b13ee51f86f53c0d9838
3
+ size 175088335