label-studio-ml-backend
label-studio-ml-backend copied to clipboard
Change default work_dir for model annotation results
Hi,
How can I change default location of annotations result which is being stored in the form of .json.
I want to change location of following directories which are being created in cwd.

Hi @laxmimerit What do you want to achieve? Do you want your version files to be stored not with your code fiiles?
Yes. I don't want it to be stored with the code files. I want to keep my code files dir clean.
On Wed, 21 Sep 2022 at 8:16 PM, Konstantin Korotaev < @.***> wrote:
Hi @laxmimerit https://github.com/laxmimerit What do you want to achieve? Do you want your version files to be stored not with your code fiiles?
— Reply to this email directly, view it on GitHub https://github.com/heartexlabs/label-studio-ml-backend/issues/162#issuecomment-1253818852, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD7QW5HO5VREOSHBDGOGBZDV7MNVPANCNFSM6AAAAAAQPZ2MXU . You are receiving this because you were mentioned.Message ID: @.***>
In your init_app add param model_dir with the folder of your choice. Check this example.
Thanks
On Fri, 23 Sep 2022 at 7:22 PM, Konstantin Korotaev < @.***> wrote:
In your init_app add param model_dir with the folder of your choice. Check this example https://github.com/heartexlabs/label-studio-ml-backend/blob/master/label_studio_ml/examples/the_simplest_backend/_wsgi.py#L121 .
— Reply to this email directly, view it on GitHub https://github.com/heartexlabs/label-studio-ml-backend/issues/162#issuecomment-1256245863, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD7QW5CAM6HHPOSPQNC5RRTV7WY2XANCNFSM6AAAAAAQPZ2MXU . You are receiving this because you were mentioned.Message ID: @.***>