-
-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix --affine CLI parameter #244
Fix --affine CLI parameter #244
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you plase also extend the CLI help text for the --affine
parameter with what exactly is overwritten? So the users don't need to fallback to the tutorial (maybe just print AffineStitcher.AFFINE_DEFAULTS
)
I also thought if it make sense to make a input validation for AffineStitcher
that such a mistake can not happen again. E.g. that is validated that the kwargs don't diverge from the AFFINE_DEFAULTS
. Such a validation would have made the CLI error immediately visible.
What are your thoughts?
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
This looks great @lukasalexanderweber! Thanks for picking it up! I didn't have time to dig into it last week. 👍 |
This proposes a fix for #243
Here is the contents of
00_stitcher.txt
with the following command after these changes:Command:
sudo docker run --rm -v ./:/data openstitching/stitch --affine --verbose ./*.jpg
Result
00_stitcher.txt
:AffineStitcher(**{'medium_megapix': 0.6, 'detector': 'orb', 'nfeatures': 500, 'matcher_type': 'affine', 'range_width': -1, 'try_use_gpu': False, 'match_conf': None, 'confidence_threshold': 1, 'matches_graph_dot_file': None, 'estimator': 'affine', 'adjuster': 'affine', 'refinement_mask': 'xxxxx', 'wave_correct_kind': 'no', 'warper_type': 'affine', 'low_megapix': 0.1, 'crop': True, 'compensator': 'no', 'nr_feeds': 1, 'block_size': 32, 'finder': 'dp_color', 'final_megapix': -1, 'blender_type': 'multiband', 'blend_strength': 5, 'timelapse': 'no'})