Upload 23 files
Browse files- .gitattributes +9 -0
- Icon.png +0 -0
- README.md +38 -0
- Sample.png +3 -0
- Sample2.png +3 -0
- Sample3.png +3 -0
- Sample4.png +3 -0
- amuse_template.json +76 -0
- text_encoder/model.onnx +3 -0
- text_encoder/model.onnx.data +3 -0
- text_encoder_2/model.onnx +3 -0
- text_encoder_2/model.onnx.data +3 -0
- tokenizer/merges.txt +0 -0
- tokenizer/special_tokens_map.json +30 -0
- tokenizer/vocab.json +0 -0
- tokenizer_2/special_tokens_map.json +125 -0
- tokenizer_2/spiece.model +3 -0
- tokenizer_2/tokenizer.json +0 -0
- transformer/model.onnx +3 -0
- transformer/model.onnx.data +3 -0
- vae_decoder/model.onnx +3 -0
- vae_decoder/model.onnx.data +3 -0
- vae_encoder/model.onnx +3 -0
- vae_encoder/model.onnx.data +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,12 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
Sample.png filter=lfs diff=lfs merge=lfs -text
|
37 |
+
Sample2.png filter=lfs diff=lfs merge=lfs -text
|
38 |
+
Sample3.png filter=lfs diff=lfs merge=lfs -text
|
39 |
+
Sample4.png filter=lfs diff=lfs merge=lfs -text
|
40 |
+
text_encoder_2/model.onnx.data filter=lfs diff=lfs merge=lfs -text
|
41 |
+
text_encoder/model.onnx.data filter=lfs diff=lfs merge=lfs -text
|
42 |
+
transformer/model.onnx.data filter=lfs diff=lfs merge=lfs -text
|
43 |
+
vae_decoder/model.onnx.data filter=lfs diff=lfs merge=lfs -text
|
44 |
+
vae_encoder/model.onnx.data filter=lfs diff=lfs merge=lfs -text
|
Icon.png
ADDED
![]() |
README.md
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
pipeline_tag: text-to-image
|
3 |
+
---
|
4 |
+
# FLUX.1-dev - Onnx Olive DirectML Optimized
|
5 |
+
|
6 |
+
## Original Model
|
7 |
+
https://huggingface.co/black-forest-labs/FLUX.1-dev
|
8 |
+
|
9 |
+
|
10 |
+
## C# Inference Demo
|
11 |
+
https://github.com/TensorStack-AI/OnnxStack
|
12 |
+
|
13 |
+
```csharp
|
14 |
+
// Create Pipeline
|
15 |
+
var pipeline = FluxPipeline.CreatePipeline("D:\\Models\\Flux_dev-f16-onnx");
|
16 |
+
|
17 |
+
// Prompt
|
18 |
+
var promptOptions = new PromptOptions
|
19 |
+
{
|
20 |
+
Prompt = "Create an image of a young woman jogging through a park, with headphones on and a determined look."
|
21 |
+
};
|
22 |
+
|
23 |
+
// Scheduler Options
|
24 |
+
var schedulerOptions = pipeline.DefaultSchedulerOptions with
|
25 |
+
{
|
26 |
+
InferenceSteps = 50,
|
27 |
+
GuidanceScale = 3.5f,
|
28 |
+
SchedulerType = SchedulerType.FlowMatchEulerDiscrete,
|
29 |
+
};
|
30 |
+
|
31 |
+
// Run pipeline
|
32 |
+
var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);
|
33 |
+
|
34 |
+
// Save Image Result
|
35 |
+
await result.SaveAsync("Result.png");
|
36 |
+
```
|
37 |
+
## Inference Result
|
38 |
+

