mirror of
				https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
				synced 2025-11-04 03:55:05 +00:00 
			
		
		
		
	Merge pull request #5627 from deanpress/patch-1
fix: fallback model_checkpoint if it's empty
This commit is contained in:
		
						commit
						eba60a42eb
					
				@ -111,6 +111,10 @@ def model_hash(filename):
 | 
			
		||||
 | 
			
		||||
def select_checkpoint():
 | 
			
		||||
    model_checkpoint = shared.opts.sd_model_checkpoint
 | 
			
		||||
    
 | 
			
		||||
    if len(model_checkpoint) == 0:
 | 
			
		||||
        model_checkpoint = shared.default_sd_model_file
 | 
			
		||||
        
 | 
			
		||||
    checkpoint_info = checkpoints_list.get(model_checkpoint, None)
 | 
			
		||||
    if checkpoint_info is not None:
 | 
			
		||||
        return checkpoint_info
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user