-
Notifications
You must be signed in to change notification settings - Fork 234
Medical imaging tutorial #172
Medical imaging tutorial #172
Conversation
Check out this pull request on You'll be able to see Jupyter notebook diff and discuss changes. Powered by ReviewNB. |
I would very much like vision.core to stay independent from pydicom to avoid the dependency on the main library (ultimately, fastai.medical will be a real submodule). In medical.imaging, you have a patch to We can host the tgz with our other datasets if the SIIM is okay with that. |
Hi Sylvain, yes I totally agree, it's much cleaner to keep it separately. I'd really like to use the vision functionality (data augmentation etc.), though. Do you have a recommendation how to integrate the DICOM loading in the most efficient way and still being able to use the |
I see you're using |
Thanks a lot for your input, that was very helpful! I now created a subclass |
View / edit / reply to this conversation on ReviewNB sgugger commented on 2020-03-15T19:38:09Z Could we hide the output of this cell by storing the predictions in some variable? There is no real point seeing it. moritzschwyzer commented on 2020-03-15T19:42:54Z Sure! I just pushed a new version. |
Thanks a lot! Two things: I think we can hide one output in your notebook. And the second is I'm not sure you should change the dcmread command as PIL does not deal with int16 images AFAIK. All of this should be in your PILDicom only. |
I just found this closed issue pytorch/vision#105 that states that PIL handles int16 grayscale images. I now reverted the |
Thanks for making the changes. This is looking pretty great :) |
One follow up: the image you put as an attachment in the notebook did not arrive on GitHub. Can you put it in the |
Oh it is there properly, just not working withour doc building. Sorry, no need to do anything, will fix manually :) |
I created a medical imaging tutorial that shows how to work with X-ray DICOM data. For this matter, I updated the
load_image
function invision.core
to be able to load DICOM files using pydicom. For the tutorial, I created a small subset of the SIIM-ACR Pneumothorax Segmentation dataset with 250 DICOM files and a .csv file with labels. I informed the SIIM and they gave consent to create this subset and put it online. I'm currently hosting the .tgz file on a server of mine, but I think it would be a good idea to put it on a CDN together with the other datasets. I can forward to you the email with the permission statement from the SIIM to use their data if needed.