Skip to content

Commit

Permalink
Update readme and document
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenglongMa committed Aug 29, 2023
1 parent 1b11eff commit 675c451
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,11 @@ optional arguments:
--new_width WIDTH CONFIG: resize the images with the specified width. Negative value will be ignored, defaults to 250.
--scale SCALE CONFIG: how much the image size is reduced at each image scale, defaults to 1.1
--min_nbrs NEIGHBORS CONFIG: how many neighbors each candidate rectangle should have to retain it.
Higher value results in less detections but with higher quality, defaults to 5
Higher value results in less detections but with higher quality, defaults to 5.
--min_size WIDTH [HEIGHT ...]
CONFIG: minimum possible face size. Faces smaller than that are ignored, defaults to "90 90".
--threshold THRESHOLD
CONFIG: what proportion of the skin area is required to identify the face, defaults to 0.3.
```

### Use Cases
Expand Down
4 changes: 2 additions & 2 deletions src/stone/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ def build_arguments():
parser.add_argument('--scale', type=float, help='CONFIG: how much the image size is reduced at each image scale, defaults to 1.1', default=1.1)
parser.add_argument('--min_nbrs', type=int, metavar='NEIGHBORS',
help='CONFIG: how many neighbors each candidate rectangle should have to retain it.\n'
'Higher value results in less detections but with higher quality, defaults to 5', default=5)
'Higher value results in less detections but with higher quality, defaults to 5.', default=5)
parser.add_argument('--min_size', type=int, nargs='+', metavar=('WIDTH', 'HEIGHT'),
help='CONFIG: minimum possible face size. Faces smaller than that are ignored, defaults to "90 90".', default=(90, 90))
parser.add_argument('--threshold', type=float, metavar='THRESHOLD', help='CONFIG: what proportion of the skin area is required to identify the '
'face, defaults to 0.3', default=0.3)
'face, defaults to 0.3.', default=0.3)

return parser.parse_args()

0 comments on commit 675c451

Please sign in to comment.