Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Square root steps
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -424,7 +424,7 @@ def restore_on_gpu( 
     | 
|
| 424 | 
         
             
                    print("edm_steps: " + str(edm_steps))
         
     | 
| 425 | 
         
             
                    print("num_samples: " + str(num_samples))
         
     | 
| 426 | 
         
             
                    print("downscale: " + str(downscale))
         
     | 
| 427 | 
         
            -
                    print("Estimated minutes: " + f'{((result_width * result_height * input_width * input_height * edm_steps * (num_samples**(1/2)))**(1/ 
     | 
| 428 | 
         
             
                except Exception as e:
         
     | 
| 429 | 
         
             
                    print('Exception of Estimation')
         
     | 
| 430 | 
         | 
| 
         @@ -489,7 +489,7 @@ title_html = """ 
     | 
|
| 489 | 
         
             
                The content added by SUPIR is <b><u>imagination, not real-world information</u></b>.
         
     | 
| 490 | 
         
             
                SUPIR is for beauty and illustration only.
         
     | 
| 491 | 
         
             
                Most of the processes only last few minutes.
         
     | 
| 492 | 
         
            -
                 
     | 
| 493 | 
         
             
                If you want to upscale AI-generated images, be noticed that <i>Stable Diffusion 3 Medium</i> spaces can directly generate 1536x1536 images.
         
     | 
| 494 | 
         
             
                Please leave a <a href="https://huggingface.co/spaces/Fabrice-TIERCELIN/SUPIR/discussions/new">message in discussion</a> if you encounter issues.
         
     | 
| 495 | 
         | 
| 
         | 
|
| 424 | 
         
             
                    print("edm_steps: " + str(edm_steps))
         
     | 
| 425 | 
         
             
                    print("num_samples: " + str(num_samples))
         
     | 
| 426 | 
         
             
                    print("downscale: " + str(downscale))
         
     | 
| 427 | 
         
            +
                    print("Estimated minutes: " + f'{((result_width * result_height * input_width * input_height * (edm_steps**(1/2)) * (num_samples**(1/2)))**(1/2.5)) / 15000:,}')
         
     | 
| 428 | 
         
             
                except Exception as e:
         
     | 
| 429 | 
         
             
                    print('Exception of Estimation')
         
     | 
| 430 | 
         | 
| 
         | 
|
| 489 | 
         
             
                The content added by SUPIR is <b><u>imagination, not real-world information</u></b>.
         
     | 
| 490 | 
         
             
                SUPIR is for beauty and illustration only.
         
     | 
| 491 | 
         
             
                Most of the processes only last few minutes.
         
     | 
| 492 | 
         
            +
                The process will be aborted if it lasts more than 10 min.
         
     | 
| 493 | 
         
             
                If you want to upscale AI-generated images, be noticed that <i>Stable Diffusion 3 Medium</i> spaces can directly generate 1536x1536 images.
         
     | 
| 494 | 
         
             
                Please leave a <a href="https://huggingface.co/spaces/Fabrice-TIERCELIN/SUPIR/discussions/new">message in discussion</a> if you encounter issues.
         
     | 
| 495 | 
         |