init-GrandPrix+dataset_v1-15kps
This commit is contained in:
Binary file not shown.
54
Grand_Prix/Inference/predict.ipynb
Normal file
54
Grand_Prix/Inference/predict.ipynb
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "120b4212",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"!python -m openpifpaf.predict test\\images\\test.png \\\n",
|
||||
"--checkpoint=model/mobilenetv2-GrandPrix_v1_15.pkl.№1.epoch510 --image-output \\\n",
|
||||
"--keypoint-threshold-rel=0.01 --cif-th=0.01 --caf-th=0.01 --seed-threshold=0.01 \\\n",
|
||||
"--keypoint-threshold=0.01 --tr-minimum-threshold=0.01 --tr-single-pose-threshold=0.01 \\\n",
|
||||
"--tr-multi-pose-threshold=0.01 --instance-threshold=0.1 --line-width=2 --json-output"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "984d60d5",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# !python -m openpifpaf.video --source test\\videos\\test.mp4 \\\n",
|
||||
"# --checkpoint=model/mobilenetv2-GrandPrix_v1_15.pkl.№1.epoch510 --video-output --json-output \\\n",
|
||||
"# --keypoint-threshold-rel=0.01 --cif-th=0.01 --caf-th=0.01 --seed-threshold=0.01 \\\n",
|
||||
"# --keypoint-threshold=0.01 --tr-minimum-threshold=0.01 --tr-single-pose-threshold=0.01 \\\n",
|
||||
"# --tr-multi-pose-threshold=0.01 --instance-threshold=0.1 --line-width=4 --video-fps=25 \\\n",
|
||||
"# --scale=1 --loader-workers=3"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.9.7"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
BIN
Grand_Prix/Inference/test/images/test.png
Normal file
BIN
Grand_Prix/Inference/test/images/test.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.6 MiB |
BIN
Grand_Prix/Inference/test/images/test.png.predictions.jpeg
Normal file
BIN
Grand_Prix/Inference/test/images/test.png.predictions.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 652 KiB |
@@ -0,0 +1 @@
|
||||
[{"keypoints": [838.75, 615.73, 0.88, 909.25, 613.23, 0.96, 1016.17, 620.18, 0.97, 1061.86, 628.27, 0.97, 1009.92, 566.12, 0.97, 1058.38, 501.94, 0.97, 1009.72, 476.08, 0.97, 936.14, 503.76, 0.99, 887.17, 524.44, 1.0, 800.59, 530.07, 0.99, 692.88, 533.28, 0.93, 649.33, 581.98, 0.97, 703.06, 585.64, 0.96, 912.56, 581.72, 0.96, 921.69, 479.73, 0.87], "bbox": [639.74, 465.77, 433.49, 173.86], "score": 0.957, "category_id": 1}]
|
||||
Reference in New Issue
Block a user