Initial Upload
Browse files- .gitattributes +6 -0
- Icon.png +0 -0
- README.md +26 -0
- Sample.png +3 -0
- Sample2.png +3 -0
- Sample3.png +3 -0
- Sample4.png +3 -0
- controlnet/config.json +73 -0
- controlnet/model.onnx +3 -0
- controlnet/model.onnx.data +3 -0
- model_index.json +34 -0
- scheduler/scheduler_config.json +18 -0
- text_encoder/config.json +24 -0
- text_encoder/model.onnx +3 -0
- text_encoder_2/config.json +24 -0
- text_encoder_2/model.onnx +3 -0
- tokenizer/merges.txt +0 -0
- tokenizer/model.onnx +3 -0
- tokenizer/special_tokens_map.json +24 -0
- tokenizer/tokenizer_config.json +33 -0
- tokenizer/vocab.json +0 -0
- tokenizer_2/merges.txt +0 -0
- tokenizer_2/model.onnx +3 -0
- tokenizer_2/special_tokens_map.json +24 -0
- tokenizer_2/tokenizer_config.json +33 -0
- tokenizer_2/vocab.json +0 -0
- unet/config.json +73 -0
- unet/model.onnx +3 -0
- unet/model.onnx.data +3 -0
- vae_decoder/config.json +32 -0
- vae_decoder/model.onnx +3 -0
- vae_encoder/config.json +32 -0
- vae_encoder/model.onnx +3 -0
    	
        .gitattributes
    CHANGED
    
    | @@ -33,3 +33,9 @@ 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 | 
            +
            controlnet/model.onnx.data filter=lfs diff=lfs merge=lfs -text
         | 
| 37 | 
            +
            Sample.png filter=lfs diff=lfs merge=lfs -text
         | 
| 38 | 
            +
            Sample2.png filter=lfs diff=lfs merge=lfs -text
         | 
| 39 | 
            +
            Sample3.png filter=lfs diff=lfs merge=lfs -text
         | 
| 40 | 
            +
            Sample4.png filter=lfs diff=lfs merge=lfs -text
         | 
| 41 | 
            +
            unet/model.onnx.data filter=lfs diff=lfs merge=lfs -text
         | 
    	
        Icon.png
    ADDED
    
    |   | 
    	
        README.md
    ADDED
    
    | @@ -0,0 +1,26 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            # Latent Consistency Model (LCM)-SDXL  - Onnx Olive DirectML Optimized 
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            ## Original Model
         | 
| 4 | 
            +
            https://huggingface.co/latent-consistency/lcm-sdxl
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            ## C# Inference Demo
         | 
| 7 | 
            +
            https://github.com/saddam213/OnnxStack
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            ```csharp
         | 
| 10 | 
            +
            // Create Pipeline
         | 
| 11 | 
            +
            var pipeline = LatentConsistencyXLPipeline.CreatePipeline("D:\\Models\\LCM-SDXL");
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            // Prompt
         | 
| 14 | 
            +
            var promptOptions = new PromptOptions
         | 
| 15 | 
            +
            {
         | 
| 16 | 
            +
                Prompt = "Visualize a cartoonish scene of a wizard's cluttered study, with spellbooks, potion bottles, and magical artifacts."
         | 
| 17 | 
            +
            };
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            // Run pipeline
         | 
| 20 | 
            +
            var result = await pipeline.GenerateImageAsync(promptOptions);
         | 
| 21 | 
            +
             | 
| 22 | 
            +
            // Save Image Result
         | 
| 23 | 
            +
            await result.SaveAsync("Result.png");
         | 
| 24 | 
            +
            ```
         | 
| 25 | 
            +
            ## Inference Result
         | 
| 26 | 
            +
            
         | 
    	
        Sample.png
    ADDED
    
    |   | 
| Git LFS Details
 | 
    	
        Sample2.png
    ADDED
    
    |   | 
| Git LFS Details
 | 
    	
        Sample3.png
    ADDED
    
    |   | 
| Git LFS Details
 | 
    	
        Sample4.png
    ADDED
    
    |   | 
| Git LFS Details
 | 
    	
        controlnet/config.json
    ADDED
    
    | @@ -0,0 +1,73 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
              "_class_name": "UNet2DConditionModel",
         | 
| 3 | 
            +
              "_diffusers_version": "0.23.0.dev0",
         | 
