Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: object of type 'NoneType' has no len() #109

Open
545089467 opened this issue Oct 8, 2024 · 0 comments
Open

TypeError: object of type 'NoneType' has no len() #109

545089467 opened this issue Oct 8, 2024 · 0 comments

Comments

@545089467
Copy link

545089467 commented Oct 8, 2024

使用MuseTalk的example时出现以下错误

Traceback (most recent call last):
File "/root/miniconda3/lib/python3.8/site-packages/gradio/queueing.py", line 495, in call_prediction
output = await route_utils.call_process_api(
File "/root/miniconda3/lib/python3.8/site-packages/gradio/route_utils.py", line 232, in call_process_api
output = await app.get_blocks().process_api(
File "/root/miniconda3/lib/python3.8/site-packages/gradio/blocks.py", line 1561, in process_api
result = await self.call_function(
File "/root/miniconda3/lib/python3.8/site-packages/gradio/blocks.py", line 1179, in call_function
prediction = await anyio.to_thread.run_sync(
File "/root/miniconda3/lib/python3.8/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/root/miniconda3/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/root/miniconda3/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/root/miniconda3/lib/python3.8/site-packages/gradio/utils.py", line 695, in wrapper
response = f(*args, **kwargs)
File "/root/Linly-Talker/src/cost_time.py", line 7, in wrapper
result = func(*args, **kwargs)
File "webui.py", line 365, in MuseTalker_response
video = musetalker.inference_noprepare(driven_audio, source_video, bbox_shift, batch_size, fps=25)
File "/root/Linly-Talker/TFG/MuseTalk.py", line 352, in inference_noprepare
for i, (whisper_batch,latent_batch) in enumerate(tqdm(gen,total=int(np.ceil(float(video_num)/batch_size)))):
File "/root/miniconda3/lib/python3.8/site-packages/tqdm/std.py", line 1178, in iter
for obj in iterable:
File "/root/Linly-Talker/./Musetalk/musetalk/utils/utils.py", line 49, in datagen
idx = (i+delay_frame)%len(vae_encode_latents)
TypeError: object of type 'NoneType' has no len()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant