55 lines
1.6 KiB
Plaintext
55 lines
1.6 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "120b4212",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"!python -m openpifpaf.predict test\\images\\test.png \\\n",
|
|
"--checkpoint=model/mobilenetv2-220420-152335-karusel.pkl.epoch470 --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=4 --json-output"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "984d60d5",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"!python -m openpifpaf.video --source test\\videos\\turn180_1d.mp4 \\\n",
|
|
"--checkpoint=model/mobilenetv2-220420-152335-karusel.pkl.epoch470 --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
|
|
}
|