| 4 | 
            +
              "_name_or_path": "/home/patrick/lcm-sdxl-base-1.0",
         | 
| 5 | 
            +
              "act_fn": "silu",
         | 
| 6 | 
            +
              "addition_embed_type": "text_time",
         | 
| 7 | 
            +
              "addition_embed_type_num_heads": 64,
         | 
| 8 | 
            +
              "addition_time_embed_dim": 256,
         | 
| 9 | 
            +
              "attention_head_dim": [
         | 
| 10 | 
            +
                5,
         | 
| 11 | 
            +
                10,
         | 
| 12 | 
            +
                20
         | 
| 13 | 
            +
              ],
         | 
| 14 | 
            +
              "attention_type": "default",
         | 
| 15 | 
            +
              "block_out_channels": [
         | 
| 16 | 
            +
                320,
         | 
| 17 | 
            +
                640,
         | 
| 18 | 
            +
                1280
         | 
| 19 | 
            +
              ],
         | 
| 20 | 
            +
              "center_input_sample": false,
         | 
| 21 | 
            +
              "class_embed_type": null,
         | 
| 22 | 
            +
              "class_embeddings_concat": false,
         | 
| 23 | 
            +
              "conv_in_kernel": 3,
         | 
| 24 | 
            +
              "conv_out_kernel": 3,
         | 
| 25 | 
            +
              "cross_attention_dim": 2048,
         | 
| 26 | 
            +
              "cross_attention_norm": null,
         | 
| 27 | 
            +
              "down_block_types": [
         | 
| 28 | 
            +
                "DownBlock2D",
         | 
| 29 | 
            +
                "CrossAttnDownBlock2D",
         | 
| 30 | 
            +
                "CrossAttnDownBlock2D"
         | 
| 31 | 
            +
              ],
         | 
| 32 | 
            +
              "downsample_padding": 1,
         | 
| 33 | 
            +
              "dropout": 0.0,
         | 
| 34 | 
            +
              "dual_cross_attention": false,
         | 
| 35 | 
            +
              "encoder_hid_dim": null,
         | 
| 36 | 
            +
              "encoder_hid_dim_type": null,
         | 
| 37 | 
            +
              "flip_sin_to_cos": true,
         | 
| 38 | 
            +
              "freq_shift": 0,
         | 
| 39 | 
            +
              "in_channels": 4,
         | 
| 40 | 
            +
              "layers_per_block": 2,
         | 
| 41 | 
            +
              "mid_block_only_cross_attention": null,
         | 
| 42 | 
            +
              "mid_block_scale_factor": 1,
         | 
| 43 | 
            +
              "mid_block_type": "UNetMidBlock2DCrossAttn",
         | 
| 44 | 
            +
              "norm_eps": 1e-05,
         | 
| 45 | 
            +
              "norm_num_groups": 32,
         | 
| 46 | 
            +
              "num_attention_heads": null,
         | 
| 47 | 
            +
              "num_class_embeds": null,
         | 
| 48 | 
            +
              "only_cross_attention": false,
         | 
| 49 | 
            +
              "out_channels": 4,
         | 
| 50 | 
            +
              "projection_class_embeddings_input_dim": 2816,
         | 
| 51 | 
            +
              "resnet_out_scale_factor": 1.0,
         | 
| 52 | 
            +
              "resnet_skip_time_act": false,
         | 
| 53 | 
            +
              "resnet_time_scale_shift": "default",
         | 
| 54 | 
            +
              "reverse_transformer_layers_per_block": null,
         | 
| 55 | 
            +
              "sample_size": 128,
         | 
| 56 | 
            +
              "time_cond_proj_dim": 256,
         | 
| 57 | 
            +
              "time_embedding_act_fn": null,
         | 
| 58 | 
            +
              "time_embedding_dim": null,
         | 
| 59 | 
            +
              "time_embedding_type": "positional",
         | 
| 60 | 
            +
              "timestep_post_act": null,
         | 
| 61 | 
            +
              "transformer_layers_per_block": [
         | 
| 62 | 
            +
                1,
         | 
| 63 | 
            +
                2,
         | 
| 64 | 
            +
                10
         | 
| 65 | 
            +
              ],
         | 
| 66 | 
            +
              "up_block_types": [
         | 
| 67 | 
            +
                "CrossAttnUpBlock2D",
         | 
| 68 | 
            +
                "CrossAttnUpBlock2D",
         | 
| 69 | 
            +
                "UpBlock2D"
         | 
| 70 | 
            +
              ],
         | 
