HumanSignal / HumanSignal/label-studio-ml-backend

NameError: name '_update_fn' is not defined when using the SAM

Open
#393 13 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

Hi,

I installed the ml-backend according to the official steps:
` git clone https://github.com/HumanSignal/label-studio-ml-backend.git`
` cd label-studio-ml-backend/`
` pip install -e .`

Then I installed SAM and started label-studio-ml:
`pip install -r label_studio_ml/examples/segment_anything_model/requirements.txt `
`label-studio-ml start label_studio_ml/examples/segment_anything_model`

It resulted in a success that shows it was running on http://127.0.0.1:8080

But when I started the label studio, and config the SAM model:
![image](https://github.com/HumanSignal/label-studio-ml-backend/assets/45763667/cfe8a71e-9f0b-4b8c-aa41-695dc1dc2c54)

I get this error:
label-studio-ml-backend/label_studio_ml/model.py", line 112, in fit
if _update_fn:
NameError: name '_update_fn' is not defined

Could you help with this issue?

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.