-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wholeslidedata #6
Comments
Dear 4479917, Thank you for your interest in HookNet-TLS. Could you please provide me with the complete error trace? Sorry for the inconvenience. Best wishes, |
Thank you very much for your prompt response. I did this "python3 -m hooknettls hooknettls.default.image_path=/home/4479917/example.tif hooknettls.default.mask_path=/home/4479917/example_mask.tif" It returns: During handling of the above exception, another exception occurred: Traceback (most recent call last): Not sure if it's an issue about wholeslidedata? |
It seems that your input image does not contain the correct spacings or wholeslidedata is reading the spacings wrong: Would it be possible to share the image with me? Then I can try to debug it. Best wishes, |
Dear Mart, Thank you very much for your explanation. For the first input, I used save_image_at_spacing.py from pathology-whole-slide-data to convert svs to tiff with spacing 0.5 and 2. It's file 424218_EAS43977_HE.tif. For the second input, it's file segmented_output.tif. Here in the link are the images: It does not have spacing warnings anymore, but it stopped moving forward after running a while. Here is the traceback: It stops here. Could you kindly provide some guidance on how to proceed? Thank you very much for your time and help! |
It might be that this is due to a shared memory issue. If you are using docker could you please try to add --shm-size=4G when starting the docker. Please let me know if it still hangs or if you are not using docker. |
Thanks a bunch of for your help on this Mart! I added --shm-size=4G, now it can proceed. But stopped at the step of writing json file. Here is the traceback: I really appreciate your time and patience. Thanks a lot in advance. |
You are welcome :) For your latest problem it seems that shapely2.x has updated the interface of strtree. I have updated the docker file to install shapely1.8.4, which should work with hooknet-tls code. I will soon try to update the code to make it compatible with shapely2.0, but if you now rebuild the docker with the updated dockerfile, it should not give this error anymore. Sorry for the inconvenience. Please let me know if you still run into issues. |
Thank you very much for your great help! Best, |
Dear Mart, I really appreciate this great work you have done in TLS detection. Is it possible for you to share the script used for pretraining the weights? Your assistance in this matter would be greatly valuable. Thank you very much in advance! |
Dear Ranran, For training i used the wholeslidedata package en hooknet model. You can find example code to train it here: https://github.com/DIAGNijmegen/pathology-hooknet/blob/master/notebooks/HookNetPracticalGuide.ipynb Please let me know if you have any further questions. Best wishes, |
Dear Mart, Thank you for your guidance. I tried that ipynb, the example image /tmp/TCGA-21-5784-01Z-00-DX1.tif from https://drive.google.com/uc?id=1NefnQu3e0l4WR7Xb809gpVORXrKpJb0q cannot be found, so I downloaded TCGA-21-5784-01Z-00-DX1.svs from TCGA directly and then converted it to tif with spacings 0.5 and 2, but the size of this tif seems different from the example data. I am wondering if the data you used to pretrain HookNet-TLS corresponds to the datasets provided in this repository (the annotations are 1020 annotations_approx_05um xml files which you uploaded recently, and the images are their corresponding 1020 TIF files, which need to be downloaded from TCGA?) Additionally, could you advise on the appropriate processing steps for the .svs images obtained from TCGA? Should they be converted to .tif format with spacings of 0.5 and 2, or is there another approach to ensure that the tif can fit the annotations you provided? Thank you very much! Best, |
Dear Ranran, I have seen your email and responded, lets discuss this further in our meeting :). Best wishes, |
Dear Mart,
I attempted to run Docker, and it seems that the preinstalled version of wholeslidedata is 0.1.0. However, I encountered some issues as certain files in this version appear to be unavailable. Specifically, I received the following error messages: 'ModuleNotFoundError: No module named 'wholeslidedata.extensions'' and 'ModuleNotFoundError: No module named 'wholeslidedata.annotation.structures'.'
In response, I uninstalled wholeslidedata 0.1.0 and installed version 0.0.16. Yet, I encountered another issue with this version, resulting in the error message: 'AttributeError: module 'wholeslidedata.iterators' has no attribute 'PatchConfiguration'.'
Could you please inform me which version of wholeslidedata you used, and do you have any guidance on how to proceed from here?
Thank you for your assistance.
The text was updated successfully, but these errors were encountered: