z-x-yang / Segment-and-Track-Anything

An open-source project dedicated to tracking and segmenting any objects in videos, either automatically or interactively. The primary algorithms utilized include the Segment Anything Model (SAM) for key-frame segmentation and Associating Objects with Transformers (AOT) for efficient tracking and propagation purposes.
GNU Affero General Public License v3.0
2.83k stars 340 forks source link

Error running Demo app #112

Closed tilllt closed 12 months ago

tilllt commented 12 months ago

Hi,

i am getting this error running the demo app... also i had to install gradio manually, do i need to install a specific version?

/opt/conda/lib/python3.10/site-packages/gradio/layouts/column.py:55: UserWarning: 'scale' value should be an integer. Using 0.5 will cause issues.
  warnings.warn(
Traceback (most recent call last):
  File "/samta/app.py", line 1106, in <module>
    seg_track_app()
  File "/samta/app.py", line 485, in seg_track_app
    input_video = gr.Video(label='Input video').style(height=550)
AttributeError: 'Video' object has no attribute 'style'. Did you mean: 'scale'?
yamy-cheng commented 12 months ago

Hi,use pip install gradio==3.38.0 to install gradio which support the code.