Skip to content

safer directory to download pretrained models #48

@rjlopez2

Description

@rjlopez2

While using a containerized application: napari-microsam, which uses trackatstra, I am encountering an error that seem to be triggered when downloading pretrained models. I guess the issues is in this function:
https://github.com/weigertlab/trackastra/blob/8f3e96e84926160ab3d871eedabc3f448cf68834/trackastra/model/pretrained.py#L60C5-L60C24
For the seek to avoid repetition, a detailed explanation of the error and our setup is described here: computational-cell-analytics/micro-sam#1124 (comment)
The problem seems to be that trackastra is trying to pull the models to the sitepackages directory, which in a containerized application does not work due to writing permissions issue.
Would it be possible to set this location in a safer place such as for instance the default cache folder? or allow the user to specify a different directory?
That would allow more portability of the app when runs in a containerized environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions