label-studio-ml-backend icon indicating copy to clipboard operation
label-studio-ml-backend copied to clipboard

Change default work_dir for model annotation results

Open laxmimerit opened this issue 3 years ago • 4 comments

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. image

laxmimerit avatar Sep 19 '22 06:09 laxmimerit

Hi @laxmimerit What do you want to achieve? Do you want your version files to be stored not with your code fiiles?

KonstantinKorotaev avatar Sep 21 '22 14:09 KonstantinKorotaev

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: @.***>

laxmimerit avatar Sep 21 '22 17:09 laxmimerit

In your init_app add param model_dir with the folder of your choice. Check this example.

KonstantinKorotaev avatar Sep 23 '22 13:09 KonstantinKorotaev

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: @.***>

laxmimerit avatar Sep 23 '22 13:09 laxmimerit