Skip to content
Open
Changes from 1 commit
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
22 changes: 16 additions & 6 deletions tools/3dtrees_detailview/detailview.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
species prediction on segmented point cloud.
</description>
<macros>
<token name="@TOOL_VERSION@">1.1.0</token>
<token name="@VERSION_SUFFIX@">0</token>
<token name="@TOOL_VERSION@">1.1.1</token>
<token name="@VERSION_SUFFIX@">1</token>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<token name="@VERSION_SUFFIX@">1</token>
<token name="@VERSION_SUFFIX@">0</token>

</macros>
<requirements>
<container type="docker">ghcr.io/3dtrees-earth/3dtrees_detailview:@TOOL_VERSION@</container>
<!-- <container type="docker">ghcr.io/3dtrees-earth/3dtrees_detailview:@TOOL_VERSION@</container> -->
<container type="docker">docker.io/library/3dtrees-tool-3dtrees_detailview</container>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is a version here missing?

</requirements>
<command detect_errors="exit_code"><![CDATA[
ln -s '$input' input.laz &&
Expand All @@ -18,6 +19,8 @@
--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>
Expand All @@ -33,6 +36,8 @@
<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."/>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

validators?

<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."/>
</inputs>
<outputs>
<data name="predictions_csv" format="csv" label="Species Predictions" from_work_dir="predictions.csv"/>
Expand All @@ -46,8 +51,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_n_lines n="25"/>
<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."/>
</assert_stderr>
</test>
Expand Down Expand Up @@ -75,6 +82,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 +96,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