Remove unnecessary lines.
This commit is contained in:
		
							parent
							
								
									e313420b28
								
							
						
					
					
						commit
						b3981c99a9
					
				@ -76,7 +76,6 @@ class StableDiffusion:
 | 
				
			|||||||
            cache_path,
 | 
					            cache_path,
 | 
				
			||||||
            scheduler=scheduler,
 | 
					            scheduler=scheduler,
 | 
				
			||||||
            custom_pipeline="lpw_stable_diffusion",
 | 
					            custom_pipeline="lpw_stable_diffusion",
 | 
				
			||||||
            safety_checker=None,
 | 
					 | 
				
			||||||
        ).to("cuda")
 | 
					        ).to("cuda")
 | 
				
			||||||
        self.pipe.enable_xformers_memory_efficient_attention()
 | 
					        self.pipe.enable_xformers_memory_efficient_attention()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -108,7 +107,6 @@ class StableDiffusion:
 | 
				
			|||||||
                    max_embeddings_multiples=max_embeddings_multiples,
 | 
					                    max_embeddings_multiples=max_embeddings_multiples,
 | 
				
			||||||
                ).images
 | 
					                ).images
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Convert to PNG bytes
 | 
					 | 
				
			||||||
        image_output = []
 | 
					        image_output = []
 | 
				
			||||||
        for image in images:
 | 
					        for image in images:
 | 
				
			||||||
            with io.BytesIO() as buf:
 | 
					            with io.BytesIO() as buf:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user