Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WlbLucy opened this issue Jan 20, 2024 · 5 comments

Comments

@WlbLucy
Copy link

WlbLucy commented Jan 20, 2024

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
Copy link
Author

WlbLucy commented Jan 20, 2024

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

@WlbLucy
Copy link
Author

WlbLucy commented Jan 21, 2024

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

@davitpapikyan
Copy link

davitpapikyan commented Jan 22, 2024

Solution: pip install gradio==3.30

@HanLingsgjk
Copy link

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

@kolubex
Copy link

kolubex commented Feb 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants