mirror of
				https://github.com/k4yt3x/video2x.git
				synced 2025-10-31 12:50:59 +01:00 
			
		
		
		
	Quick fix for special case no-upscale 1.0 upscale
This commit is contained in:
		
							parent
							
								
									b37acfa31d
								
							
						
					
					
						commit
						c2f1e43656
					
				| @ -625,6 +625,10 @@ class Upscaler: | ||||
|                     remaining_scaling_ratio = math.ceil(output_scale) | ||||
|                     self.scaling_jobs = [] | ||||
|                      | ||||
|                     # special case for 1.0 upscale ratio  | ||||
|                     if remaining_scaling_ratio == 1: | ||||
|                         self.scaling_jobs.append(1) | ||||
|                     else: | ||||
|                         while remaining_scaling_ratio > 1: | ||||
|                             for ratio in supported_scaling_ratios: | ||||
|                                 if ratio >= remaining_scaling_ratio: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user