| 71 | 
            +
              "upcast_attention": null,
         | 
| 72 | 
            +
              "use_linear_projection": true
         | 
| 73 | 
            +
            }
         | 
    	
        controlnet/model.onnx
    ADDED
    
    | @@ -0,0 +1,3 @@ | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            version https://git-lfs.github.com/spec/v1
         | 
| 2 | 
            +
            oid sha256:47707d5113f07f6f570386bf30af8e1fc452c261c38d3d24583d907ca90c57d9
         | 
| 3 | 
            +
            size 1244445
         | 
    	
        controlnet/model.onnx.data
    ADDED
    
    | @@ -0,0 +1,3 @@ | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            version https://git-lfs.github.com/spec/v1
         | 
| 2 | 
            +
            oid sha256:029f37891a2722e9e57eeb1c0747e8517086e36ffec4d70f441565847df4cd7b
         | 
| 3 | 
            +
            size 5134903040
         | 
    	
        model_index.json
    ADDED
    
    | @@ -0,0 +1,34 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
              "_class_name": "StableDiffusionXLPipeline",
         | 
| 3 | 
            +
              "_diffusers_version": "0.19.0.dev0",
         | 
| 4 | 
            +
              "force_zeros_for_empty_prompt": true,
         | 
| 5 | 
            +
              "add_watermarker": null,
         | 
| 6 | 
            +
              "scheduler": [
         | 
| 7 | 
            +
                "diffusers",
         | 
| 8 | 
            +
                "EulerDiscreteScheduler"
         | 
| 9 | 
            +
              ],
         | 
| 10 | 
            +
              "text_encoder": [
         | 
| 11 | 
            +
                "transformers",
         | 
| 12 | 
            +
                "CLIPTextModel"
         | 
| 13 | 
            +
              ],
         | 
| 14 | 
            +
              "text_encoder_2": [
         | 
| 15 | 
            +
                "transformers",
         | 
| 16 | 
            +
                "CLIPTextModelWithProjection"
         | 
| 17 | 
            +
              ],
         | 
| 18 | 
            +
              "tokenizer": [
         | 
| 19 | 
            +
                "transformers",
         | 
| 20 | 
            +
                "CLIPTokenizer"
         | 
| 21 | 
            +
              ],
         | 
| 22 | 
            +
              "tokenizer_2": [
         | 
| 23 | 
            +
                "transformers",
         | 
| 24 | 
            +
                "CLIPTokenizer"
         | 
| 25 | 
            +
              ],
         | 
| 26 | 
            +
              "unet": [
         | 
| 27 | 
            +
                "diffusers",
         | 
| 28 | 
            +
                "UNet2DConditionModel"
         | 
| 29 | 
            +
              ],
         | 
| 30 | 
            +
              "vae": [
         | 
| 31 | 
            +
                "diffusers",
         | 
| 32 | 
            +
                "AutoencoderKL"
         | 
| 33 | 
            +
              ]
         | 
| 34 | 
            +
            }
         | 
    	
        scheduler/scheduler_config.json
    ADDED
    
    | @@ -0,0 +1,18 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
              "_class_name": "EulerDiscreteScheduler",
         | 
| 3 | 
            +
              "_diffusers_version": "0.19.0.dev0",
         | 
| 4 | 
            +
              "beta_end": 0.012,
         | 
| 5 | 
            +
              "beta_schedule": "scaled_linear",
         | 
| 6 | 
            +
              "beta_start": 0.00085,
         | 
| 7 | 
            +
              "clip_sample": false,
         | 
| 8 | 
            +
              "interpolation_type": "linear",
         | 
| 9 | 
            +
              "num_train_timesteps": 1000,
         | 
| 10 | 
            +
              "prediction_type": "epsilon",
         | 
| 11 | 
            +
              "sample_max_value": 1.0,
         | 
| 12 | 
            +
              "set_alpha_to_one": false,
         | 
| 13 | 
            +
              "skip_prk_steps": true,
         | 
| 14 | 
            +
              "steps_offset": 1,
         | 
| 15 | 
            +
              "timestep_spacing": "leading",
         | 
| 16 | 
            +
              "trained_betas": null,
         | 
| 17 | 
            +
              "use_karras_sigmas": false
         | 
