Comments (8)
回数は固定で良いと思います。
from ailia-models.
コマンドライン引数にループを回す回数を指定できるようにする方が良いですかね。
from ailia-models.
デフォルトでは処理時間非表示、--benchmarkを指定すると5回処理して処理時間表示、というイメージです。
from ailia-models.
回数は指定できた方がよろしいでしょうか?必要なければ
デフォルトでは処理時間非表示、--benchmarkを指定すると5回処理して処理時間表示、というイメージです。
で進めます.
現状同様動画モードの際にはbenchmarkは無効とします. (READMEかargsのhelpに明示するようにします)
from ailia-models.
$ 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.
いろいろ気になる点が出てきているのでailiaの様子を見ながらPRすることにします
- BERT: https://github.com/axell-corp/ailia/issues/1263
- 複数入出力の対応 (onnxruntime形式で記述)
from ailia-models.
ビデオ入力時の,
if not ret:
continue
がなぜcontinue
にしたのか思い出せないがこれだと強制的に抜けない限り無限ループし続ける設定になっているようなので,
if not ret:
break
に変更したほうがよさそう (一応 webcam の動作が変わってしまったりしないことを確認する)
from ailia-models.
TODO
- bert修正
- #104 に対応
次回以降
-
if not ret: break
にすべて変更する
from ailia-models.
Related Issues (20)
- ADD sd-turbo
- ADD bert ner japanese
- ADD AudioGen
- ADD MusicGen
- Add bert-network-packet-flow-header-payload
- PaddleOCRの標準モデルをServerモデルにする
- ADD AniPortrait
- ADD sdxl-turbo HOT 3
- ModuleNotFoundError: No module named 'fvcore'
- ADD bge-m3 HOT 1
- ADD VISTA (hands-segmentation-pytorch)
- ADD Ego2Hands
- ADD japanese-reranker-cross-encoder-large-v1
- ADD cross-encoder-mmarco-mMiniLMv2-L12-H384-v1 HOT 18
- How to obtain hubert_base.onnx that supports v2 [768]
- ADD BeatNet HOT 1
- ADD kotoba-whisper-v1.0 HOT 1
- Add gradio ui
- READMEにOpen in Colabボタンを追加
- Add phi3-mini HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ailia-models.