Merge 6c4cf425be into c39f6ac33b
				
					
				
			
						commit
						c0ef056e03
					
				| 
						 | 
					@ -24,3 +24,4 @@ models/GFPGANv1.4.pth
 | 
				
			||||||
models/DMDNet.pth
 | 
					models/DMDNet.pth
 | 
				
			||||||
faceswap/
 | 
					faceswap/
 | 
				
			||||||
.vscode/
 | 
					.vscode/
 | 
				
			||||||
 | 
					/ffmpeg-7.0.2-full_build
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -492,12 +492,13 @@ def swap_faces_paths() -> None:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def select_target_path() -> None:
 | 
					def select_target_path() -> None:
 | 
				
			||||||
    global RECENT_DIRECTORY_TARGET, img_ft, vid_ft
 | 
					    global RECENT_DIRECTORY_TARGET, img_ft, vid_ft
 | 
				
			||||||
 | 
					    combined_types = ('Media',(img_ft[-1] + vid_ft[-1])
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
    PREVIEW.withdraw()
 | 
					    PREVIEW.withdraw()
 | 
				
			||||||
    target_path = ctk.filedialog.askopenfilename(
 | 
					    target_path = ctk.filedialog.askopenfilename(
 | 
				
			||||||
        title="select an target image or video",
 | 
					        title="select an target image or video",
 | 
				
			||||||
        initialdir=RECENT_DIRECTORY_TARGET,
 | 
					        initialdir=RECENT_DIRECTORY_TARGET,
 | 
				
			||||||
        filetypes=[img_ft, vid_ft],
 | 
					        filetypes=[combined_types],
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    if is_image(target_path):
 | 
					    if is_image(target_path):
 | 
				
			||||||
        modules.globals.target_path = target_path
 | 
					        modules.globals.target_path = target_path
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue