SCUTlihaoyu / open-chat-video-editor

Open source short video automatic generation tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ValueError: max() arg is an empty sequence

baiyutang opened this issue · comments

2023-05-23 06:58:36,192 - comm.mylog - INFO - sentences: ['cats are lovely', ' fluffy creatures that people love to spend time with', " they're always happy and playful", ' and they love to cuddle up with their owners', " whether you're a cat person or not", " you can't 否认 cats are some of the best animals to have around", ' so why not add one to your life and see how much joy it can bring']
2023-05-23 06:58:36,192 - comm.mylog - INFO - en_out_text: ['cats are lovely', ' fluffy creatures that people love to spend time with', " they're always happy and playful", ' and they love to cuddle up with their owners', " whether you're a cat person or not", " you can't 否认 cats are some of the best animals to have around", ' so why not add one to your life and see how much joy it can bring']
[2023-05-23 06:58:47,705] [    INFO] - Already cached /root/.paddlenlp/models/bert-base-chinese/bert-base-chinese-vocab.txt
[2023-05-23 06:58:47,727] [    INFO] - tokenizer config file saved in /root/.paddlenlp/models/bert-base-chinese/tokenizer_config.json
[2023-05-23 06:58:47,728] [    INFO] - Special tokens file saved in /root/.paddlenlp/models/bert-base-chinese/special_tokens_map.json
Building prefix dict from the default dictionary ...
2023-05-23 06:58:58,554 - jieba - DEBUG - Building prefix dict from the default dictionary ...
Loading model from cache /tmp/jieba.cache
2023-05-23 06:58:58,554 - jieba - DEBUG - Loading model from cache /tmp/jieba.cache
Loading model cost 0.778 seconds.
2023-05-23 06:58:59,332 - jieba - DEBUG - Loading model cost 0.778 seconds.
Prefix dict has been built successfully.
2023-05-23 06:58:59,332 - jieba - DEBUG - Prefix dict has been built successfully.
2023-05-23 06:59:04,170 - comm.mylog - INFO - final_clips: 0
Traceback (most recent call last):
  File "/data/anaconda3/envs/open_editor/lib/python3.8/site-packages/gradio/routes.py", line 401, in run_predict
    output = await app.get_blocks().process_api(
  File "/data/anaconda3/envs/open_editor/lib/python3.8/site-packages/gradio/blocks.py", line 1302, in process_api
    result = await self.call_function(
  File "/data/anaconda3/envs/open_editor/lib/python3.8/site-packages/gradio/blocks.py", line 1025, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "/data/anaconda3/envs/open_editor/lib/python3.8/site-packages/anyio/to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/data/anaconda3/envs/open_editor/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "/data/anaconda3/envs/open_editor/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "app/app.py", line 30, in run_Text2VideoEditor_logit
    out_text,video_out = editor.run(input_text,style_text,out_video)
  File "/opt/gf/open-chat-video-editor/editor/chat_editor.py", line 96, in run
    video = concatenate_videoclips(final_clips)
  File "/data/anaconda3/envs/open_editor/lib/python3.8/site-packages/moviepy/video/compositing/concatenate.py", line 75, in concatenate_videoclips
    w = max(r[0] for r in sizes)
ValueError: max() arg is an empty sequence