HumanSignal / label-studio-ml-backend

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

TypeError: init_app() got an unexpected keyword argument 'model_dir' #309

Open samhoff20 opened 1 year ago

samhoff20 commented 1 year ago

When executing _wsgi.py from within examples/segment_anything_model/ I'm getting a type error that says the following:

Ubuntu 22.04 Python 3.11.4

python _wsgi.py -p 4243
Traceback (most recent call last):
  File "/home/sam/Projects/labelSAM/label-studio-ml-backend/label_studio_ml/examples/segment_anything_model/_wsgi.py", line 107, in <module>
    app = init_app(
          ^^^^^^^^^
TypeError: init_app() got an unexpected keyword argument 'model_dir'
JKYang01 commented 1 year ago

hi there. I have the same issue when executing the _wsgi.py

hihosilvers commented 1 year ago

@JKYang01 reset to previous commit 3a9486c4f5084820b83811f5b3996fc63e331f5a https://github.com/HumanSignal/label-studio-ml-backend/issues/310#issuecomment-1669071862

dmenig commented 11 months ago

Same here.