Python Can';t在label studio中添加Ml后端

Python Can';t在label studio中添加Ml后端,python,machine-learning,Python,Machine Learning,我正在尝试在label studio上添加我的ML模型。 我试过这些命令 cd label-studio pip install -e . cd label_studio/ml/examples pip install -r requirements.txt label-studio-ml init my_ml_backend --script label_studio/ml/examples/simple_text_classifier.py 以下是label_studio/ml/

我正在尝试在label studio上添加我的ML模型。 我试过这些命令

cd label-studio
pip install -e .
cd label_studio/ml/examples
pip install -r requirements.txt


   label-studio-ml init my_ml_backend --script label_studio/ml/examples/simple_text_classifier.py
以下是label_studio/ml/examples中的文件:- requirements.txt

simple_text_classifier.py

dummy_model.py

pytorch_transfer_learning.py
这给了我一个错误:

ModuleNotFoundError: No module named 'simple_text_classifier'

如何在label studio上添加我的模型?

可能有点晚,但可能有人发现了这个问题。我的诀窍是什么:在
label\u studio/ml/examples
文件夹中,尝试一下

label-studio-ml init my_ml_backend --script simple_text_classifier.py
(我只是从脚本中删除了其余部分) 如果您收到一个错误,告诉您添加
--force
,请执行该操作(这将覆盖现有的
myml\u backend
文件夹),或者简单地删除
myml\u backend
文件夹,然后再次运行相同的命令

在此之后,您希望得到以下响应:

Congratulations! ML Backend has been successfully initialized in ./my_ml_backend
Now start it by using:
label-studio-ml start ./my_ml_backend

对我有效的快速解决方案是,我导航(
cd
)到包含
simple\u text\u classifier.py
的目录,即
示例
,然后从该目录执行以下命令:


label studio ml init my\u ml\u backend——脚本simple\u text\u classifier.py

请阅读标记的描述。