| 18 | 
            +
            }
         | 
    	
        text_encoder/config.json
    ADDED
    
    | @@ -0,0 +1,24 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
              "architectures": [
         | 
| 3 | 
            +
                "CLIPTextModel"
         | 
| 4 | 
            +
              ],
         | 
| 5 | 
            +
              "attention_dropout": 0.0,
         | 
| 6 | 
            +
              "bos_token_id": 0,
         | 
| 7 | 
            +
              "dropout": 0.0,
         | 
| 8 | 
            +
              "eos_token_id": 2,
         | 
| 9 | 
            +
              "hidden_act": "quick_gelu",
         | 
| 10 | 
            +
              "hidden_size": 768,
         | 
| 11 | 
            +
              "initializer_factor": 1.0,
         | 
| 12 | 
            +
              "initializer_range": 0.02,
         | 
| 13 | 
            +
              "intermediate_size": 3072,
         | 
| 14 | 
            +
              "layer_norm_eps": 1e-05,
         | 
| 15 | 
            +
              "max_position_embeddings": 77,
         | 
| 16 | 
            +
              "model_type": "clip_text_model",
         | 
| 17 | 
            +
              "num_attention_heads": 12,
         | 
| 18 | 
            +
              "num_hidden_layers": 12,
         | 
| 19 | 
            +
              "pad_token_id": 1,
         | 
| 20 | 
            +
              "projection_dim": 768,
         | 
| 21 | 
            +
              "torch_dtype": "float16",
         | 
| 22 | 
            +
              "transformers_version": "4.32.0.dev0",
         | 
| 23 | 
            +
              "vocab_size": 49408
         | 
| 24 | 
            +
            }
         | 
    	
        text_encoder/model.onnx
    ADDED
    
    | @@ -0,0 +1,3 @@ | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            version https://git-lfs.github.com/spec/v1
         | 
| 2 | 
            +
            oid sha256:111dc5c3c7496047db7e652d82773bed496c2fb08eb94455fcef5df329cfd3da
         | 
| 3 | 
            +
            size 246481009
         | 
    	
        text_encoder_2/config.json
    ADDED
    
    | @@ -0,0 +1,24 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
              "architectures": [
         | 
| 3 | 
            +
                "CLIPTextModelWithProjection"
         | 
| 4 | 
            +
              ],
         | 
| 5 | 
            +
              "attention_dropout": 0.0,
         | 
| 6 | 
            +
              "bos_token_id": 0,
         | 
| 7 | 
            +
              "dropout": 0.0,
         | 
| 8 | 
            +
              "eos_token_id": 2,
         | 
| 9 | 
            +
              "hidden_act": "gelu",
         | 
| 10 | 
            +
              "hidden_size": 1280,
         | 
| 11 | 
            +
              "initializer_factor": 1.0,
         | 
| 12 | 
            +
              "initializer_range": 0.02,
         | 
| 13 | 
            +
              "intermediate_size": 5120,
         | 
| 14 | 
            +
              "layer_norm_eps": 1e-05,
         | 
| 15 | 
            +
              "max_position_embeddings": 77,
         | 
| 16 | 
            +
              "model_type": "clip_text_model",
         | 
| 17 | 
            +
              "num_attention_heads": 20,
         | 
| 18 | 
            +
              "num_hidden_layers": 32,
         | 
| 19 | 
            +
              "pad_token_id": 1,
         | 
| 20 | 
            +
              "projection_dim": 1280,
         | 
| 21 | 
            +
              "torch_dtype": "float16",
         | 
| 22 | 
            +
              "transformers_version": "4.32.0.dev0",
         | 
| 23 | 
            +
              "vocab_size": 49408
         | 
| 24 | 
            +
            }
         | 
    	
        text_encoder_2/model.onnx
    ADDED
    
    | @@ -0,0 +1,3 @@ | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            version https://git-lfs.github.com/spec/v1
         | 
| 2 | 
            +
            oid sha256:91d9d5fa8aba5a29e9585b1b9a20a6575f2b57554be3d7204157bce95359e926
         | 
| 3 | 
            +
            size 1390289338
         | 
    	
        tokenizer/merges.txt
    ADDED
    
    | The diff for this file is too large to render. 
		See raw diff | 
|  | 
    	
        tokenizer/model.onnx
    ADDED
    
    | @@ -0,0 +1,3 @@ | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            version https://git-lfs.github.com/spec/v1
         | 
| 2 | 
            +
            oid sha256:63b7618c80a5bd8d1ee6fe92b28e7b72dde7aaa522963ff083f284501a9ec7df
         | 
| 3 | 
            +
            size 1683233
         | 
    	
        tokenizer/special_tokens_map.json
    ADDED
    
    | @@ -0,0 +1,24 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 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": true,
         | 
| 13 | 
            +
                "rstrip": false,
         | 
| 14 | 
            +
                "single_word": false
         | 
| 15 | 
            +
              },
         | 
| 16 | 
            +
              "pad_token": "<|endoftext|>",
         | 
| 17 | 
            +
              "unk_token": {
         | 
| 18 | 
            +
                "content": "<|endoftext|>",
         | 
| 19 | 
            +
                "lstrip": false,
         | 
| 20 | 
            +
                "normalized": true,
         | 
| 21 | 
            +
                "rstrip": false,
         | 
| 22 | 
            +
                "single_word": false
         | 
| 23 | 
            +
              }
         | 
| 24 | 
            +
            }
         | 
    	
        tokenizer/tokenizer_config.json
    ADDED
    
    | @@ -0,0 +1,33 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
              "add_prefix_space": false,
         | 
| 3 | 
            +
              "bos_token": {
         | 
| 4 | 
            +
                "__type": "AddedToken",
         | 
| 5 | 
            +
                "content": "<|startoftext|>",
         | 
| 6 | 
            +
                "lstrip": false,
         | 
| 7 | 
            +
                "normalized": true,
         | 
| 8 | 
            +
                "rstrip": false,
         | 
| 9 | 
            +
                "single_word": false
         | 
| 10 | 
            +
              },
         | 
| 11 | 
            +
              "clean_up_tokenization_spaces": true,
         | 
| 12 | 
            +
              "do_lower_case": true,
         | 
| 13 | 
            +
              "eos_token": {
         | 
| 14 | 
            +
                "__type": "AddedToken",
         | 
| 15 | 
            +
                "content": "<|endoftext|>",
         | 
| 16 | 
            +
                "lstrip": false,
         | 
| 17 | 
            +
                "normalized": true,
         | 
| 18 | 
            +
                "rstrip": false,
         | 
| 19 | 
            +
                "single_word": false
         | 
| 20 | 
            +
              },
         | 
| 21 | 
            +
              "errors": "replace",
         | 
| 22 | 
            +
              "model_max_length": 77,
         | 
| 23 | 
            +
              "pad_token": "<|endoftext|>",
         | 
| 24 | 
            +
              "tokenizer_class": "CLIPTokenizer",
         | 
| 25 | 
            +
              "unk_token": {
         | 
| 26 | 
            +
                "__type": "AddedToken",
         | 
| 27 | 
            +
                "content": "<|endoftext|>",
         | 
| 28 | 
            +
                "lstrip": false,
         | 
| 29 | 
            +
                "normalized": true,
         | 
| 30 | 
            +
                "rstrip": false,
         | 
| 31 | 
            +
                "single_word": false
         | 
| 32 | 
            +
              }
         | 
| 33 | 
            +
            }
         | 
    	
        tokenizer/vocab.json
    ADDED
    
    | The diff for this file is too large to render. 
		See raw diff | 
|  | 
    	
        tokenizer_2/merges.txt
    ADDED
    
    | The diff for this file is too large to render. 
		See raw diff | 
|  | 
    	
        tokenizer_2/model.onnx
    ADDED
    
    | @@ -0,0 +1,3 @@ | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            version https://git-lfs.github.com/spec/v1
         | 
| 2 | 
            +
            oid sha256:63b7618c80a5bd8d1ee6fe92b28e7b72dde7aaa522963ff083f284501a9ec7df
         | 
| 3 | 
            +
            size 1683233
         | 
    	
        tokenizer_2/special_tokens_map.json
    ADDED
    
    | @@ -0,0 +1,24 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 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": true,
         | 
| 13 | 
            +
                "rstrip": false,
         | 
| 14 | 
            +
                "single_word": false
         | 
| 15 | 
            +
              },
         | 
| 16 | 
            +
              "pad_token": "!",
         | 
