You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: __call__(): incompatible function arguments. The following argument types are supported: 1. (self: _dlib_pybind11.fhog_object_detector, image: numpy.ndarray, upsample_num_times: int = 0) -> _dlib_pybind11.rectangles
#36
File "/content/drive/MyDrive/dreamtalk/inference_for_demo_video.py", line 207, in
crop_src_image(args.image_path, src_img_path, 0.4)
File "/content/drive/MyDrive/dreamtalk/core/utils.py", line 438, in crop_src_image
faces = detector(img, 0)
TypeError: call(): incompatible function arguments. The following argument types are supported:
1. (self: _dlib_pybind11.fhog_object_detector, image: numpy.ndarray, upsample_num_times: int = 0) -> _dlib_pybind11.rectangles
Invoked with: <_dlib_pybind11.fhog_object_detector object at 0x7855377022f0>, None, 0
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 495, in call_prediction
output = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/route_utils.py", line 232, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1561, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1179, in call_function
prediction = await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 695, in wrapper
response = f(*args, **kwargs)
File "/content/drive/MyDrive/dreamtalk/app.py", line 47, in infer
execute_command(command)
File "/content/drive/MyDrive/dreamtalk/app.py", line 27, in execute_command
subprocess.run(command, check=True)
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['python', 'inference_for_demo_video.py', '--wav_path=/tmp/gradio/178d11976f94d691ff57dd90a34c7603b4309ea3/acknowledgement_english.wav', '--style_clip_path=data/style_clip/3DMM/M030_front_neutral_level1_001.mat', '--pose_path=data/pose/RichardShelby_front_neutral_level1_001.mat', '--image_path=None', '--cfg_scale=1.0', '--max_gen_len=30', '--output_name=lipsynced_result_20240306024936']' returned non-zero exit status 1.
The text was updated successfully, but these errors were encountered:
File "/content/drive/MyDrive/dreamtalk/inference_for_demo_video.py", line 207, in
crop_src_image(args.image_path, src_img_path, 0.4)
File "/content/drive/MyDrive/dreamtalk/core/utils.py", line 438, in crop_src_image
faces = detector(img, 0)
TypeError: call(): incompatible function arguments. The following argument types are supported:
1. (self: _dlib_pybind11.fhog_object_detector, image: numpy.ndarray, upsample_num_times: int = 0) -> _dlib_pybind11.rectangles
Invoked with: <_dlib_pybind11.fhog_object_detector object at 0x7855377022f0>, None, 0
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 495, in call_prediction
output = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/route_utils.py", line 232, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1561, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1179, in call_function
prediction = await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 695, in wrapper
response = f(*args, **kwargs)
File "/content/drive/MyDrive/dreamtalk/app.py", line 47, in infer
execute_command(command)
File "/content/drive/MyDrive/dreamtalk/app.py", line 27, in execute_command
subprocess.run(command, check=True)
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['python', 'inference_for_demo_video.py', '--wav_path=/tmp/gradio/178d11976f94d691ff57dd90a34c7603b4309ea3/acknowledgement_english.wav', '--style_clip_path=data/style_clip/3DMM/M030_front_neutral_level1_001.mat', '--pose_path=data/pose/RichardShelby_front_neutral_level1_001.mat', '--image_path=None', '--cfg_scale=1.0', '--max_gen_len=30', '--output_name=lipsynced_result_20240306024936']' returned non-zero exit status 1.
The text was updated successfully, but these errors were encountered: