Open yann-rdgz opened 4 months ago
Dear Yann,
Thank you for bringing this issue to my attention and suggesting a solution for the first error. I agree with your proposed fix and have implemented it. However, I'm hesitant about the second error due to some typing discrepancies I found in the original code.
I've updated the main branch with the fix for the first error and addressed the typing issues. You can view the changes here: https://github.com/DIAGNijmegen/pathology-hooknet-tls/commit/d2ff3c1182350ae22d849952290b8660dce78717.
Interestingly, I've previously processed TCGA-18-3406-01Z-00-DX1 without encountering these errors. Could you please review the updated code to see if the issues persist? Feel free to open a PR, by cloning the repo, create a new branch, and then submit the PR. If you encounter any issues, don't hesitate to let me know, and I'll look into it further.
Best wishes, Mart
Dear Mart, Thank you for the update ! 🙏 I will try and give you a feedback
About the second one, I look closely and it depends of the version of shapely:
v1.8.5
: query returns Polygons
https://github.com/shapely/shapely/blob/f02c4c72d29862ade0708ce777d0316fbba44fef/shapely/strtree.py#L234I don't know why but I installed a different version of shapely! Maybe the query_geoms
method can be used to query only geometry for all versions!
Best wishes, Yann
Dear Yann,
Thank you so much for looking more closely to the second issue and finding the problem. I would say the algorithm should work at least with shapely2.0 (and preferably will all versions).
I will check your proposed solution and do some tests asap.
Thanks again for your input, very helpful!
Best wishes, Mart
Thanks a lot for sharing and for your work !
I have 2 errors when predicting at the step of postprocessings:
the first one is related to
MultiPolygon
object:possible fix: in postprocessings.py >
convert_polygons_to_annotations
the other one is related to
STRTree
object:possible fix: in postprocessings.py >
in_tls
FYI: I wanted to open a PR but I am not able to push a branch !
Thanks again for your this great work!