-
Notifications
You must be signed in to change notification settings - Fork 28
Description
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.