label-studio-ml-backend: ImportError: cannot import name 'LabelStudioMLBase' from 'label_studio.ml'
Getting this error when trying to follow the guide: https://labelstud.io/guide/ml.html
at label-studio-ml init my_ml_backend --script label_studio-ml/examples/simple_text_classifier.py step
p.s.: not sure if it matters, but I didn’t run the pip install -r requirements.txt command, since I already have newer versions of the listed packages
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 22 (13 by maintainers)
Hi @serjrd,
You can skip the last two steps by just replacing:
self.project_dir=Nonewith
self.project_dir="/label-studio/data/media/"in mmdetection.py
Alright, so after a while it seems that I can sum up all the issues I faced on my path to set up ml-backend:
requests.exceptions.MissingSchema: Invalid URL '/data/upload/41__2021.03.23_18-27_urDDvKC.jpg': No schema supplied. Perhaps you meant http:///data/upload/41__2021.03.23_18-27_urDDvKC.jpg?. Had to manually addhttp://....part.Authentication credentials were not providedproblem. Not really sure at the moment how to fix this issue better.Thank for the help @rm-data-viz
There’s clearly lots to be fixed!
@rm-data-viz
As I said, it doesn’t show any errors. I don’t know if something got broken at 1.0.0, but it just doesn’t work the way I thought it should.
I tried deleting both label-studio and label-studio-ml-backend and installing them from scratch.
So here’s what I did:
I set up labeling interface like this:
I add machine learning backend and it says ‘connected’. The
Display ML-predicted annotations when labelingtoggle is active.But when I go ahead and import some images and open them for labeling objects - nothing happens. No errors in console. No predicted bounding boxes. Nothing 😦