File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed 
src/diffusers/pipelines/pag Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 4141    ASPECT_RATIO_1024_BIN ,
4242)
4343from  ..pixart_alpha .pipeline_pixart_sigma  import  ASPECT_RATIO_2048_BIN 
44+ from  ..sana .pipeline_sana  import  ASPECT_RATIO_4096_BIN 
4445from  .pag_utils  import  PAGMixin 
4546
4647
@@ -755,7 +756,9 @@ def __call__(
755756            callback_on_step_end_tensor_inputs  =  callback_on_step_end .tensor_inputs 
756757
757758        if  use_resolution_binning :
758-             if  self .transformer .config .sample_size  ==  64 :
759+             if  self .transformer .config .sample_size  ==  128 :
760+                 aspect_ratio_bin  =  ASPECT_RATIO_4096_BIN 
761+             elif  self .transformer .config .sample_size  ==  64 :
759762                aspect_ratio_bin  =  ASPECT_RATIO_2048_BIN 
760763            elif  self .transformer .config .sample_size  ==  32 :
761764                aspect_ratio_bin  =  ASPECT_RATIO_1024_BIN 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments