Update README.md
Browse files
    	
        README.md
    CHANGED
    
    | 
         @@ -33,7 +33,7 @@ from datasets import Dataset, Features 
     | 
|
| 33 | 
         
             
            from datasets import Image as ImageFeature
         
     | 
| 34 | 
         
             
            from datasets import Value, load_dataset
         
     | 
| 35 | 
         | 
| 36 | 
         
            -
            from diffusers import  
     | 
| 37 | 
         | 
| 38 | 
         | 
| 39 | 
         
             
            def main():
         
     | 
| 
         @@ -50,7 +50,6 @@ def main(): 
     | 
|
| 50 | 
         
             
                t2i_pipe = DiffusionPipeline.from_pretrained(
         
     | 
| 51 | 
         
             
                    "kandinsky-community/kandinsky-2-2-decoder", torch_dtype=torch.float16
         
     | 
| 52 | 
         
             
                )
         
     | 
| 53 | 
         
            -
                t2i_pipe.scheduler = DDIMScheduler.from_config(t2i_pipe.scheduler.config)
         
     | 
| 54 | 
         
             
                t2i_pipe.to("cuda")
         
     | 
| 55 | 
         
             
                t2i_pipe.set_progress_bar_config(disable=True)
         
     | 
| 56 | 
         | 
| 
         | 
|
| 33 | 
         
             
            from datasets import Image as ImageFeature
         
     | 
| 34 | 
         
             
            from datasets import Value, load_dataset
         
     | 
| 35 | 
         | 
| 36 | 
         
            +
            from diffusers import DiffusionPipeline
         
     | 
| 37 | 
         | 
| 38 | 
         | 
| 39 | 
         
             
            def main():
         
     | 
| 
         | 
|
| 50 | 
         
             
                t2i_pipe = DiffusionPipeline.from_pretrained(
         
     | 
| 51 | 
         
             
                    "kandinsky-community/kandinsky-2-2-decoder", torch_dtype=torch.float16
         
     | 
| 52 | 
         
             
                )
         
     | 
| 
         | 
|
| 53 | 
         
             
                t2i_pipe.to("cuda")
         
     | 
| 54 | 
         
             
                t2i_pipe.set_progress_bar_config(disable=True)
         
     | 
| 55 | 
         |