gaomingqi / Track-Anything

Track-Anything is a flexible and interactive tool for video object tracking and segmentation, based on Segment Anything, XMem, and E2FGVI.
MIT License
6.52k stars 481 forks source link

Why did the 'scale' in the __init__ function cause an error during initialization? #124

Open WlbLucy opened 10 months ago

WlbLucy commented 10 months ago

cmd error:

(trackany) E:\track_anything\Track-Anything>python app.py --device cuda:0 Initializing BaseSegmenter to cuda:0 Hyperparameters read from the model weights: C^k=64, C^v=512, C^h=64 Single object mode: False load pretrained SPyNet... Loads checkpoint by http backend from path: https://download.openmmlab.com/mmediting/restorers/basicvsr/spynet_20210409-c6c1bd09.pth Traceback (most recent call last): File "E:\track_anything\Track-Anything\app.py", line 431, in with gr.Row(scale=0.4): File "C:\Users\Lucy\anaconda3\envs\trackany\lib\site-packages\gradio\component_meta.py", line 157, in wrapper return fn(self, **kwargs) TypeError: Row.init() got an unexpected keyword argument 'scale'

WlbLucy commented 10 months ago

what's the gradio tension of this project? Mine is 4.15.0 but it express ERROR.

WlbLucy commented 10 months ago

更新:把gradio版本降低后成功了。

davitpapikyan commented 10 months ago

Solution: pip install gradio==3.30

HanLingsgjk commented 10 months ago

谢谢,对我很有帮助-爱来自瓷器

kolubex commented 9 months ago

It is recommended to use pip install gradio==3.39.0 . I have tried this based on #120