-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactoring #98
Comments
コマンドライン引数にループを回す回数を指定できるようにする方が良いですかね。 |
デフォルトでは処理時間非表示、--benchmarkを指定すると5回処理して処理時間表示、というイメージです。 |
回数は指定できた方がよろしいでしょうか?必要なければ
で進めます. 現状同様動画モードの際にはbenchmarkは無効とします. (READMEかargsのhelpに明示するようにします) |
回数は固定で良いと思います。 |
$ python3 arcface.py -h
usage: arcface.py [-h] [-i IMAGE IMAGE] [-v VIDEO IMAGE] [-b]
Determine if the person is the same from two facial images.
optional arguments:
-h, --help show this help message and exit
-i IMAGE IMAGE, --inputs IMAGE IMAGE
Two image paths for calculating the face match.
-v VIDEO IMAGE, --video VIDEO IMAGE
Determines whether the face in the video file
specified by VIDEO and the face in the image file
specified by IMAGE are the same. If the VIDEO argument
is set to 0, the webcam input will be used.
-b, --benchmark Running the inference on the same input 5 times to
measure execution performance. (Cannot be used in
video mode)
$ python3 arcface.py
ONNX file and Prototxt file are prepared!
env_id: 2
Start inference...
Similarity of (correct_pair_1.jpg, correct_pair_2.jpg) : 0.598
They are the same face!
$ python3 arcface.py -b
ONNX file and Prototxt file are prepared!
env_id: 2
Start inference...
BENCHMARK mode
ailia processing time 740 ms
ailia processing time 135 ms
ailia processing time 129 ms
ailia processing time 109 ms
ailia processing time 101 ms
Similarity of (correct_pair_1.jpg, correct_pair_2.jpg) : 0.598
They are the same face! このようなフォーマットでとりあえず進めます. |
いろいろ気になる点が出てきているのでailiaの様子を見ながらPRすることにします
|
ビデオ入力時の, if not ret:
continue がなぜ if not ret:
break に変更したほうがよさそう (一応 webcam の動作が変わってしまったりしないことを確認する) |
TODO
次回以降
|
recognize_from...
という関数名でメイン関数を書いていたのをモデルにそぐわない場合は変更しておくThe text was updated successfully, but these errors were encountered: