mirror of
				https://github.com/Wan-Video/Wan2.1.git
				synced 2025-11-04 06:15:17 +00:00 
			
		
		
		
	Fixed I2V Frames Hardcoded at 81 - updated frame_num to F for consistency
This commit is contained in:
		
							parent
							
								
									99d10e4dbb
								
							
						
					
					
						commit
						5bd54ebe00
					
				@ -205,7 +205,7 @@ class WanI2V:
 | 
			
		||||
            device=self.device)
 | 
			
		||||
 | 
			
		||||
        #20250226 fix noise assuming frames hardcoded at 81 (21 latent frames)
 | 
			
		||||
        latent_frame_num = (frame_num - 1) // self.vae_stride[0] + 1
 | 
			
		||||
        latent_frame_num = (F - 1) // self.vae_stride[0] + 1
 | 
			
		||||
        noise = torch.randn(16, latent_frame_num, lat_h, lat_w, dtype=torch.float32, generator=seed_g, device=self.device)
 | 
			
		||||
 | 
			
		||||
        #msk = torch.ones(1, 81, lat_h, lat_w, device=self.device)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user