(venv) PS C:\Users\larry\Desktop\python\grounded> python app.py C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\timm\models\layers\__init__.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.layers", FutureWarning) C:\Users\larry\Desktop\python\grounded\GroundingDINO\groundingdino\models\GroundingDINO\ms_deform_attn.py:31: UserWarning: Failed to load custom C++ ops. Running on CPU mode Only! warnings.warn("Failed to load custom C++ ops. Running on CPU mode Only!") C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\torch\functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ..\aten\src\ATen\native\TensorShape.cpp:3527.) return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined] final text_encoder_type: bert-base-uncased C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\gradio\utils.py:1028: UserWarning: Expected 1 arguments for function at 0x0000016538A20DC0>, received 0. warnings.warn( C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\gradio\utils.py:1032: UserWarning: Expected at least 1 arguments for function at 0x0000016538A20DC0>, received 0. warnings.warn( * Running on local URL: http://0.0.0.0:7860 * To create a public link, set `share=True` in `launch()`. C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\transformers\modeling_utils.py:1614: FutureWarning: The `device` argument is deprecated and will be removed in v5 of Transformers. warnings.warn( C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\torch\utils\checkpoint.py:429: UserWarning: torch.utils.checkpoint: please pass in use_reentrant=True or use_reentrant=False explicitly. The default value of use_reentrant will be updated to be False in the future. To maintain current behavior, pass use_reentrant=True. It is recommended that you use use_reentrant=False. Refer to docs for more details on the differences between the two variants. warnings.warn( C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\torch\utils\checkpoint.py:61: UserWarning: None of the inputs have requires_grad=True. Gradients will be None warnings.warn( C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\transformers\modeling_utils.py:1614: FutureWarning: The `device` argument is deprecated and will be removed in v5 of Transformers. warnings.warn( C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\torch\utils\checkpoint.py:429: UserWarning: torch.utils.checkpoint: please pass in use_reentrant=True or use_reentrant=False explicitly. The default value of use_reentrant will be updated to be False in the future. To maintain current behavior, pass use_reentrant=True. It is recommended that you use use_reentrant=False. Refer to docs for more details on the differences between the two variants. warnings.warn( C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\torch\utils\checkpoint.py:61: UserWarning: None of the inputs have requires_grad=True. Gradients will be None warnings.warn( Traceback (most recent call last): File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\gradio\queueing.py", line 625, in process_events response = await route_utils.call_process_api( File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api output = await app.get_blocks().process_api( File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\gradio\blocks.py", line 2220, in process_api result = await self.call_function( File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\gradio\blocks.py", line 1731, in call_function prediction = await anyio.to_thread.run_sync( # type: ignore File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2470, in run_sync_in_worker_thread return await future File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run result = context.run(func, *args) File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\gradio\utils.py", line 894, in wrapper response = f(*args, **kwargs) File "C:\Users\larry\Desktop\python\grounded\app.py", line 99, in segment vis[tint]=vis[tint]*0.4 + GREEN*0.6 # safer numeric ops ValueError: operands could not be broadcast together with shapes (1809348,) (3,) C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\gradio\helpers.py:1015: UserWarning: Unexpected argument. Filling with None. warnings.warn("Unexpected argument. Filling with None.") C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\transformers\modeling_utils.py:1614: FutureWarning: The `device` argument is deprecated and will be removed in v5 of Transformers. warnings.warn( C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\torch\utils\checkpoint.py:429: UserWarning: torch.utils.checkpoint: please pass in use_reentrant=True or use_reentrant=False explicitly. The default value of use_reentrant will be updated to be False in the future. To maintain current behavior, pass use_reentrant=True. It is recommended that you use use_reentrant=False. Refer to docs for more details on the differences between the two variants. warnings.warn( C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\torch\utils\checkpoint.py:61: UserWarning: None of the inputs have requires_grad=True. Gradients will be None warnings.warn( C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\transformers\modeling_utils.py:1614: FutureWarning: The `device` argument is deprecated and will be removed in v5 of Transformers. warnings.warn( C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\torch\utils\checkpoint.py:429: UserWarning: torch.utils.checkpoint: please pass in use_reentrant=True or use_reentrant=False explicitly. The default value of use_reentrant will be updated to be False in the future. To maintain current behavior, pass use_reentrant=True. It is recommended that you use use_reentrant=False. Refer to docs for more details on the differences between the two variants. warnings.warn( C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\torch\utils\checkpoint.py:61: UserWarning: None of the inputs have requires_grad=True. Gradients will be None warnings.warn( Traceback (most recent call last): File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\gradio\queueing.py", line 625, in process_events response = await route_utils.call_process_api( File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api output = await app.get_blocks().process_api( File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\gradio\blocks.py", line 2220, in process_api result = await self.call_function( File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\gradio\blocks.py", line 1731, in call_function prediction = await anyio.to_thread.run_sync( # type: ignore File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2470, in run_sync_in_worker_thread return await future File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run result = context.run(func, *args) File "C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\gradio\utils.py", line 894, in wrapper response = f(*args, **kwargs) File "C:\Users\larry\Desktop\python\grounded\app.py", line 99, in segment vis[tint]=vis[tint]*0.4 + GREEN*0.6 # safer numeric ops ValueError: operands could not be broadcast together with shapes (1809348,) (3,) C:\Users\larry\Desktop\python\grounded\venv\lib\site-packages\gradio\helpers.py:1015: UserWarning: Unexpected argument. Filling with None. warnings.warn("Unexpected argument. Filling with None.")