mirror of
				https://github.com/Wan-Video/Wan2.1.git
				synced 2025-11-04 06:15:17 +00:00 
			
		
		
		
	fixed End Frames checkbox not always visible
This commit is contained in:
		
							parent
							
								
									99fd9aea32
								
							
						
					
					
						commit
						836777eb55
					
				@ -144,7 +144,7 @@ class family_handler():
 | 
			
		||||
        if vace_class or base_model_type in ["infinitetalk"]:
 | 
			
		||||
            image_prompt_types_allowed = "TVL"
 | 
			
		||||
        elif base_model_type in ["ti2v_2_2"]:
 | 
			
		||||
            image_prompt_types_allowed = "TSEVL"
 | 
			
		||||
            image_prompt_types_allowed = "TSEV"
 | 
			
		||||
        elif i2v:
 | 
			
		||||
            image_prompt_types_allowed = "SEVL"
 | 
			
		||||
        else:
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										5
									
								
								wgp.py
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								wgp.py
									
									
									
									
									
								
							@ -7105,12 +7105,13 @@ def generate_video_tab(update_form = False, state_dict = None, ui_defaults = Non
 | 
			
		||||
                with gr.Group(visible= len(image_prompt_types_allowed)>1) as image_prompt_type_group:
 | 
			
		||||
                    with gr.Row():
 | 
			
		||||
                        image_prompt_type_radio_allowed_values= filter_letters(image_prompt_types_allowed, "SVL")
 | 
			
		||||
                        image_prompt_type_radio_value = filter_letters(image_prompt_type_value, image_prompt_type_radio_allowed_values,  image_prompt_type_choices[0][1])
 | 
			
		||||
                        if len(image_prompt_type_choices) > 0:
 | 
			
		||||
                            image_prompt_type_radio = gr.Radio( image_prompt_type_choices, value =filter_letters(image_prompt_type_value, image_prompt_type_radio_allowed_values,  image_prompt_type_choices[0][1]), label="Location", show_label= False, visible= len(image_prompt_types_allowed)>1, scale= 3)
 | 
			
		||||
                            image_prompt_type_radio = gr.Radio( image_prompt_type_choices, value = image_prompt_type_radio_value, label="Location", show_label= False, visible= len(image_prompt_types_allowed)>1, scale= 3)
 | 
			
		||||
                        else:
 | 
			
		||||
                            image_prompt_type_radio = gr.Radio(choices=[("", "")], value="", visible= False)
 | 
			
		||||
                        if "E" in image_prompt_types_allowed:
 | 
			
		||||
                            image_prompt_type_endcheckbox = gr.Checkbox( value ="E" in image_prompt_type_value, label="End Image(s)", show_label= False, visible= any_letters(image_prompt_type_value, "SVL") and not image_outputs , scale= 1)
 | 
			
		||||
                            image_prompt_type_endcheckbox = gr.Checkbox( value ="E" in image_prompt_type_value, label="End Image(s)", show_label= False, visible= any_letters(image_prompt_type_radio_value, "SVL") and not image_outputs , scale= 1)
 | 
			
		||||
                            any_end_image = True
 | 
			
		||||
                        else:
 | 
			
		||||
                            image_prompt_type_endcheckbox = gr.Checkbox( value =False, show_label= False, visible= False , scale= 1)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user