Skip to content
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

Merged
merged 9 commits into from
Oct 14, 2024

Conversation

mstenta
Copy link
Contributor

@mstenta mstenta commented Oct 7, 2024

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'})

Copy link
Member

@lukasalexanderweber lukasalexanderweber left a 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?

stitching/cli/stitch.py Show resolved Hide resolved
@lukasalexanderweber lukasalexanderweber merged commit da14e49 into OpenStitching:main Oct 14, 2024
2 checks passed
@mstenta
Copy link
Contributor Author

mstenta commented Oct 14, 2024

This looks great @lukasalexanderweber! Thanks for picking it up! I didn't have time to dig into it last week. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants