mirror of
				https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
				synced 2025-11-03 19:44:27 +00:00 
			
		
		
		
	Calculate shorthash on merge if not exist
This commit is contained in:
		
							parent
							
								
									afc349c2c0
								
							
						
					
					
						commit
						7c016dd642
					
				@ -263,6 +263,7 @@ def run_modelmerger(id_task, primary_model_name, secondary_model_name, tertiary_
 | 
			
		||||
        metadata["merge_recipe"] = json.dumps(merge_recipe)
 | 
			
		||||
 | 
			
		||||
        def add_model_metadata(checkpoint_info):
 | 
			
		||||
            checkpoint_info.calculate_shorthash()
 | 
			
		||||
            metadata["models"][checkpoint_info.sha256] = {
 | 
			
		||||
                "name": checkpoint_info.name,
 | 
			
		||||
                "legacy_hash": checkpoint_info.hash,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user