Skip to content

Add CLI argument parsing, requirements file, and minor fixes for BranchPoseNet usability#3

Open
ScharfAl wants to merge 7 commits into
stefp:mainfrom
ScharfAl:main
Open

Add CLI argument parsing, requirements file, and minor fixes for BranchPoseNet usability#3
ScharfAl wants to merge 7 commits into
stefp:mainfrom
ScharfAl:main

Conversation

@ScharfAl

Copy link
Copy Markdown

This PR introduces several improvements aimed at making BranchPoseNet easier to run, customize, and set up in fresh environments:

Added CLI argument parsing to whorl_pose_detect.py using argparse, allowing key parameters (dir_root, my_model, alpha, min_internodal_d, tree_id_label, semantic_label) to be overridden from the command line without editing the script directly.

Preserved original inline parameter definitions with CLI overrides to keep backward compatibility and maintain original examle values.

Created a requirements.txt listing all necessary dependencies (pandas, numpy, laspy[lazrs], Pillow, scipy, matplotlib, ultralytics), making installation simpler.

Minor README corrections for folder navigation and clearer setup instructions.

removed line: "cd whorl_pose_detector"

changed command line example from 

"python whorl_pose_detect_CLI.py --dir_root data ......"
to
"python whorl_pose_detect.py --dir_root data ......"
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.

1 participant