| 17 | 
            +
              "unk_token": {
         | 
| 18 | 
            +
                "content": "<|endoftext|>",
         | 
| 19 | 
            +
                "lstrip": false,
         | 
| 20 | 
            +
                "normalized": true,
         | 
| 21 | 
            +
                "rstrip": false,
         | 
| 22 | 
            +
                "single_word": false
         | 
| 23 | 
            +
              }
         | 
| 24 | 
            +
            }
         | 
    	
        tokenizer_2/tokenizer_config.json
    ADDED
    
    | @@ -0,0 +1,33 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
              "add_prefix_space": false,
         | 
| 3 | 
            +
              "bos_token": {
         | 
| 4 | 
            +
                "__type": "AddedToken",
         | 
| 5 | 
            +
                "content": "<|startoftext|>",
         | 
| 6 | 
            +
                "lstrip": false,
         | 
| 7 | 
            +
                "normalized": true,
         | 
| 8 | 
            +
                "rstrip": false,
         | 
| 9 | 
            +
                "single_word": false
         | 
| 10 | 
            +
              },
         | 
| 11 | 
            +
              "clean_up_tokenization_spaces": true,
         | 
| 12 | 
            +
              "do_lower_case": true,
         | 
| 13 | 
            +
              "eos_token": {
         | 
| 14 | 
            +
                "__type": "AddedToken",
         | 
| 15 | 
            +
                "content": "<|endoftext|>",
         | 
| 16 | 
            +
                "lstrip": false,
         | 
| 17 | 
            +
                "normalized": true,
         | 
| 18 | 
            +
                "rstrip": false,
         | 
| 19 | 
            +
                "single_word": false
         | 
| 20 | 
            +
              },
         | 
| 21 | 
            +
              "errors": "replace",
         | 
| 22 | 
            +
              "model_max_length": 77,
         | 
| 23 | 
            +
              "pad_token": "!",
         | 
| 24 | 
            +
              "tokenizer_class": "CLIPTokenizer",
         | 
| 25 | 
            +
              "unk_token": {
         | 
| 26 | 
            +
                "__type": "AddedToken",
         | 
| 27 | 
            +
                "content": "<|endoftext|>",
         | 
| 28 | 
            +
                "lstrip": false,
         | 
| 29 | 
            +
                "normalized": true,
         | 
| 30 | 
            +
                "rstrip": false,
         | 
| 31 | 
            +
                "single_word": false
         | 
| 32 | 
            +
              }
         | 
| 33 | 
            +
            }
         | 
    	
        tokenizer_2/vocab.json
    ADDED
    
    | The diff for this file is too large to render. 
		See raw diff | 
|  | 
    	
        unet/config.json
    ADDED
    
    | @@ -0,0 +1,73 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
              "_class_name": "UNet2DConditionModel",
         | 
| 3 | 
            +
              "_diffusers_version": "0.23.0.dev0",
         | 
| 4 | 
            +
              "_name_or_path": "/home/patrick/lcm-sdxl-base-1.0",
         | 
| 5 | 
            +
              "act_fn": "silu",
         | 
| 6 | 
            +
              "addition_embed_type": "text_time",
         | 
| 7 | 
            +
              "addition_embed_type_num_heads": 64,
         | 
| 8 | 
            +
              "addition_time_embed_dim": 256,
         | 
| 9 | 
            +
              "attention_head_dim": [
         | 
| 10 | 
            +
                5,
         | 
| 11 | 
            +
                10,
         | 
| 12 | 
            +
                20
         | 
| 13 | 
            +
              ],
         | 
| 14 | 
            +
              "attention_type": "default",
         | 
| 15 | 
            +
              "block_out_channels": [
         | 
| 16 | 
            +
                320,
         | 
| 17 | 
            +
                640,
         | 
| 18 | 
            +
                1280
         | 
| 19 | 
            +
              ],
         | 
| 20 | 
            +
              "center_input_sample": false,
         | 
| 21 | 
            +
              "class_embed_type": null,
         | 
| 22 | 
            +
              "class_embeddings_concat": false,
         | 
| 23 | 
            +
              "conv_in_kernel": 3,
         | 
| 24 | 
            +
              "conv_out_kernel": 3,
         | 
| 25 | 
            +
              "cross_attention_dim": 2048,
         | 
| 26 | 
            +
              "cross_attention_norm": null,
         | 
| 27 | 
            +
              "down_block_types": [
         | 
| 28 | 
            +
                "DownBlock2D",
         | 
| 29 | 
            +
                "CrossAttnDownBlock2D",
         | 
| 30 | 
            +
                "CrossAttnDownBlock2D"
         | 
| 31 | 
            +
              ],
         | 
| 32 | 
            +
              "downsample_padding": 1,
         | 
| 33 | 
            +
              "dropout": 0.0,
         | 
| 34 | 
            +
              "dual_cross_attention": false,
         | 
| 35 | 
            +
              "encoder_hid_dim": null,
         | 
| 36 | 
            +
              "encoder_hid_dim_type": null,
         | 
| 37 | 
            +
              "flip_sin_to_cos": true,
         | 
| 38 | 
            +
              "freq_shift": 0,
         | 
| 39 | 
            +
              "in_channels": 4,
         | 
| 40 | 
            +
              "layers_per_block": 2,
         | 
| 41 | 
            +
              "mid_block_only_cross_attention": null,
         | 
| 42 | 
            +
              "mid_block_scale_factor": 1,
         | 
| 43 | 
            +
              "mid_block_type": "UNetMidBlock2DCrossAttn",
         | 
| 44 | 
            +
              "norm_eps": 1e-05,
         | 
| 45 | 
            +
              "norm_num_groups": 32,
         | 
| 46 | 
            +
              "num_attention_heads": null,
         | 
| 47 | 
            +
              "num_class_embeds": null,
         | 
| 48 | 
            +
              "only_cross_attention": false,
         | 
| 49 | 
            +
              "out_channels": 4,
         | 
| 50 | 
            +
              "projection_class_embeddings_input_dim": 2816,
         | 
| 51 | 
            +
              "resnet_out_scale_factor": 1.0,
         | 
| 52 | 
            +
              "resnet_skip_time_act": false,
         | 
| 53 | 
            +
              "resnet_time_scale_shift": "default",
         | 
| 54 | 
            +
              "reverse_transformer_layers_per_block": null,
         | 
| 55 | 
            +
              "sample_size": 128,
         | 
| 56 | 
            +
              "time_cond_proj_dim": 256,
         | 
| 57 | 
            +
              "time_embedding_act_fn": null,
         | 
| 58 | 
            +
              "time_embedding_dim": null,
         | 
| 59 | 
            +
              "time_embedding_type": "positional",
         | 
| 60 | 
            +
              "timestep_post_act": null,
         | 
| 61 | 
            +
              "transformer_layers_per_block": [
         | 
| 62 | 
            +
                1,
         | 
| 63 | 
            +
                2,
         | 
| 64 | 
            +
                10
         | 
| 65 | 
            +
              ],
         | 
| 66 | 
            +
              "up_block_types": [
         | 
| 67 | 
            +
                "CrossAttnUpBlock2D",
         | 
| 68 | 
            +
                "CrossAttnUpBlock2D",
         | 
| 69 | 
            +
                "UpBlock2D"
         | 
| 70 | 
            +
              ],
         | 
| 71 | 
            +
              "upcast_attention": null,
         | 
| 72 | 
            +
              "use_linear_projection": true
         | 
| 73 | 
            +
            }
         | 
    	
        unet/model.onnx
    ADDED
    
    | @@ -0,0 +1,3 @@ | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            version https://git-lfs.github.com/spec/v1
         | 
| 2 | 
            +
            oid sha256:3b2d6cfb44a373afbfa19b276bd386e080e6fe3b20e8c53d51c924903f6bad8e
         | 
| 3 | 
            +
            size 1242150
         | 
    	
        unet/model.onnx.data
    ADDED
    
    | @@ -0,0 +1,3 @@ | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            version https://git-lfs.github.com/spec/v1
         | 
| 2 | 
            +
            oid sha256:029f37891a2722e9e57eeb1c0747e8517086e36ffec4d70f441565847df4cd7b
         | 
| 3 | 
            +
            size 5134903040
         | 
    	
        vae_decoder/config.json
    ADDED
    
    | @@ -0,0 +1,32 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
              "_class_name": "AutoencoderKL",
         | 
| 3 | 
            +
              "_diffusers_version": "0.20.0.dev0",
         | 
| 4 | 
            +
              "_name_or_path": "../sdxl-vae/",
         | 
| 5 | 
            +
              "act_fn": "silu",
         | 
| 6 | 
            +
              "block_out_channels": [
         | 
| 7 | 
            +
                128,
         | 
| 8 | 
            +
                256,
         | 
| 9 | 
            +
                512,
         | 
| 10 | 
            +
                512
         | 
| 11 | 
            +
              ],
         | 
| 12 | 
            +
              "down_block_types": [
         | 
| 13 | 
            +
                "DownEncoderBlock2D",
         | 
| 14 | 
            +
                "DownEncoderBlock2D",
         | 
| 15 | 
            +
                "DownEncoderBlock2D",
         | 
| 16 | 
            +
                "DownEncoderBlock2D"
         | 
| 17 | 
            +
              ],
         | 
| 18 | 
            +
              "force_upcast": true,
         | 
| 19 | 
            +
              "in_channels": 3,
         | 
| 20 | 
            +
              "latent_channels": 4,
         | 
| 21 | 
            +
              "layers_per_block": 2,
         | 
| 22 | 
            +
              "norm_num_groups": 32,
         | 
| 23 | 
            +
              "out_channels": 3,
         | 
| 24 | 
            +
              "sample_size": 1024,
         | 
| 25 | 
            +
              "scaling_factor": 0.13025,
         | 
| 26 | 
            +
              "up_block_types": [
         | 
| 27 | 
            +
                "UpDecoderBlock2D",
         | 
| 28 | 
            +
                "UpDecoderBlock2D",
         | 
| 29 | 
            +
                "UpDecoderBlock2D",
         | 
| 30 | 
            +
                "UpDecoderBlock2D"
         | 
| 31 | 
            +
              ]
         | 
| 32 | 
            +
            }
         | 
    	
        vae_decoder/model.onnx
    ADDED
    
    | @@ -0,0 +1,3 @@ | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            version https://git-lfs.github.com/spec/v1
         | 
| 2 | 
            +
            oid sha256:97c3b5b7642de95f51650f3c59d202d1e80ad10c44252c21ab237ff020a2e8d8
         | 
| 3 | 
            +
            size 99039207
         | 
    	
        vae_encoder/config.json
    ADDED
    
    | @@ -0,0 +1,32 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
              "_class_name": "AutoencoderKL",
         | 
| 3 | 
            +
              "_diffusers_version": "0.20.0.dev0",
         | 
| 4 | 
            +
              "_name_or_path": "../sdxl-vae/",
         | 
| 5 | 
            +
              "act_fn": "silu",
         | 
| 6 | 
            +
              "block_out_channels": [
         | 
| 7 | 
            +
                128,
         | 
| 8 | 
            +
                256,
         | 
| 9 | 
            +
                512,
         | 
| 10 | 
            +
                512
         | 
| 11 | 
            +
              ],
         | 
| 12 | 
            +
              "down_block_types": [
         | 
| 13 | 
            +
                "DownEncoderBlock2D",
         | 
| 14 | 
            +
                "DownEncoderBlock2D",
         | 
| 15 | 
            +
                "DownEncoderBlock2D",
         | 
| 16 | 
            +
                "DownEncoderBlock2D"
         | 
| 17 | 
            +
              ],
         | 
| 18 | 
            +
              "force_upcast": true,
         | 
| 19 | 
            +
              "in_channels": 3,
         | 
| 20 | 
            +
              "latent_channels": 4,
         | 
| 21 | 
            +
              "layers_per_block": 2,
         | 
| 22 | 
            +
              "norm_num_groups": 32,
         | 
| 23 | 
            +
              "out_channels": 3,
         | 
| 24 | 
            +
              "sample_size": 1024,
         | 
| 25 | 
            +
              "scaling_factor": 0.13025,
         | 
| 26 | 
            +
              "up_block_types": [
         | 
| 27 | 
            +
                "UpDecoderBlock2D",
         | 
| 28 | 
            +
                "UpDecoderBlock2D",
         | 
| 29 | 
            +
                "UpDecoderBlock2D",
         | 
| 30 | 
            +
                "UpDecoderBlock2D"
         | 
| 31 | 
            +
              ]
         | 
| 32 | 
            +
            }
         | 
    	
        vae_encoder/model.onnx
    ADDED
    
    | @@ -0,0 +1,3 @@ | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            version https://git-lfs.github.com/spec/v1
         | 
| 2 | 
            +
            oid sha256:4bc1a62d3f6689ad6441c1867343ce1986b252edb72f45c083a8740bfd6e2a91
         | 
| 3 | 
            +
            size 68391734
         | 

