mirror of
				https://github.com/Wan-Video/Wan2.1.git
				synced 2025-11-04 06:15:17 +00:00 
			
		
		
		
	Fixed skyreels gen bug
This commit is contained in:
		
							parent
							
								
									acc5ec9d9b
								
							
						
					
					
						commit
						b562190b93
					
				@ -236,7 +236,7 @@ class DTT2V:
 | 
			
		||||
        if input_video != None:
 | 
			
		||||
            _ , _ , height, width  = input_video.shape
 | 
			
		||||
        elif image_start != None:
 | 
			
		||||
            image_start = image_start[0]
 | 
			
		||||
            image_start = image_start
 | 
			
		||||
            frame_width, frame_height  = image_start.size
 | 
			
		||||
            height, width = calculate_new_dimensions(height, width, frame_height, frame_width, fit_into_canvas)
 | 
			
		||||
            image_start = np.array(image_start.resize((width, height))).transpose(2, 0, 1)
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								wgp.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								wgp.py
									
									
									
									
									
								
							@ -302,7 +302,7 @@ def process_prompt_and_add_tasks(state, model_choice):
 | 
			
		||||
    if test_any_sliding_window(model_type):
 | 
			
		||||
        if video_length > sliding_window_size:
 | 
			
		||||
            no_windows = compute_sliding_window_no(video_length, sliding_window_size, sliding_window_discard_last_frames, sliding_window_overlap)
 | 
			
		||||
            gr.Info(f"The Number of Frames to generate ({video_length}) is greater than the Sliding Window Size ({sliding_window_size}) , {no_windows} Windows will be generated")
 | 
			
		||||
            gr.Info(f"The Number of Frames to generate ({video_length}) is greater than the Sliding Window Size ({sliding_window_size}), {no_windows} Windows will be generated")
 | 
			
		||||
 | 
			
		||||
    if "recam" in model_filename:
 | 
			
		||||
        if video_source == None:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user