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

gradio_demo不支持视频检测 #558

Open
zhjygit opened this issue Dec 31, 2024 · 0 comments
Open

gradio_demo不支持视频检测 #558

zhjygit opened this issue Dec 31, 2024 · 0 comments

Comments

@zhjygit
Copy link

zhjygit commented Dec 31, 2024

命令是:python demo\gradio_demo.py configs/pretrain/yolo_world_v2_x_vlpan_bn_2e-3_100e_4x8gpus_obj365v1_goldg_train_1280ft_lvis_minival.py weights/yolo_world_v2_x_obj365v1_goldg_cc3mlite_pretrain_1280ft-14996a36.pth

在gradio的web界面中,开启摄像头进行检测,submit后,提示错误:
To create a public link, set share=True in launch().
Traceback (most recent call last):
File "D:\ProgramData\anaconda3\envs\yoloworld\lib\site-packages\gradio\queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
File "D:\ProgramData\anaconda3\envs\yoloworld\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "D:\ProgramData\anaconda3\envs\yoloworld\lib\site-packages\gradio\blocks.py", line 1935, in process_api
result = await self.call_function(
File "D:\ProgramData\anaconda3\envs\yoloworld\lib\site-packages\gradio\blocks.py", line 1520, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "D:\ProgramData\anaconda3\envs\yoloworld\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\ProgramData\anaconda3\envs\yoloworld\lib\site-packages\anyio_backends_asyncio.py", line 2364, in run_sync_in_worker_thread
return await future
File "D:\ProgramData\anaconda3\envs\yoloworld\lib\site-packages\anyio_backends_asyncio.py", line 864, in run
result = context.run(func, *args)
File "D:\ProgramData\anaconda3\envs\yoloworld\lib\site-packages\gradio\utils.py", line 826, in wrapper
response = f(*args, **kwargs)
File "demo\gradio_demo.py", line 82, in run_image
data_info = runner.pipeline(data_info)
File "D:\ProgramData\anaconda3\envs\yoloworld\lib\site-packages\mmengine\dataset\base_dataset.py", line 60, in call
data = t(data)
File "D:\ProgramData\anaconda3\envs\yoloworld\lib\site-packages\mmcv\transforms\base.py", line 12, in call
return self.transform(results)
File "D:\ProgramData\anaconda3\envs\yoloworld\lib\site-packages\mmdet\structures\bbox\box_type.py", line 267, in wrapper
return func(self, results)
File "D:\ProgramData\anaconda3\envs\yoloworld\lib\site-packages\mmdet\datasets\transforms\transforms.py", line 231, in transform
self._resize_img(results)
File "D:\ProgramData\anaconda3\envs\yoloworld\lib\site-packages\mmyolo\datasets\transforms\transforms.py", line 102, in _resize_img
original_h, original_w = image.shape[:2]
ValueError: not enough values to unpack (expected 2, got 0)
Uploading image.png…

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