File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed 
src/diffusers/pipelines/controlnet Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ def retrieve_latents(
8787        import torch 
8888        import numpy as np 
8989        from PIL import Image 
90+ 
9091        prompt = "A cat" 
9192        # download an image 
9293        image = load_image( 
@@ -99,9 +100,7 @@ def retrieve_latents(
99100        controlnet = ControlNetUnionModel.from_pretrained( 
100101            "brad-twinkl/controlnet-union-sdxl-1.0-promax", torch_dtype=torch.float16 
101102        ) 
102-         vae = AutoencoderKL.from_pretrained( 
103-             "madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16 
104-         ) 
103+         vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16) 
105104        pipe = StableDiffusionXLControlNetUnionInpaintPipeline.from_pretrained( 
106105            "stabilityai/stable-diffusion-xl-base-1.0", 
107106            controlnet=controlnet, 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments