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

Exception on /webhook [POST} #658

Open
nicolawern opened this issue Nov 1, 2024 · 0 comments
Open

Exception on /webhook [POST} #658

nicolawern opened this issue Nov 1, 2024 · 0 comments

Comments

@nicolawern
Copy link

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

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

1 participant