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

上传视频,点击search后报错 #69

Open
huner77 opened this issue May 10, 2024 · 1 comment
Open

上传视频,点击search后报错 #69

huner77 opened this issue May 10, 2024 · 1 comment

Comments

@huner77
Copy link

huner77 commented May 10, 2024

感谢你们的出色工作,当我上传一个视频进行search时,出现了bug,不清楚是什么原因

Ubuntu操作系统,通过源代码安装
image

具体报错如下:
ValidationError: 16 validation errors for PydanticDocument parent_id Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing granularity Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing blob Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing tensor Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing mime_type Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing text Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing weight Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing uri Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing offset Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing location Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing embedding Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing modality Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing evaluations Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing scores Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing chunks Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing matches Field required [type=missing, input_value={'id': 'c3df2f0a31c4240cd...3, 'rightIndex': 209.0}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing Traceback: File "/home/lan/anaconda3/envs/vced/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 556, in _run_script exec(code, module.__dict__) File "/home/lan/code/yuyin/VCED/vced/code/web/app.py", line 93, in <module> result = search_clip(uid, video_file_path, text_prompt, topn_value) File "/home/lan/code/yuyin/VCED/vced/code/web/app.py", line 79, in search_clip data = [{"text": doc.text,"matches": doc.matches.to_dict()} for doc in resp] # 得到每个文本对应的相似视频片段起始位置列表 File "/home/lan/code/yuyin/VCED/vced/code/web/app.py", line 79, in <listcomp> data = [{"text": doc.text,"matches": doc.matches.to_dict()} for doc in resp] # 得到每个文本对应的相似视频片段起始位置列表 File "/home/lan/anaconda3/envs/vced/lib/python3.9/site-packages/docarray/array/mixins/io/json.py", line 87, in to_list return [d.to_dict(protocol=protocol, **kwargs) for d in self] File "/home/lan/anaconda3/envs/vced/lib/python3.9/site-packages/docarray/array/mixins/io/json.py", line 87, in <listcomp> return [d.to_dict(protocol=protocol, **kwargs) for d in self] File "/home/lan/anaconda3/envs/vced/lib/python3.9/site-packages/docarray/document/mixins/porting.py", line 74, in to_dict return self.to_pydantic_model().dict(**kwargs) File "/home/lan/anaconda3/envs/vced/lib/python3.9/site-packages/docarray/document/mixins/pydantic.py", line 40, in to_pydantic_model return DP(**_p_dict) File "/home/lan/anaconda3/envs/vced/lib/python3.9/site-packages/docarray/document/pydantic_model.py", line 63, in __init__ super().__init__(**data) File "/home/lan/anaconda3/envs/vced/lib/python3.9/site-packages/pydantic/main.py", line 176, in __init__ self.__pydantic_validator__.validate_python(data, self_instance=self)

@qq2221629520
Copy link

同问 ,我也是出现了 这个

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

2 participants