File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 151151    "animatediff_scribble" : {"pretrained_model_name_or_path" : "guoyww/animatediff-sparsectrl-scribble" },
152152    "animatediff_rgb" : {"pretrained_model_name_or_path" : "guoyww/animatediff-sparsectrl-rgb" },
153153    "flux-dev" : {"pretrained_model_name_or_path" : "black-forest-labs/FLUX.1-dev" },
154+     "flux-fill" : {"pretrained_model_name_or_path" : "black-forest-labs/FLUX.1-Fill-dev" },
155+     "flux-depth" : {"pretrained_model_name_or_path" : "black-forest-labs/FLUX.1-Depth-dev" },
154156    "flux-schnell" : {"pretrained_model_name_or_path" : "black-forest-labs/FLUX.1-schnell" },
155157    "ltx-video" : {"pretrained_model_name_or_path" : "Lightricks/LTX-Video" },
156158    "autoencoder-dc-f128c512" : {"pretrained_model_name_or_path" : "mit-han-lab/dc-ae-f128c512-mix-1.0-diffusers" },
@@ -587,7 +589,13 @@ def infer_diffusers_model_type(checkpoint):
587589        if  any (
588590            g  in  checkpoint  for  g  in  ["guidance_in.in_layer.bias" , "model.diffusion_model.guidance_in.in_layer.bias" ]
589591        ):
590-             model_type  =  "flux-dev" 
592+             if  checkpoint ["img_in.weight" ].shape [1 ] ==  384 :
593+                 model_type  =  "flux-fill" 
594+ 
595+             elif  checkpoint ["img_in.weight" ].shape [1 ] ==  128 :
596+                 model_type  =  "flux-depth" 
597+             else :
598+                 model_type  =  "flux-dev" 
591599        else :
592600            model_type  =  "flux-schnell" 
593601
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments