Closed
Description
I am trying to deploy NER example model trained on my local machine along with the Label Studio project to another machine. I've gone through following steps:
- Recreated Label Studio and ML Backend environments similarly as on a target machine
- Copied folder with the model itself (folder named with just integers) to target machine ML Backend folder.
- Extracted content (data, annotations and predictions) of the project through Label Studio API into json format (using
...export?exportType=JSON&download_all_tasks=true
command) - Imported project json file into the newly created Label Studio project.
When trying to initialize and pair LS and ML Backend on a new machine, i am getting :
[2022-05-30 10:18:56,133] [ERROR] [label_studio_ml.model::get_result_from_last_job::128] 1647350146 job returns exception: Traceback (most recent call last): File "/Users/user/Projects/label-studio-ml-backend/label_studio_ml/model.py", line 126, in get_result_from_last_job result = self.get_result_from_job_id(job_id) File "/Users/user/Projects/label-studio-ml-backend/label_studio_ml/model.py", line 108, in get_result_from_job_id assert isinstance(result, dict) AssertionError
and it keeps repeating for each job
Should any additional steps be performed during deploy of the project/model to other environments ?
I've tried with following LS versions (1.1.1 - my initial one, 1.4.1post1 - most recent one) and the most current code base of ML backend. Using Python 3.8 and MacOS for both source and target environments.