mirror of
				https://github.com/Wan-Video/Wan2.1.git
				synced 2025-11-04 06:15:17 +00:00 
			
		
		
		
	shrink seed range
This commit is contained in:
		
							parent
							
								
									79b915cada
								
							
						
					
					
						commit
						828e041f5e
					
				@ -318,7 +318,7 @@ class WanVace(WanT2V):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        if n_prompt == "":
 | 
					        if n_prompt == "":
 | 
				
			||||||
            n_prompt = self.sample_neg_prompt
 | 
					            n_prompt = self.sample_neg_prompt
 | 
				
			||||||
        seed = seed if seed >= 0 else random.randint(0, sys.maxsize)
 | 
					        seed = seed if seed >= 0 else random.randint(0, 1e7)
 | 
				
			||||||
        seed_g = torch.Generator(device=self.device)
 | 
					        seed_g = torch.Generator(device=self.device)
 | 
				
			||||||
        seed_g.manual_seed(seed)
 | 
					        seed_g.manual_seed(seed)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -581,7 +581,7 @@ class WanVaceMP(WanVace):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
                if n_prompt == "":
 | 
					                if n_prompt == "":
 | 
				
			||||||
                    n_prompt = sample_neg_prompt
 | 
					                    n_prompt = sample_neg_prompt
 | 
				
			||||||
                seed = seed if seed >= 0 else random.randint(0, sys.maxsize)
 | 
					                seed = seed if seed >= 0 else random.randint(0, 1e7)
 | 
				
			||||||
                seed_g = torch.Generator(device=gpu)
 | 
					                seed_g = torch.Generator(device=gpu)
 | 
				
			||||||
                seed_g.manual_seed(seed)
 | 
					                seed_g.manual_seed(seed)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user