chongzhou commited on
Commit
de2df78
1 Parent(s): 0972884

add instructional videos

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.mov filter=lfs diff=lfs merge=lfs -text
37
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -49,24 +49,24 @@ predictor = SamPredictor(sam)
49
  # Description
50
  title = "<center><strong><font size='8'>EdgeSAM<font></strong></center>"
51
 
52
- description_p = """ # Instructions for point mode
53
 
54
  1. Upload an image or click one of the provided examples.
55
  2. Select the point type.
56
  3. Click once or multiple times on the image to indicate the object of interest.
57
  4. Click Start to get the segmentation mask.
58
- 5. The clear button clears all the points.
59
- 6. The reset button resets both points and the image.
60
 
61
  """
62
 
63
- description_b = """ # Instructions for box mode
64
 
65
  1. Upload an image or click one of the provided examples.
66
  2. Click twice on the image (diagonal points of the box).
67
  3. Click Start to get the segmentation mask.
68
- 4. The clear button clears the box.
69
- 5. The reset button resets both the box and the image.
70
 
71
  """
72
 
 
49
  # Description
50
  title = "<center><strong><font size='8'>EdgeSAM<font></strong></center>"
51
 
52
+ description_p = """ # Instructions for point mode [Instructional video](https://huggingface.co/spaces/chongzhou/EdgeSAM/blob/main/assets/point-instructions.mov)
53
 
54
  1. Upload an image or click one of the provided examples.
55
  2. Select the point type.
56
  3. Click once or multiple times on the image to indicate the object of interest.
57
  4. Click Start to get the segmentation mask.
58
+ 5. The Clear button clears all the points.
59
+ 6. The Reset button resets both points and the image.
60
 
61
  """
62
 
63
+ description_b = """ # Instructions for box mode [Instructional video](https://huggingface.co/spaces/chongzhou/EdgeSAM/blob/main/assets/box-instructions.mov)
64
 
65
  1. Upload an image or click one of the provided examples.
66
  2. Click twice on the image (diagonal points of the box).
67
  3. Click Start to get the segmentation mask.
68
+ 4. The Clear button clears the box.
69
+ 5. The Reset button resets both the box and the image.
70
 
71
  """
72
 
assets/box-instructions.mov ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6d85a91a61f63f5636f42832fb8751b36cdce92cefefdcef05816f1c931c00a
3
+ size 8007816
assets/point-instructions.mov ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fbe4b4f30563fa059e600bb0dff599c2666821e7a5e5f799a0ad2d82f6895ebd
3
+ size 20135690