Track-Anything icon indicating copy to clipboard operation
Track-Anything copied to clipboard

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

Open WlbLucy opened this issue 2 years ago • 6 comments

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 avatar Jan 20 '24 18:01 WlbLucy

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

WlbLucy avatar Jan 20 '24 18:01 WlbLucy

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

WlbLucy avatar Jan 21 '24 09:01 WlbLucy

Solution: pip install gradio==3.30

davitpapikyan avatar Jan 22 '24 15:01 davitpapikyan

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

HanLingsgjk avatar Jan 31 '24 08:01 HanLingsgjk

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

kolubex avatar Feb 13 '24 15:02 kolubex