Giter VIP home page Giter VIP logo

Comments (8)

kyakuno avatar kyakuno commented on May 14, 2024 1

回数は固定で良いと思います。

from ailia-models.

kyakuno avatar kyakuno commented on May 14, 2024

コマンドライン引数にループを回す回数を指定できるようにする方が良いですかね。

from ailia-models.

kyakuno avatar kyakuno commented on May 14, 2024

デフォルトでは処理時間非表示、--benchmarkを指定すると5回処理して処理時間表示、というイメージです。

from ailia-models.

sngyo avatar sngyo commented on May 14, 2024

回数は指定できた方がよろしいでしょうか?必要なければ

デフォルトでは処理時間非表示、--benchmarkを指定すると5回処理して処理時間表示、というイメージです。

で進めます.

現状同様動画モードの際にはbenchmarkは無効とします. (READMEかargsのhelpに明示するようにします)

from ailia-models.

sngyo avatar sngyo commented on May 14, 2024
$ 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!

このようなフォーマットでとりあえず進めます.
Start inference...のようなメッセージをどのくらい入れるべきか,そもそも必要かも悩みどころです.

from ailia-models.

sngyo avatar sngyo commented on May 14, 2024

いろいろ気になる点が出てきているのでailiaの様子を見ながらPRすることにします

from ailia-models.

sngyo avatar sngyo commented on May 14, 2024

ビデオ入力時の,

if not ret:
    continue

がなぜcontinueにしたのか思い出せないがこれだと強制的に抜けない限り無限ループし続ける設定になっているようなので,

if not ret:
    break

に変更したほうがよさそう (一応 webcam の動作が変わってしまったりしないことを確認する)

from ailia-models.

sngyo avatar sngyo commented on May 14, 2024

TODO

  • bert修正
  • #104 に対応

次回以降

  • if not ret: breakにすべて変更する

from ailia-models.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.