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
在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)
The text was updated successfully, but these errors were encountered:
命令是: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
inlaunch()
.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)
The text was updated successfully, but these errors were encountered: