Mercurial > repos > goeckslab > image_learner
comparison image_learner.xml @ 14:94cd9ac4a9b1 draft default tip
planemo upload for repository https://github.com/goeckslab/gleam.git commit 3188005878e1ad81b0ca59c9c4d4d40dd981acf7
| author | goeckslab |
|---|---|
| date | Wed, 26 Nov 2025 22:00:32 +0000 |
| parents | 1a9c42974a5a |
| children |
comparison
equal
deleted
inserted
replaced
| 13:1a9c42974a5a | 14:94cd9ac4a9b1 |
|---|---|
| 2 <description>trains and evaluates an image classification/regression model</description> | 2 <description>trains and evaluates an image classification/regression model</description> |
| 3 <requirements> | 3 <requirements> |
| 4 <container type="docker">quay.io/goeckslab/galaxy-ludwig-gpu:0.10.1</container> | 4 <container type="docker">quay.io/goeckslab/galaxy-ludwig-gpu:0.10.1</container> |
| 5 </requirements> | 5 </requirements> |
| 6 <required_files> | 6 <required_files> |
| 7 <include path="constants.py" /> | |
| 8 <include path="html_structure.py" /> | |
| 9 <include path="image_learner_cli.py" /> | |
| 10 <include path="image_workflow.py" /> | |
| 11 <include path="ludwig_backend.py" /> | |
| 12 <include path="metaformer_setup.py" /> | |
| 13 <include path="plotly_plots.py" /> | |
| 14 <include path="split_data.py" /> | |
| 7 <include path="utils.py" /> | 15 <include path="utils.py" /> |
| 8 <include path="constants.py" /> | 16 <include path="MetaFormer/__init__.py" /> |
| 9 <include path="image_learner_cli.py" /> | |
| 10 | |
| 11 <include path="MetaFormer/metaformer_models.py" /> | 17 <include path="MetaFormer/metaformer_models.py" /> |
| 12 <include path="MetaFormer/metaformer_stacked_cnn.py" /> | 18 <include path="MetaFormer/metaformer_stacked_cnn.py" /> |
| 13 <include path="MetaFormer/__init__.py" /> | |
| 14 </required_files> | 19 </required_files> |
| 15 <stdio> | 20 <stdio> |
| 16 <exit_code range="137" level="fatal_oom" description="Out of Memory" /> | 21 <exit_code range="137" level="fatal_oom" description="Out of Memory" /> |
| 17 <exit_code range="1:" level="fatal" description="Error occurred. Please check Tool Standard Error" /> | 22 <exit_code range="1:" level="fatal" description="Error occurred. Please check Tool Standard Error" /> |
| 18 </stdio> | 23 </stdio> |
| 65 echo "Image Learner Classification Experiment is Done!" | 70 echo "Image Learner Classification Experiment is Done!" |
| 66 ]]> | 71 ]]> |
| 67 </command> | 72 </command> |
| 68 | 73 |
| 69 <inputs> | 74 <inputs> |
| 70 <param name="input_csv" argument="input_csv" type="data" format="csv" optional="false" label="the metadata csv containing image_path column, label column and optional split column" /> | 75 <param name="input_csv" type="data" format="csv" optional="false" label="the metadata csv containing image_path column, label column and optional split column" /> |
| 71 <param name="image_zip" type="data" format="zip" optional="false" label="Image zip" help="Image zip file containing your image data"/> | 76 <param name="image_zip" type="data" format="zip" optional="false" label="Image zip" help="Image zip file containing your image data"/> |
| 72 <param name="model_name" type="select" optional="false" label="Select a model for your experiment" > | 77 <param name="model_name" type="select" optional="false" label="Select a model for your experiment" > |
| 73 | 78 |
| 74 <option value="resnet18">Resnet18</option> | 79 <option value="resnet18">Resnet18</option> |
| 75 <option value="resnet34">Resnet34</option> | 80 <option value="resnet34">Resnet34</option> |
| 219 </when> | 224 </when> |
| 220 <when value="false"> | 225 <when value="false"> |
| 221 <!-- No additional parameters to show if the user selects 'No' --> | 226 <!-- No additional parameters to show if the user selects 'No' --> |
| 222 </when> | 227 </when> |
| 223 </conditional> | 228 </conditional> |
| 224 <param argument="image_resize" | 229 <param name="image_resize" |
| 225 name="image_resize" | |
| 226 type="select" | 230 type="select" |
| 227 label="Image Resize" | 231 label="Image Resize" |
| 228 help="Select the size to resize images to. Original size keeps images as-is, while other options resize all images to the specified dimensions."> | 232 help="Select the size to resize images to. Original size keeps images as-is, while other options resize all images to the specified dimensions."> |
| 229 <option value="original" selected="true">Original Size (No Resize)</option> | 233 <option value="original" selected="true">Original Size (No Resize)</option> |
| 230 <option value="96x96">96x96</option> | 234 <option value="96x96">96x96</option> |
| 238 <option value="320x320">320x320</option> | 242 <option value="320x320">320x320</option> |
| 239 <option value="384x384">384x384</option> | 243 <option value="384x384">384x384</option> |
| 240 <option value="448x448">448x448</option> | 244 <option value="448x448">448x448</option> |
| 241 <option value="512x512">512x512</option> | 245 <option value="512x512">512x512</option> |
| 242 </param> | 246 </param> |
| 243 <param argument="augmentation" | 247 <param name="augmentation" |
| 244 name="augmentation" | |
| 245 type="select" | 248 type="select" |
| 246 multiple="true" | 249 multiple="true" |
| 247 display="checkboxes" | 250 display="checkboxes" |
| 248 label="Image Augmentation" | 251 label="Image Augmentation" |
| 249 help="Pick any combination of augmentations to apply"> | 252 help="Pick any combination of augmentations to apply"> |
| 379 </test> | 382 </test> |
| 380 <test expect_num_outputs="3"> | 383 <test expect_num_outputs="3"> |
| 381 <param name="input_csv" value="mnist_subset.csv" ftype="csv" /> | 384 <param name="input_csv" value="mnist_subset.csv" ftype="csv" /> |
| 382 <param name="image_zip" value="mnist_subset.zip" ftype="zip" /> | 385 <param name="image_zip" value="mnist_subset.zip" ftype="zip" /> |
| 383 <param name="model_name" value="randformer_s12" /> | 386 <param name="model_name" value="randformer_s12" /> |
| 384 <param name="customize_defaults" value="true" /> | 387 <param name="advanced_settings|customize_defaults" value="true" /> |
| 385 <param name="epochs" value="5" /> | 388 <param name="advanced_settings|epochs" value="5" /> |
| 386 <output name="output_report"> | 389 <output name="output_report"> |
| 387 <assert_contents> | 390 <assert_contents> |
| 388 <has_text text="Results Summary" /> | 391 <has_text text="Results Summary" /> |
| 389 <has_text text="Train/Validation Results" /> | 392 <has_text text="Train/Validation Results" /> |
| 390 <has_text text="Test Results" /> | 393 <has_text text="Test Results" /> |
| 480 </test> --> | 483 </test> --> |
| 481 <test expect_num_outputs="3"> | 484 <test expect_num_outputs="3"> |
| 482 <param name="input_csv" value="mnist_subset_binary.csv" ftype="csv" /> | 485 <param name="input_csv" value="mnist_subset_binary.csv" ftype="csv" /> |
| 483 <param name="image_zip" value="mnist_subset.zip" ftype="zip" /> | 486 <param name="image_zip" value="mnist_subset.zip" ftype="zip" /> |
| 484 <param name="model_name" value="resnet18" /> | 487 <param name="model_name" value="resnet18" /> |
| 485 <param name="customize_defaults" value="true" /> | 488 <param name="advanced_settings|customize_defaults" value="true" /> |
| 486 <param name="threshold" value="0.6" /> | 489 <param name="advanced_settings|threshold" value="0.6" /> |
| 487 <output name="output_report"> | 490 <output name="output_report"> |
| 488 <assert_contents> | 491 <assert_contents> |
| 489 <has_text text="Accuracy" /> | 492 <has_text text="Accuracy" /> |
| 490 <has_text text="Precision" /> | 493 <has_text text="Precision" /> |
| 491 <has_text text="Learning Curves Label Accuracy" /> | 494 <has_text text="Learning Curves Label Accuracy" /> |
