comparison flux.xml @ 0:0d0561746128 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/flux commit 71b3dacee16dc999cb4fa113858d6ace1781c71c
author bgruening
date Mon, 14 Oct 2024 16:50:38 +0000
parents
children 7933bed1ffab
comparison
equal deleted inserted replaced
-1:000000000000 0:0d0561746128
1 <tool id="black_forest_labs_flux" name="FLUX" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="23.0">
2 <description>text-to-image model</description>
3 <macros>
4 <token name="@TOOL_VERSION@">2024</token>
5 <token name="@VERSION_SUFFIX@">0</token>
6 </macros>
7 <requirements>
8 <requirement type="package" version="3.12">python</requirement>
9 <requirement type="package" version="2.4.1">pytorch</requirement>
10 <requirement type="package" version="0.19.1">torchvision</requirement>
11 <requirement type="package" version="0.30.2">diffusers</requirement>
12 <requirement type="package" version="4.44.2">transformers</requirement>
13 <requirement type="package" version="0.34.0">accelerate</requirement>
14 <requirement type="package" version="0.2.0">sentencepiece</requirement>
15 <requirement type="package" version="4.25.3">protobuf</requirement>
16 <requirement type="package" version="0.24.6">huggingface_hub</requirement>
17 </requirements>
18 <command detect_errors="exit_code"><![CDATA[
19 export HF_HOME='$flux_models.fields.path' &&
20 python '$__tool_directory__/flux.py'
21 '$flux_models'
22 '$input_type_selector'
23 '$prompt'
24 ]]></command>
25 <configfiles>
26 </configfiles>
27 <inputs>
28 <param name="flux_models" label="Model data" type="select" help="contact the administrator of this Galaxy instance if you miss model data">
29 <options from_data_table="huggingface">
30 <filter type="static_value" column="4" value="flux"/>
31 <filter type="static_value" column="5" value="1"/>
32 </options>
33 <validator message="No model annotation is available for FLUX" type="no_options"/>
34 </param>
35 <conditional name="input_type">
36 <param name="input_type_selector" type="select" label="Choose the type of input">
37 <option value="file" selected="true">File based input</option>
38 <option value="text">Text based input</option>
39 </param>
40 <when value="file">
41 <param name="prompt" type="data" optional="false" format="txt" label="Prompt file" help="This data will be used as prompt"/>
42 </when>
43 <when value="text">
44 <param name="prompt" type="text" optional="false" label="Prompt" help="This text will be used as prompt" area="true">
45 <validator type="empty_field"/>
46 </param>
47 </when>
48 </conditional>
49 </inputs>
50 <outputs>
51 <data name="output" format="png" label="${tool.name} on ${on_string}" from_work_dir="./output.png"/>
52 </outputs>
53 <tests>
54 <test expect_exit_code="1" expect_failure="true">
55 <param name="flux_models" value="unknown"/>
56 <param name="input_type_selector" value="file"/>
57 <param name="prompt" value="flux_test.txt"/>
58 <assert_stdout>
59 <has_text text="Invalid model!"/>
60 </assert_stdout>
61 </test>
62 </tests>
63 <help><![CDATA[
64
65 .. class:: infomark
66
67 **What it does**
68
69 FLUX is a text-to-image model that generates images from textual descriptions.
70
71 Usage
72 .....
73
74 **Input**
75
76 1. **Model data**:
77 Select the model data from the dropdown list. The available models are dev and schnell.
78 For using dev model, make sure to not use it for commercial purposes.
79
80 2. **Input Prompt**: You can provide the input prompt in two ways:
81 - **File based input**: Upload a txt file containing the prompt.
82 - **Text based input**: Enter the prompt text in the text area.
83
84 **Output**
85
86 This response is saved in the `output.png` file.
87
88 ]]></help>
89 <citations>
90 <citation type="bibtex">
91 @misc{flux,
92 author = {black forest labs},
93 title = {FLUX github repository},
94 howpublished = {\url{https://github.com/black-forest-labs/flux}},
95 year = {2024},
96 note = {Accessed: 2024-09-04}
97 }
98 </citation>
99 </citations>
100 </tool>