|
Sample.png
ADDED
![]() |
Git LFS Details
|
Sample2.png
ADDED
![]() |
Git LFS Details
|
Sample3.png
ADDED
![]() |
Git LFS Details
|
Sample4.png
ADDED
![]() |
Git LFS Details
|
amuse_template.json
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"Id": "0B6D4B13-8BED-46B3-A149-99134497C8CC",
|
3 |
+
"FileVersion": "1",
|
4 |
+
"Created": "2025-03-07T00:00:00",
|
5 |
+
"IsProtected": false,
|
6 |
+
"Name": "FLUX.1-Dev",
|
7 |
+
"ImageIcon": "https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/Icon.png",
|
8 |
+
"Author": "BlackForestLabs",
|
9 |
+
"Description": "FLUX.1 [Dev] is a 12-billion parameter rectified flow transformer designed to generate detailed and high-quality images directly from text descriptions. This model offers impressive capabilities in transforming prompts into vivid and accurate visual representations.",
|
10 |
+
"Rank": 29,
|
11 |
+
"Group": "Online",
|
12 |
+
"Template": "FluxDev",
|
13 |
+
"Category": "StableDiffusion",
|
14 |
+
"StableDiffusionTemplate": {
|
15 |
+
"PipelineType": "Flux",
|
16 |
+
"ModelType": "Base",
|
17 |
+
"SampleSize": 1024,
|
18 |
+
"TokenizerLength": 768,
|
19 |
+
"Tokenizer2Limit": 512,
|
20 |
+
"Optimization": "None",
|
21 |
+
"DiffuserTypes": [
|
22 |
+
"TextToImage",
|
23 |
+
"ImageToImage"
|
24 |
+
],
|
25 |
+
"SchedulerDefaults": {
|
26 |
+
"SchedulerType": "FlowMatchEulerDiscrete",
|
27 |
+
"Steps": 28,
|
28 |
+
"StepsMin": 1,
|
29 |
+
"StepsMax": 100,
|
30 |
+
"Guidance": 1,
|
31 |
+
"GuidanceMin": 1,
|
32 |
+
"GuidanceMax": 2,
|
33 |
+
"Guidance2": 3.5,
|
34 |
+
"Guidance2Min": 0,
|
35 |
+
"Guidance2Max": 15,
|
36 |
+
"TimestepSpacing": "Linspace",
|
37 |
+
"BetaSchedule": "ScaledLinear",
|
38 |
+
"BetaStart": 0.00085,
|
39 |
+
"BetaEnd": 0.012
|
40 |
+
}
|
41 |
+
},
|
42 |
+
"MemoryMin": 26,
|
43 |
+
"MemoryMax": 36,
|
44 |
+
"DownloadSize": 34,
|
45 |
+
"Website": "https://blackforestlabs.ai",
|
46 |
+
"Licence": "https://github.com/black-forest-labs/flux/blob/main/model_licenses/LICENSE-FLUX1-dev",
|
47 |
+
"LicenceType": "NonCommercial",
|
48 |
+
"IsLicenceAccepted": false,
|
49 |
+
"Repository": "https://huggingface.co/TensorStack/FLUX.1-Dev-amuse",
|
50 |
+
"RepositoryFiles": [
|
51 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/text_encoder/model.onnx",
|
52 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/text_encoder_2/model.onnx",
|
53 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/text_encoder_2/model.onnx.data",
|
54 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/tokenizer/merges.txt",
|
55 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/tokenizer/special_tokens_map.json",
|
56 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/tokenizer/vocab.json",
|
57 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/tokenizer_2/special_tokens_map.json",
|
58 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/tokenizer_2/spiece.model",
|
59 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/tokenizer_2/tokenizer.json",
|
60 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/transformer/model.onnx",
|
61 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/transformer/model.onnx.data",
|
62 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/vae_decoder/model.onnx",
|
63 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/vae_decoder/model.onnx.data",
|
64 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/vae_encoder/model.onnx",
|
65 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/vae_encoder/model.onnx.data",
|
66 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/amuse_template.json",
|
67 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/README.md"
|
68 |
+
],
|
69 |
+
"PreviewImages": [
|
70 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/Sample.png",
|
71 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/Sample2.png",
|
72 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/Sample3.png",
|
73 |
+
"https://huggingface.co/TensorStack/FLUX.1-Dev-amuse/resolve/main/Sample4.png"
|
74 |
+
],
|
75 |
+
"Tags": []
|
76 |
+
}
|
text_encoder/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4fa553e25a5b293966fd831fbd69f3a391acd59be04b85c416330809e4b07233
|
3 |
+
size 313594
|
text_encoder/model.onnx.data
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d2015263f98ae9f6e0ea233756bd5ea51ddb1f36ec6a2dd862e59d82611d1db7
|
3 |
+
size 246120960
|
text_encoder_2/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a88d6fc9d7bc87a371deffdea3038c5c6bd6e990ae0002462b1f81af4389a49d
|
3 |
+
size 488164
|
text_encoder_2/model.onnx.data
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:523a4913b0170e5ac5994a557f65d7fadc893a0392b1d6ecaccc02451b08aa73
|
3 |
+
size 11537887232
|
tokenizer/merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer/special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<|startoftext|>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "<|endoftext|>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "<|endoftext|>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<|endoftext|>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
tokenizer/vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_2/special_tokens_map.json
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<extra_id_0>",
|
4 |
+
"<extra_id_1>",
|
5 |
+
"<extra_id_2>",
|
6 |
+
"<extra_id_3>",
|
7 |
+
"<extra_id_4>",
|
8 |
+
"<extra_id_5>",
|
9 |
+
"<extra_id_6>",
|
10 |
+
"<extra_id_7>",
|
11 |
+
"<extra_id_8>",
|
12 |
+
"<extra_id_9>",
|
13 |
+
"<extra_id_10>",
|
14 |
+
"<extra_id_11>",
|
15 |
+
"<extra_id_12>",
|
16 |
+
"<extra_id_13>",
|
17 |
+
"<extra_id_14>",
|
18 |
+
"<extra_id_15>",
|
19 |
+
"<extra_id_16>",
|
20 |
+
"<extra_id_17>",
|
21 |
+
"<extra_id_18>",
|
22 |
+
"<extra_id_19>",
|
23 |
+
"<extra_id_20>",
|
24 |
+
"<extra_id_21>",
|
25 |
+
"<extra_id_22>",
|
26 |
+
"<extra_id_23>",
|
27 |
+
"<extra_id_24>",
|
28 |
+
"<extra_id_25>",
|
29 |
+
"<extra_id_26>",
|
30 |
+
"<extra_id_27>",
|
31 |
+
"<extra_id_28>",
|
32 |
+
"<extra_id_29>",
|
33 |
+
"<extra_id_30>",
|
34 |
+
"<extra_id_31>",
|
35 |
+
"<extra_id_32>",
|
36 |
+
"<extra_id_33>",
|
37 |
+
"<extra_id_34>",
|
38 |
+
"<extra_id_35>",
|
39 |
+
"<extra_id_36>",
|
40 |
+
"<extra_id_37>",
|
41 |
+
"<extra_id_38>",
|
42 |
+
"<extra_id_39>",
|
43 |
+
"<extra_id_40>",
|
44 |
+
"<extra_id_41>",
|
45 |
+
"<extra_id_42>",
|
46 |
+
"<extra_id_43>",
|
47 |
+
"<extra_id_44>",
|
48 |
+
"<extra_id_45>",
|
49 |
+
"<extra_id_46>",
|
50 |
+
"<extra_id_47>",
|
51 |
+
"<extra_id_48>",
|
52 |
+
"<extra_id_49>",
|
53 |
+
"<extra_id_50>",
|
54 |
+
"<extra_id_51>",
|
55 |
+
"<extra_id_52>",
|
56 |
+
"<extra_id_53>",
|
57 |
+
"<extra_id_54>",
|
58 |
+
"<extra_id_55>",
|
59 |
+
"<extra_id_56>",
|
60 |
+
"<extra_id_57>",
|
61 |
+
"<extra_id_58>",
|
62 |
+
"<extra_id_59>",
|
63 |
+
"<extra_id_60>",
|
64 |
+
"<extra_id_61>",
|
65 |
+
"<extra_id_62>",
|
66 |
+
"<extra_id_63>",
|
67 |
+
"<extra_id_64>",
|
68 |
+
"<extra_id_65>",
|
69 |
+
"<extra_id_66>",
|
70 |
+
"<extra_id_67>",
|
71 |
+
"<extra_id_68>",
|
72 |
+
"<extra_id_69>",
|
73 |
+
"<extra_id_70>",
|
74 |
+
"<extra_id_71>",
|
75 |
+
"<extra_id_72>",
|
76 |
+
"<extra_id_73>",
|
77 |
+
"<extra_id_74>",
|
78 |
+
"<extra_id_75>",
|
79 |
+
"<extra_id_76>",
|
80 |
+
"<extra_id_77>",
|
81 |
+
"<extra_id_78>",
|
82 |
+
"<extra_id_79>",
|
83 |
+
"<extra_id_80>",
|
84 |
+
"<extra_id_81>",
|
85 |
+
"<extra_id_82>",
|
86 |
+
"<extra_id_83>",
|
87 |
+
"<extra_id_84>",
|
88 |
+
"<extra_id_85>",
|
89 |
+
"<extra_id_86>",
|
90 |
+
"<extra_id_87>",
|
91 |
+
"<extra_id_88>",
|
92 |
+
"<extra_id_89>",
|
93 |
+
"<extra_id_90>",
|
94 |
+
"<extra_id_91>",
|
95 |
+
"<extra_id_92>",
|
96 |
+
"<extra_id_93>",
|
97 |
+
"<extra_id_94>",
|
98 |
+
"<extra_id_95>",
|
99 |
+
"<extra_id_96>",
|
100 |
+
"<extra_id_97>",
|
101 |
+
"<extra_id_98>",
|
102 |
+
"<extra_id_99>"
|
103 |
+
],
|
104 |
+
"eos_token": {
|
105 |
+
"content": "</s>",
|
106 |
+
"lstrip": false,
|
107 |
+
"normalized": false,
|
108 |
+
"rstrip": false,
|
109 |
+
"single_word": false
|
110 |
+
},
|
111 |
+
"pad_token": {
|
112 |
+
"content": "<pad>",
|
113 |
+
"lstrip": false,
|
114 |
+
"normalized": false,
|
115 |
+
"rstrip": false,
|
116 |
+
"single_word": false
|
117 |
+
},
|
118 |
+
"unk_token": {
|
119 |
+
"content": "<unk>",
|
120 |
+
"lstrip": false,
|
121 |
+
"normalized": false,
|
122 |
+
"rstrip": false,
|
123 |
+
"single_word": false
|
124 |
+
}
|
125 |
+
}
|
tokenizer_2/spiece.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d60acb128cf7b7f2536e8f38a5b18a05535c9e14c7a355904270e15b0945ea86
|
3 |
+
size 791656
|
tokenizer_2/tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
transformer/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8aa96153cc0a0083e34c61eea2766afc05502c3ec62d511f0fc215e5b7f22ab9
|
3 |
+
size 4891727
|
transformer/model.onnx.data
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5b7d3b6abcb449e70e829659c42a381c9af509c7e2cefd99baa43a4f0b015915
|
3 |
+
size 23802777600
|
vae_decoder/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5d9921d5ceab77f8ce59a7b077c71dba9652722e36610c0ccd4aa817796e26b5
|
3 |
+
size 134332
|
vae_decoder/model.onnx.data
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b7851af2be3f720d2e383974f0421a9a0ea7d5c6863cb23c1f001d5847d31c40
|
3 |
+
size 198172160
|
vae_encoder/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9049b13e7fad9cea48da83d9425cf68389431c57b6ec97b9fe33caabd58f27a7
|
3 |
+
size 119375
|
vae_encoder/model.onnx.data
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8c64a1d631cba8cc459b8c35b172a308e3de308f921091b1d05982acbec8c6db
|
3 |
+
size 137088512
|