File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed 
examples/advanced_diffusion_training Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,9 @@ def test_dreambooth_lora_pivotal_tuning_flux_clip(self):
134134            self .assertTrue (is_lora )
135135
136136            # make sure the state_dict has the correct naming in the parameters. 
137-             textual_inversion_state_dict  =  safetensors .torch .load_file (os .path .join (tmpdir , f"{ tmpdir }  ))
137+             textual_inversion_state_dict  =  safetensors .torch .load_file (
138+                 os .path .join (tmpdir , f"{ tmpdir }  )
139+             )
138140            is_clip  =  all ("clip_l"  in  k  for  k  in  textual_inversion_state_dict .keys ())
139141            self .assertTrue (is_clip )
140142
@@ -175,7 +177,9 @@ def test_dreambooth_lora_pivotal_tuning_flux_clip_t5(self):
175177            self .assertTrue (is_lora )
176178
177179            # make sure the state_dict has the correct naming in the parameters. 
178-             textual_inversion_state_dict  =  safetensors .torch .load_file (os .path .join (tmpdir , f"{ tmpdir }  ))
180+             textual_inversion_state_dict  =  safetensors .torch .load_file (
181+                 os .path .join (tmpdir , f"{ tmpdir }  )
182+             )
179183            is_te  =  all (("clip_l"  in  k  or  "t5"  in  k ) for  k  in  textual_inversion_state_dict .keys ())
180184            self .assertTrue (is_te )
181185
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments