Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	int 8 model
Browse files- constants.py +1 -1
- frontend/webui/text_to_image_ui.py +5 -4
    	
        constants.py
    CHANGED
    
    | @@ -2,7 +2,7 @@ from os import environ | |
| 2 |  | 
| 3 | 
             
            APP_VERSION = "v1.0.0 beta 7"
         | 
| 4 | 
             
            LCM_DEFAULT_MODEL = "SimianLuo/LCM_Dreamshaper_v7"
         | 
| 5 | 
            -
            LCM_DEFAULT_MODEL_OPENVINO = " | 
| 6 | 
             
            APP_NAME = "FastSD CPU"
         | 
| 7 | 
             
            APP_SETTINGS_FILE = "settings.yaml"
         | 
| 8 | 
             
            RESULTS_DIRECTORY = "results"
         | 
|  | |
| 2 |  | 
| 3 | 
             
            APP_VERSION = "v1.0.0 beta 7"
         | 
| 4 | 
             
            LCM_DEFAULT_MODEL = "SimianLuo/LCM_Dreamshaper_v7"
         | 
| 5 | 
            +
            LCM_DEFAULT_MODEL_OPENVINO = "rupeshs/LCM-dreamshaper-v7-openvino-int8"
         | 
| 6 | 
             
            APP_NAME = "FastSD CPU"
         | 
| 7 | 
             
            APP_SETTINGS_FILE = "settings.yaml"
         | 
| 8 | 
             
            RESULTS_DIRECTORY = "results"
         | 
    	
        frontend/webui/text_to_image_ui.py
    CHANGED
    
    | @@ -88,10 +88,11 @@ def generate_text_to_image( | |
| 88 | 
             
                previous_num_of_images = 1
         | 
| 89 | 
             
                out_images = []
         | 
| 90 | 
             
                for image in images:
         | 
| 91 | 
            -
                     | 
| 92 | 
            -
                    in_image = ImageLoader.load_image(image)
         | 
| 93 | 
            -
                    up_image = upscaler(in_image)
         | 
| 94 | 
            -
                    out_images.append(tensor2img(up_image))
         | 
|  | |
| 95 |  | 
| 96 | 
             
                return out_images
         | 
| 97 |  | 
|  | |
| 88 | 
             
                previous_num_of_images = 1
         | 
| 89 | 
             
                out_images = []
         | 
| 90 | 
             
                for image in images:
         | 
| 91 | 
            +
                    out_images.append(image.resize((768, 768), resample=Image.LANCZOS))
         | 
| 92 | 
            +
                    # in_image = ImageLoader.load_image(image)
         | 
| 93 | 
            +
                    # up_image = upscaler(in_image)
         | 
| 94 | 
            +
                    # out_images.append(tensor2img(up_image))
         | 
| 95 | 
            +
                    # out_images(image)
         | 
| 96 |  | 
| 97 | 
             
                return out_images
         | 
| 98 |  |