teamtomo / membrain-seg

membrane segmentation in 3D for cryo-ET
Other
47 stars 12 forks source link

simple python API #56

Open alisterburt opened 4 months ago

alisterburt commented 4 months ago

At the moment membrain seg is a command line tool - it would be great to enable its use as a Python only library too, thoughts?

https://teamtomo.org/fidder/ is a good example of the kind of API I think would work well

Current blocker is the lack of caching of model weights - a pooch cache should fix this nicely

Thoughts @LorenzLamm ?

LorenzLamm commented 4 months ago

Yes, agreed that it would be nice to use it as a library, too.

For my understanding: You mean the current blocker is that no model path is specified by default (with environment variables or whatever) and would need to be provided in each call a Python function?

If that's what's blocking, let's try to solve the environment variable and/or pooch cache. :)