OpenTalker / video-retalking

[SIGGRAPH Asia 2022] VideoReTalking: Audio-based Lip Synchronization for Talking Head Video Editing In the Wild
https://opentalker.github.io/video-retalking/
Apache License 2.0
6.04k stars 896 forks source link

AttributeError: TWO_D #167

Open mavashis4toshi opened 8 months ago

mavashis4toshi commented 8 months ago

[Step 6] Lip Synthesis:: 0%| | 0/59 [00:49<?, ?it/s] Traceback (most recent call last): File "C:\Users\mrbeast\anaconda3\envs\video-retalking\lib\site-packages\gradio\queueing.py", line 407, in call_prediction output = await route_utils.call_process_api( File "C:\Users\mrbeast\anaconda3\envs\video-retalking\lib\site-packages\gradio\route_utils.py", line 226, in call_process_api output = await app.get_blocks().process_api( File "C:\Users\mrbeast\anaconda3\envs\video-retalking\lib\site-packages\gradio\blocks.py", line 1550, in process_api result = await self.call_function( File "C:\Users\mrbeast\anaconda3\envs\video-retalking\lib\site-packages\gradio\blocks.py", line 1185, in call_function prediction = await anyio.to_thread.run_sync( File "C:\Users\mrbeast\anaconda3\envs\video-retalking\lib\site-packages\anyio\to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "C:\Users\mrbeast\anaconda3\envs\video-retalking\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "C:\Users\mrbeast\anaconda3\envs\video-retalking\lib\site-packages\anyio_backends_asyncio.py", line 807, in run result = context.run(func, args) File "C:\Users\mrbeast\anaconda3\envs\video-retalking\lib\site-packages\gradio\utils.py", line 661, in wrapper response = f(args, **kwargs) File "webUI.py", line 396, in inference for i, (img_batch, mel_batch, frames, coords, img_original, f_frames) in enumerate(tqdm(gen, desc='[Step 6] Lip Synthesis:', total=int(np.ceil(float(len(mel_chunks)) / args.LNet_batch_size)))): File "C:\Users\mrbeast\anaconda3\envs\video-retalking\lib\site-packages\tqdm\std.py", line 1182, in iter for obj in iterable: File "webUI.py", line 161, in datagen face_det_results = face_detect(full_frames, args, jaw_correction=True) File "webUI.py", line 106, in face_detect detector = face_detection.FaceAlignment(face_detection.LandmarksType.TWO_D, File "C:\Users\mrbeast\anaconda3\envs\video-retalking\lib\enum.py", line 384, in getattr raise AttributeError(name) from None AttributeError: TWO_D

At first there was such an error in the file extract_kp_videos.py, there was an error with the ._2D attribute, then I corrected it to .TWO_D and the error went away, then the same error occurred with other .py files in the project and I decided to fix them in the same way, but it did not help, I will be excessively grateful for your help

The file where the error is now WEBUI.py Project where the error occurs https://github.com/OpenTalker/video-retalking [VIDEO-RETALKING]