Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions tools/3dtrees_detailview/detailview.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
species prediction on segmented point cloud.
</description>
<macros>
<token name="@TOOL_VERSION@">1.1.0</token>
<token name="@TOOL_VERSION@">1.1.1</token>
<token name="@VERSION_SUFFIX@">0</token>
</macros>
<requirements>
Expand All @@ -18,12 +18,16 @@
--n-aug '$n_aug'
--projection-backend '$projection_backend'
--model-path '$model_path'
--output-species-id-dim '$output_species_id_dim'
--output-species-prob-dim '$output_species_prob_dim'
--output-type both
]]>
</command>
<inputs>
<param argument="--prediction-data" name="input" type="data" format="laz" label="Input Point Cloud" help="Input LAS/LAZ point cloud file with segmented trees"/>
<param argument="--tree-id-col" type="text" value="PredInstance" label="Tree ID Dimension" help="Dimension name in the LAS file that contains tree instance IDs"/>
<param argument="--tree-id-col" type="text" value="PredInstance" label="Tree ID Dimension" help="Dimension name in the LAS file that contains tree instance IDs">
<validator type="regex" message="Use letters, numbers, and underscores only; start with a letter">^[A-Za-z_][A-Za-z0-9_]*$</validator>
</param>
<param argument="--n-aug" type="integer" value="10" min="1" max="50" label="Number of Augmentations" help="Number of augmentation iterations for prediction (higher = more accurate but slower)"/>
<param argument="--projection-backend" type="select" label="Projection Backend" help="Backend for point cloud projection">
<option value="numpy"/>
Expand All @@ -33,6 +37,12 @@
<option value="/app/model_europe_v1" selected="true">Europe</option>
<option value="/app/model_global_v1">Global</option>
</param>
<param argument="--output-species-id-dim" type="text" value="species_id" label="Species ID Output Dimension" help="Name of the LAS extra dimension used for predicted species IDs.">
<validator type="regex" message="Use letters, numbers, and underscores only; start with a letter">^[A-Za-z_][A-Za-z0-9_]*$</validator>
</param>
<param argument="--output-species-prob-dim" type="text" value="species_prob" label="Species Probability Output Dimension" help="Name of the LAS extra dimension used for predicted species probabilities.">
<validator type="regex" message="Use letters, numbers, and underscores only; start with a letter">^[A-Za-z_][A-Za-z0-9_]*$</validator>
</param>
</inputs>
<outputs>
<data name="predictions_csv" format="csv" label="Species Predictions" from_work_dir="predictions.csv"/>
Expand All @@ -46,9 +56,10 @@
<param name="n_aug" value="1"/>
<param name="projection_backend" value="torch"/>
<param name="model_path" value="/app/model_europe_v1"/>
<param name="output_species_id_dim" value="species_id"/>
<param name="output_species_prob_dim" value="species_prob"/>
<assert_stderr>
<has_n_lines n="35"/>
<has_text text="RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU."/>
<has_text text="KeyError: 'getpwuid(): uid not found:"/>
</assert_stderr>
</test>
</tests>
Expand All @@ -75,6 +86,8 @@ This tool performs tree species classification on segmented 3D point clouds usin
- **Model Region**: Select the trained model based on your data's geographic origin
- Europe: Model trained on European tree species data
- Global: Model trained on global tree species data
- **Species ID Output Dimension**: Name of the LAS extra dimension used for predicted species IDs
- **Species Probability Output Dimension**: Name of the LAS extra dimension used for predicted species probabilities

**Outputs**

Expand All @@ -87,8 +100,9 @@ This tool performs tree species classification on segmented 3D point clouds usin
- **predictions_probs.csv**
- Detailed probability matrix with probability for each species for each tree
- **pc_with_species.laz**
- species_id: Species classification
- species_prob: Classification confidence
- `species_id` by default: Species classification
- `species_prob` by default: Classification confidence
- Both output dimension names can be customized via the tool parameters

**Supported Species**

Expand Down
Loading