HumanSignal / label-studio-ml-backend

Configs and boilerplates for Label Studio's Machine Learning backend
Apache License 2.0
585 stars 261 forks source link

different versions of label studio sdk. #564

Closed hh1985 closed 5 months ago

hh1985 commented 5 months ago

Hi

I noticed the requirement of label studio sdk is label-studio-sdk==0.0.34 in the master branch. Just wonder if this will cause any compatibility issue if I write code to deal with the UI using sdk > 1.0 and interact with the backend using sdk < 1.0. What to do if I want all parts to use label-studio-sdk > 1.0?

makseq commented 5 months ago

If you mix your environments for ml backend and UI, then it will cause problems, 0.0.34 and 1.0 are totally not compatible.
However, we are planning to upgrade our ML backends to have SDK 1.0 everywhere.

I recommend to use separate python environments for ML and UI. Or wait until we release new ML backends with SDK 1.0.