SBU-BMI / wsinfer

🔥 🚀 Blazingly fast pipeline for patch-based classification in whole slide images
https://wsinfer.readthedocs.io
Apache License 2.0
56 stars 10 forks source link

[BUG] relative path to model in yaml config does not work #116

Closed kaczmarj closed 1 year ago

kaczmarj commented 1 year ago

using a relative path in the file section does not seem to work

the correct path is set in the validation of the yaml but not when the Weights object is instantiated. this line needs to be changed:

https://github.com/SBU-BMI/wsinfer/blob/f92d657b4664db5a4b0831c43b151cd1bdc602c2/wsinfer/_modellib/models.py#L191