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

打开标注平台的时候出现以下bug #22

Open
YangJoy750 opened this issue Mar 17, 2023 · 4 comments
Open

打开标注平台的时候出现以下bug #22

YangJoy750 opened this issue Mar 17, 2023 · 4 comments

Comments

@YangJoy750
Copy link

not supported between instances of 'str' and 'int

@YangJoy750
Copy link
Author

截屏2023-03-16 23 37 46

@YangJoy750
Copy link
Author

@HarderThenHarder

@HarderThenHarder
Copy link
Owner

Hi,看起来像是版本不同导致device格式不一致导致的。
您尝试下把 代码的这里 做如下修改:

    ...
    device=MODEL_CONFIG['device']  ->  device=0

传入一个 int 类型的 GPU 索引,索引决定了模型在进行内容生成的时候具体使用哪块 GPU。

@magnificent1208
Copy link

我打开平台,会出这个bug

NameError: name 'model' is not defined

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

3 participants