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

[label_anything]: Add model - Validation error #60

Closed
puxiao opened this issue Apr 26, 2023 · 20 comments
Closed

[label_anything]: Add model - Validation error #60

puxiao opened this issue Apr 26, 2023 · 20 comments

Comments

@puxiao
Copy link

puxiao commented Apr 26, 2023

Window10 简体中文 64位 系统

Successfully connected to http://127.0.0.1:8003 but it doesn't look like a valid ML backend. Reason: 500 Server Error: INTERNAL SERVER ERROR for url: http://127.0.0.1:8003/setup.
Check the ML backend server console logs to check the status. There might be
something wrong with your model or it might be incompatible with the current labeling configuration.
Version: 1.7.3

http://localhost:8003/

{"model_dir":"E:\python\playground\label_anything\sam","status":"UP","v2":false}

http://127.0.0.1:8003/setup

Method Not Allowed The method is not allowed for the requested URL.

Anaconda prompt:
127.0.0.1 - - [26/Apr/2023 17:11:02] "POST /setup HTTP/1.1" 500 -

??? why?

@beyoursel
Copy link

首先得在setting里面的labeling interface定义所需标注的类别,然后才能导入Machine Leaning里面的模型

@puxiao
Copy link
Author

puxiao commented Apr 26, 2023

labeling interface 我已经照着文档设置过了。
去添加模型后,去检测,我访问 http://127.0.0.1:8003/setup 网页显示:Method Not Allowed The method is not allowed for the requested URL.

一般来说上面那个错误表示:当前不支持请求方式,例如不支持 POST 请求。

@beyoursel
Copy link

labeling interface 我已经照着文档设置过了。 去添加模型后,去检测,我访问 http://127.0.0.1:8003/setup 网页显示:Method Not Allowed The method is not allowed for the requested URL.

我是在服务器上跑的,然后映射到本地打开,倒是没遇到你这个错误

@panp4n
Copy link

panp4n commented Apr 26, 2023

同样的问题

@JimmyMa99
Copy link
Contributor

可能是因为使用vit-h,需要设置一下环境变量,具体已经在文档中更新

@puxiao
Copy link
Author

puxiao commented Apr 27, 2023

果然没有问题了,感谢!

@liuyongkang1-tal
Copy link

同样的问题,设置了环境变量也没有解决

@JimmyMa99
Copy link
Contributor

同样的问题,设置了环境变量也没有解决

请问sam推理后端保持开启了吗?

@liuyongkang1-tal
Copy link

开启了

@liuyongkang1-tal
Copy link

同样的问题,设置了环境变量也没有解决

请问sam推理后端保持开启了吗?

开启了的

@liuyongkang1-tal
Copy link

同样的问题,设置了环境变量也没有解决

请问sam推理后端保持开启了吗?

但我发现,GPU没有显存占用,感觉没起来似的

@JimmyMa99
Copy link
Contributor

同样的问题,设置了环境变量也没有解决

请问sam推理后端保持开启了吗?

但我发现,GPU没有显存占用,感觉没起来似的

可能需要稍微等待模型的加载,另外请检查一下,看看是否出现报错的情况

@liuyongkang1-tal
Copy link

liuyongkang1-tal commented Apr 28, 2023 via email

@liuyongkang1-tal
Copy link

liuyongkang1-tal commented Apr 28, 2023 via email

@JimmyMa99
Copy link
Contributor

我再看下啊
---- 原始邮件 ----
@.>;
Date:2023年4月28日(星期五) 下午2:59
@.
>;
@.@.>;
Subject:Re: [open-mmlab/playground] [label_anything]: Add model - Validation error (Issue #60)

同样的问题,设置了环境变量也没有解决

请问sam推理后端保持开启了吗?

但我发现,GPU没有显存占用,感觉没起来似的

可能需要稍微等待模型的加载,另外请检查一下,看看是否出现报错的情况


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

可能需要检查一下你的URL填写是否和sam后端推理的ip端口一致

@yumendecc
Copy link

运行更大模型的时候,需要等一等加载完成参数后再刷新下就OK了

@BOOSTMKII
Copy link

我也遇到了相同的问题。尝试多次也没有办法,只能使用vit_b,vit_h和hq模型都用不了,请问您最后是如何修改环境变量让问题得以解决的?谢谢!

@JimmyMa99
Copy link
Contributor

我也遇到了相同的问题。尝试多次也没有办法,只能使用vit_b,vit_h和hq模型都用不了,请问您最后是如何修改环境变量让问题得以解决的?谢谢!

你好,关于环境变量的设置可以看以下:

# Linux requires the following commands
export ML_TIMEOUT_SETUP=40
# Windows requires the following commands
set ML_TIMEOUT_SETUP=40

但是需要注意的是,硬件参数也对模型的导入有影响,我测试的时候使用的是24G显存的3090,或者只使用CPU进行推理,希望这些参数对解决您的问题有所帮助。

@BOOSTMKII
Copy link

我也遇到了相同的问题。尝试多次也没有办法,只能使用vit_b,vit_h和hq模型都用不了,请问您最后是如何修改环境变量让问题得以解决的?谢谢!

你好,关于环境变量的设置可以看以下:

# Linux requires the following commands
export ML_TIMEOUT_SETUP=40
# Windows requires the following commands
set ML_TIMEOUT_SETUP=40

但是需要注意的是,硬件参数也对模型的导入有影响,我测试的时候使用的是24G显存的3090,或者只使用CPU进行推理,希望这些参数对解决您的问题有所帮助。

谢谢,不过这个设置我跟随文档操作时已经做过了,错误信息还是显示read timed out=3.0(是在第二个打开label studio的终端中设置吗?不过我三种可能都尝试过了)。具体图片我在新提问中有贴,我使用的是48G3090,或者我试试CPU吧。

@BOOSTMKII
Copy link

我也遇到了相同的问题。尝试多次也没有办法,只能使用vit_b,vit_h和hq模型都用不了,请问您最后是如何修改环境变量让问题得以解决的?谢谢!

你好,关于环境变量的设置可以看以下:

# Linux requires the following commands
export ML_TIMEOUT_SETUP=40
# Windows requires the following commands
set ML_TIMEOUT_SETUP=40

但是需要注意的是,硬件参数也对模型的导入有影响,我测试的时候使用的是24G显存的3090,或者只使用CPU进行推理,希望这些参数对解决您的问题有所帮助。

您好,我发现了原因所在。关于vit_h模型,我原先打开label studio时使用的是anaconda powershell prompt,似乎set ML_TIMEOUT_SETUP=40命令没有作用,当我换成anaconda prompt时,就可以运行了。

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

8 participants