mirror of
				https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
				synced 2025-10-31 01:54:44 +00:00 
			
		
		
		
	Fix BSRGAN variable not found.
This commit is contained in:
		
							parent
							
								
									99aa132df7
								
							
						
					
					
						commit
						19eb1467f1
					
				| @ -67,9 +67,8 @@ class UpscalerBSRGAN(modules.upscaler.Upscaler): | |||||||
|         else: |         else: | ||||||
|             filename = path |             filename = path | ||||||
|         if not os.path.exists(filename) or filename is None: |         if not os.path.exists(filename) or filename is None: | ||||||
|             print("Unable to load %s from %s" % (self.model_dir, filename)) |             print("Unable to load %s from %s" % (self.model_path, filename)) | ||||||
|             return None |             return None | ||||||
|         print("Loading %s from %s" % (self.model_dir, filename)) |  | ||||||
|         model = RRDBNet(in_nc=3, out_nc=3, nf=64, nb=23, gc=32, sf=2)  # define network |         model = RRDBNet(in_nc=3, out_nc=3, nf=64, nb=23, gc=32, sf=2)  # define network | ||||||
|         model.load_state_dict(torch.load(filename), strict=True) |         model.load_state_dict(torch.load(filename), strict=True) | ||||||
|         model.eval() |         model.eval() | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 d8ahazard
						d8ahazard