5663015 / segment_anything_webui

A simple Segment Anything WebUI based on Gradio.
69 stars 8 forks source link

KeyError: 'type' #6

Open shomeAvataar opened 6 months ago

shomeAvataar commented 6 months ago

The version of gradio is am using is : 3.25.0. Still O get error I am getting error while running: segment_anything_webui:

when I run python app.py, I get

Traceback (most recent call last): File "/home/neo/Desktop/shome/mesh_related/mesh_FG_BG_segmentation/codes/segment_anything_webui/app.py", line 189, in button_video.click(run_inference, inputs=[device, model_type, points_per_side, pred_iou_thresh, stability_score_thresh, File "/home/neo/miniconda3/envs/shome_SAM_py39/lib/python3.9/site-packages/gradio/blocks.py", line 1285, in exit self.config = self.get_config_file() File "/home/neo/miniconda3/envs/shome_SAM_py39/lib/python3.9/site-packages/gradio/blocks.py", line 1261, in get_config_file "input": list(block.input_api_info()), # type: ignore File "/home/neo/miniconda3/envs/shome_SAM_py39/lib/python3.9/site-packages/gradio_client/serializing.py", line 44, in input_api_info types = api_info.get("serialized_input", [api_info["info"]["type"]] * 2) # type: ignore KeyError: 'type

freya9933 commented 4 months ago

I'm having the same problem, have you solved it already? @shomeAvataar

buptlj commented 1 month ago

pip install gradio==3.50.0