|
1 | 1 | { |
2 | | - "Logging": { |
3 | | - "LogLevel": { |
4 | | - "Default": "Information", |
5 | | - "Microsoft.AspNetCore": "Warning" |
6 | | - } |
7 | | - }, |
8 | | - "AllowedHosts": "*", |
9 | | - "OnnxStackConfig": { |
10 | | - "DeviceId": 0, |
11 | | - "InterOpNumThreads": 0, |
12 | | - "IntraOpNumThreads": 0, |
13 | | - "ExecutionMode": "ORT_PARALLEL", |
14 | | - "IsSafetyModelEnabled": false, |
15 | | - "ExecutionProviderTarget": "DirectML", |
16 | | - "OnnxUnetPath": "D:\\Repositories\\stable-diffusion-v1-5\\unet\\model.onnx", |
17 | | - "OnnxTokenizerPath": "D:\\Repositories\\stable-diffusion-v1-5\\cliptokenizer.onnx", |
18 | | - "OnnxVaeDecoderPath": "D:\\Repositories\\stable-diffusion-v1-5\\vae_decoder\\model.onnx", |
19 | | - "OnnxTextEncoderPath": "D:\\Repositories\\stable-diffusion-v1-5\\text_encoder\\model.onnx", |
20 | | - "OnnxSafetyModelPath": "D:\\Repositories\\stable-diffusion-v1-5\\safety_checker\\model.onnx", |
21 | | - "OnnxVaeEncoderPath": "D:\\Repositories\\stable-diffusion-v1-5\\vae_encoder\\model.onnx" |
22 | | - } |
| 2 | + "Logging": { |
| 3 | + "LogLevel": { |
| 4 | + "Default": "Information", |
| 5 | + "Microsoft.AspNetCore": "Warning" |
| 6 | + } |
| 7 | + }, |
| 8 | + "AllowedHosts": "*", |
| 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": [ |
| 18 | + { |
| 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" |
| 72 | + } |
| 73 | + ] |
| 74 | + } |
23 | 75 | } |
0 commit comments