|
7 | 7 | }, |
8 | 8 | "AllowedHosts": "*", |
9 | 9 | "OnnxStackConfig": { |
10 | | - "Name": "StableDiffusion 1.5", |
11 | | - "PadTokenId": 49407, |
12 | | - "BlankTokenId": 49407, |
13 | | - "InputTokenLimit": 512, |
14 | | - "TokenizerLimit": 77, |
15 | | - "EmbeddingsLength": 768, |
16 | | - "ScaleFactor": 0.18215, |
17 | | - "ModelConfigurations": [ |
| 10 | + "OnnxModelSets": [ |
18 | 11 | { |
19 | | - "Type": "Unet", |
20 | | - "DeviceId": 0, |
21 | | - "InterOpNumThreads": 0, |
22 | | - "IntraOpNumThreads": 0, |
23 | | - "ExecutionMode": "ORT_PARALLEL", |
24 | | - "ExecutionProvider": "DirectML", |
25 | | - "OnnxModelPath": "D:\\Repositories\\stable-diffusion-v1-5\\unet\\model.onnx" |
26 | | - }, |
27 | | - { |
28 | | - "Type": "Tokenizer", |
29 | | - "DeviceId": 0, |
30 | | - "InterOpNumThreads": 0, |
31 | | - "IntraOpNumThreads": 0, |
32 | | - "ExecutionMode": "ORT_PARALLEL", |
33 | | - "ExecutionProvider": "Cpu", |
34 | | - "OnnxModelPath": "D:\\Repositories\\stable-diffusion-v1-5\\cliptokenizer.onnx" |
35 | | - }, |
36 | | - { |
37 | | - "Type": "TextEncoder", |
38 | | - "DeviceId": 0, |
39 | | - "InterOpNumThreads": 0, |
40 | | - "IntraOpNumThreads": 0, |
41 | | - "ExecutionMode": "ORT_PARALLEL", |
42 | | - "ExecutionProvider": "Cpu", |
43 | | - "OnnxModelPath": "D:\\Repositories\\stable-diffusion-v1-5\\text_encoder\\model.onnx" |
44 | | - }, |
45 | | - { |
46 | | - "Type": "VaeEncoder", |
47 | | - "DeviceId": 0, |
48 | | - "InterOpNumThreads": 0, |
49 | | - "IntraOpNumThreads": 0, |
50 | | - "ExecutionMode": "ORT_PARALLEL", |
51 | | - "ExecutionProvider": "Cpu", |
52 | | - "OnnxModelPath": "D:\\Repositories\\stable-diffusion-v1-5\\vae_encoder\\model.onnx" |
53 | | - }, |
54 | | - { |
55 | | - "Type": "VaeDecoder", |
56 | | - "DeviceId": 0, |
57 | | - "InterOpNumThreads": 0, |
58 | | - "IntraOpNumThreads": 0, |
59 | | - "ExecutionMode": "ORT_PARALLEL", |
60 | | - "ExecutionProvider": "Cpu", |
61 | | - "OnnxModelPath": "D:\\Repositories\\stable-diffusion-v1-5\\vae_decoder\\model.onnx" |
62 | | - }, |
63 | | - { |
64 | | - "Type": "SafetyChecker", |
65 | | - "IsDisabled": true, |
66 | | - "DeviceId": 0, |
67 | | - "InterOpNumThreads": 0, |
68 | | - "IntraOpNumThreads": 0, |
69 | | - "ExecutionMode": "ORT_PARALLEL", |
70 | | - "ExecutionProvider": "Cpu", |
71 | | - "OnnxModelPath": "D:\\Repositories\\stable-diffusion-v1-5\\safety_checker\\model.onnx" |
| 12 | + "Name": "StableDiffusion 1.5", |
| 13 | + "PadTokenId": 49407, |
| 14 | + "BlankTokenId": 49407, |
| 15 | + "InputTokenLimit": 512, |
| 16 | + "TokenizerLimit": 77, |
| 17 | + "EmbeddingsLength": 768, |
| 18 | + "ScaleFactor": 0.18215, |
| 19 | + "ModelConfigurations": [ |
| 20 | + { |
| 21 | + "Type": "Unet", |
| 22 | + "DeviceId": 0, |
| 23 | + "InterOpNumThreads": 0, |
| 24 | + "IntraOpNumThreads": 0, |
| 25 | + "ExecutionMode": "ORT_PARALLEL", |
| 26 | + "ExecutionProvider": "DirectML", |
| 27 | + "OnnxModelPath": "D:\\Repositories\\stable-diffusion-v1-5\\unet\\model.onnx" |
| 28 | + }, |
| 29 | + { |
| 30 | + "Type": "Tokenizer", |
| 31 | + "DeviceId": 0, |
| 32 | + "InterOpNumThreads": 0, |
| 33 | + "IntraOpNumThreads": 0, |
| 34 | + "ExecutionMode": "ORT_PARALLEL", |
| 35 | + "ExecutionProvider": "DirectML", |
| 36 | + "OnnxModelPath": "D:\\Repositories\\stable-diffusion-v1-5\\cliptokenizer.onnx" |
| 37 | + }, |
| 38 | + { |
| 39 | + "Type": "TextEncoder", |
| 40 | + "DeviceId": 0, |
| 41 | + "InterOpNumThreads": 0, |
| 42 | + "IntraOpNumThreads": 0, |
| 43 | + "ExecutionMode": "ORT_PARALLEL", |
| 44 | + "ExecutionProvider": "DirectML", |
| 45 | + "OnnxModelPath": "D:\\Repositories\\stable-diffusion-v1-5\\text_encoder\\model.onnx" |
| 46 | + }, |
| 47 | + { |
| 48 | + "Type": "VaeEncoder", |
| 49 | + "DeviceId": 0, |
| 50 | + "InterOpNumThreads": 0, |
| 51 | + "IntraOpNumThreads": 0, |
| 52 | + "ExecutionMode": "ORT_PARALLEL", |
| 53 | + "ExecutionProvider": "DirectML", |
| 54 | + "OnnxModelPath": "D:\\Repositories\\stable-diffusion-v1-5\\vae_encoder\\model.onnx" |
| 55 | + }, |
| 56 | + { |
| 57 | + "Type": "VaeDecoder", |
| 58 | + "DeviceId": 0, |
| 59 | + "InterOpNumThreads": 0, |
| 60 | + "IntraOpNumThreads": 0, |
| 61 | + "ExecutionMode": "ORT_PARALLEL", |
| 62 | + "ExecutionProvider": "DirectML", |
| 63 | + "OnnxModelPath": "D:\\Repositories\\stable-diffusion-v1-5\\vae_decoder\\model.onnx" |
| 64 | + }, |
| 65 | + { |
| 66 | + "Type": "SafetyChecker", |
| 67 | + "IsDisabled": true, |
| 68 | + "DeviceId": 0, |
| 69 | + "InterOpNumThreads": 0, |
| 70 | + "IntraOpNumThreads": 0, |
| 71 | + "ExecutionMode": "ORT_PARALLEL", |
| 72 | + "ExecutionProvider": "DirectML", |
| 73 | + "OnnxModelPath": "D:\\Repositories\\stable-diffusion-v1-5\\safety_checker\\model.onnx" |
| 74 | + } |
| 75 | + ] |
72 | 76 | } |
73 | 77 | ] |
74 | 78 | } |
|
0 commit comments