From 65256b556609eb47006fd2ae8f0c5815647d61d4 Mon Sep 17 00:00:00 2001 From: lorenzo Date: Fri, 26 Jul 2019 12:22:08 +0200 Subject: [PATCH] change instance threshold default for pifpaf 0.8 --- README.md | 6 +++--- monoloco/run.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 03e56f6..ba7425c 100644 --- a/README.md +++ b/README.md @@ -108,8 +108,8 @@ If it does not find the file, it will generate images with all the predictions without ground-truth matching. Below an example with and without ground-truth matching. They have been created (adding or removing `--path_gt`) with: -`python3 -m monoloco.run predict --networks monoloco --glob docs/002282.png --output_types combined --scale 2 ---model data/models/monoloco-190513-1437.pkl --n_dropout 50 --z_max 30 instance-threshold 0.15` +`python3 -m monoloco.run predict --glob docs/002282.png --output_types combined --scale 2 +--model data/models/monoloco-190513-1437.pkl --n_dropout 50 --z_max 30` With ground truth matching (only matching people): ![predict_ground_truth](docs/002282.png.combined_1.png) @@ -122,7 +122,7 @@ To accurately estimate distance, the focal length is necessary. However, it is still possible to test Monoloco on images where the calibration matrix is not available. Absolute distances are not meaningful but relative distance still are. Below an example on a generic image from the web, created with: -`python3 -m monoloco.run predict --networks monoloco --glob docs/surf.jpg --output_types combined --model data/models/monoloco-190513-1437.pkl --n_dropout 100 --z_max 25` +`python3 -m monoloco.run predict --glob docs/surf.jpg --output_types combined --model data/models/monoloco-190513-1437.pkl --n_dropout 50 --z_max 25` ![no calibration](docs/surf.jpg.combined.png) diff --git a/monoloco/run.py b/monoloco/run.py index a9c3236..3892c95 100644 --- a/monoloco/run.py +++ b/monoloco/run.py @@ -39,7 +39,7 @@ def cli(): # Pifpaf nets.cli(predict_parser) - decoder.cli(predict_parser, force_complete_pose=True, instance_threshold=0.1) + decoder.cli(predict_parser, force_complete_pose=True, instance_threshold=0.15) predict_parser.add_argument('--scale', default=1.0, type=float, help='change the scale of the image to preprocess') # Monoloco