HumanSignal / HumanSignal/label-studio-ml-backend

Exception on /webhook [POST}

Open
#658 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.1k
Forks
490
Avg merge
1d 14h
Merged PRs (30d)
3

Description

When I try to use the Start Training button from labelstudio front end running v1.13.1 and current ML backend (commit 9fb7f4a) I get an error
```
ml-backend-1 | File "/usr/local/lib/python3.8/site-packages/label_studio_ml/api.py", line 125, in webhook
ml-backend-1 | model = MODEL_CLASS(project_id, label_config=label_config)
ml-backend-1 | TypeError: __init__() takes 1 positional argument but 2 were given
```

Looking at api.py line 125, the call to MODEL_CLASS is different than every other similar call to MODEL_CLASS

(lines 64, 99). When I update line 125 as below it works and calls my custom fit method in the backend. Is there something I am doing wrong to make it work in its current configuration?
```
model = MODEL_CLASS(project_id=project_id,
label_config=label_config)
```

![Screenshot from 2024-11-01 09-58-49](https://github.com/user-attachments/assets/0431e390-5d88-4564-ad0d-3ac570892e0e)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.