Python AI Organ Segmentation Tutorial

  Рет қаралды 22,150

Mr. P Solver

Mr. P Solver

10 ай бұрын

CHECK OUT MY NEW UDEMY COURSE, NOW 90% OFF WITH THIS CODE:
www.udemy.com/course/python-s...
Code:
github.com/lukepolson/youtube...
Relevant Libraries/Software:
MONAI: monai.io/
LIFEX: www.lifexsoft.org/
TCIA: www.cancerimagingarchive.net/
Get Your Billy T-Shirt: my-store-d2b84c.creator-sprin...
Discord: / discord
Instagram: / mrpsolver

Пікірлер: 51
@cwtrain
@cwtrain 9 ай бұрын
Wow. This video is almost down to the pennies precisely what I do at my cancer institute. Only I'm attempting to spot tumors with edge-detection nightmares working in 3D space with DICOM slices. This is absolutely excellent. I'm going to send this video to every single person that asks me: "So what do you do for work?"
@MrPSolver
@MrPSolver 9 ай бұрын
You using AI for your edge detection?
@ApteraEV2024
@ApteraEV2024 7 ай бұрын
​@@MrPSolver..can you believe we don't recieve comment replies,?? So hopefully a Like will be received 😅❤ Awesome work bro. You said you worked with Particle Acceleration??
@ApteraEV2024
@ApteraEV2024 7 ай бұрын
Ohh, they don't have a reply option..
@VALedu11
@VALedu11 9 ай бұрын
'some other key ' = 42. I am sold. Wonderful video
@josephmargaryan
@josephmargaryan 4 ай бұрын
Wow, great, inspirational. I'm doing a bachelor's thesis on image segmentation on the thyroid. I wish to be as good as you one day.
@realchrisward
@realchrisward 9 ай бұрын
This looks incredibly powerful, thank you for sharing. Do you have any advice for how to address the problem that the model/mask is missing parts of organs. Is it just retraining or do the tools also include the ability to manually curate and refine to rois (as an example, it looks like the brain missed a good chunk of one of the hemisphere?)
@MrPSolver
@MrPSolver 9 ай бұрын
Sometimes as a postprocessing step you can fill in holes that exist within contiguous 3D regions. That would be under the assumption, I suppose, that there's no air pockets or something similar within the organ of interest I suppose.
@domillima
@domillima 4 ай бұрын
Great video. Hoping you make more in this series. Very instructive. I noted you have 3D slicer on your windows task bar. Say I have a limited number of MRIs in which I want to segment the prostate (using this example since it came up in the video) as a whole gland as well as a specific subsection of the prostate representing a lesion. How can I use slicer to segment these images and then have these segmentations fed into python? Then how would I go about including the features of the segmented area in a model (along with, say, clinical features of the patient and disease) to predict some annotated clinical outcome like cancer recurrence? I know this is not an easy question but if you're willing to make some more content on this, it would be awesome. Even start with some background information or pointing me towards some sources. Thanks!
@emrek1
@emrek1 4 ай бұрын
I feel like most people in the comments didn't try coding. I tried to replicate the same working environment but encountered countless conflicts. I know these things are a bit of luck but I don't think everyone is so lucky.
@ewoutlagendijk9604
@ewoutlagendijk9604 3 ай бұрын
Sure, some luck but also a lot of troubleshooting with package changes, device specific things etc. Which error did you get?
@ApteraEV2024
@ApteraEV2024 7 ай бұрын
Since Google is monitoring comments for Keywords... I'll say ,thanks for the A.i. content, I'm an aspiring Biomedical Engineer type guy.❤
@user-fn3ym4rv7l
@user-fn3ym4rv7l 6 ай бұрын
Bro am doing research in radiology and I love you
@lampooner_no_42
@lampooner_no_42 9 ай бұрын
There’s a lot of cool segmentation software out there! Recently I’ve been looking at PyRadiomics, maybe there is some interest here to do a video on it.
@tahabukhari3189
@tahabukhari3189 9 ай бұрын
Is the offer for the UDEMY course going to be available again in the future?
@abdulajid220
@abdulajid220 8 ай бұрын
what if the resulting file later wants to be in the form of a dot. xml? What application is it good to use?
@daddu1989l
@daddu1989l 3 ай бұрын
So helpful, thank you very much for your work!
@theinstigatorr
@theinstigatorr 9 ай бұрын
Could you please link the video you uploaded that featured ‘hr lady’. I can’t find it anywhere now 😢
@LuVD990
@LuVD990 9 ай бұрын
Hello, @Mr P Solver, I would like to ask if it is possible to do a Python code with a train model who sings a certain song. Please
@abhishekpatil9599
@abhishekpatil9599 6 күн бұрын
Hello @MrPSolver, what if I want to only segment one organ not all? I understand the loading the pre-existing model, do I need to remove the class labels from the model files (.json) that you talked about in the video?? How can we do that??
@ahmedel-sinousy4848
@ahmedel-sinousy4848 3 ай бұрын
So helpful thank you ❤
@user-id6mt1us7r
@user-id6mt1us7r 9 ай бұрын
Thanks for the great tutorial. Can this also be used for CT images of the chest area only?
@MrPSolver
@MrPSolver 9 ай бұрын
Yup!
@user-qz4fb9rx2w
@user-qz4fb9rx2w 3 ай бұрын
Can this be used for histopathological images?
@inhibited44
@inhibited44 2 ай бұрын
tried using my own ct scan dataset after getting his example to execute for me. "CT = image_loader(CT_folder)" wouldn't work with the following error "InvalidDicomError: File is missing DICOM File Meta Information header or the 'DICM'" . Weird. Maybe the ct scan in the hospital has different settings.
@Yalchin403
@Yalchin403 6 ай бұрын
I think model name change or there are some issues in donwloading the model I mean wholebody_ct_segmentation downloading part
@cagndurmus2387
@cagndurmus2387 6 ай бұрын
yes, i also have the same problem. did u find a solution ?
@ahmedel-sinousy4848
@ahmedel-sinousy4848 2 ай бұрын
after some search based on what I found, MONAI label is no longer used for segmenting organs. they developed model called 'TotalSegmentor' that is used for this stuff right now. I'm not sure from my info so don't take it as real one if oy trying to segment organs too. I tried code in the notebook but faced problem when trying to download the model. error told that he can't find the http server. so, I tried to use it from 3d slicer itself but found the same problem when trying to use the server itself in MONAI label extension.
@thoughtsbright7928
@thoughtsbright7928 9 ай бұрын
Hey man I do rly wanna to get to this level in python I am a beginner and i am never consistent, so what I do?
@benatkinson3160
@benatkinson3160 9 ай бұрын
To be good at anything you need to be consistent. The more you look into coding, the more tips and tricks you’ll find. It comes down to discipline, but also if u find it hard to be disciplined then maybe coding just isn’t for u. There are lots of other great skills to learn. Life’s short, don’t force urself to do the things u don’t enjoy!
@MrPSolver
@MrPSolver 9 ай бұрын
Agreed with this. The reason I became consistent is because I program for a living as a PhD student.
@GameFlife
@GameFlife 9 ай бұрын
U need mr shrek help
@coolmanabc1231
@coolmanabc1231 9 ай бұрын
@@MrPSolver pls mek tutorial on how to be PhD stoodentist tyvm.
@realchrisward
@realchrisward 9 ай бұрын
For me, the trick was to use python to make things that I needed for my job/studies. Necessity is the mother of invention. Pick some of the things that are the most irritatingly simple but still not automated tasks, those are ripe for python solutions.
@inhibited44
@inhibited44 3 ай бұрын
got an error from: model.load_state_dict(torch.load(model_path)) found and used : model.load_state_dict(torch.load(model_path, map_location=torch.device('cpu'))) that worked
@ApteraEV2024
@ApteraEV2024 7 ай бұрын
16:20 why did you call it 42??😅❤
@inhibited44
@inhibited44 2 ай бұрын
changed output_dir to mask folder and it didn't work even when I made the folder using forward slashes. Used , after copying from datadir = 'C:\\Users\\trobe\\Pictures\\mri\\Data\\' #Data and using "C:\\Users\\trobe\\Pictures\\mri\\Data\\mask" and it worked fine
@inhibited44
@inhibited44 2 ай бұрын
Occasionally had trouble with this line, so I kept eval and just went looking for the folder in file explorer
@SpesMagisteriiGradus
@SpesMagisteriiGradus 4 ай бұрын
thank you
@tilkesh
@tilkesh 9 ай бұрын
Thx
@leon_noel1687
@leon_noel1687 9 ай бұрын
No rap in the beginning? I'm out!
@fernandofeltrin6675
@fernandofeltrin6675 3 ай бұрын
I would like to propose help from experts in computer vision and image processing in general with regard to segmentation techniques applicable to real medical images. Months ago, I uploaded a dataset of skull MRI images (on Kaggle) showing (separated by categories) tumor masses and was questioned about the images not having labels or markings. Please understand that in a real scenario, professionals who need a diagnostic hypothesis have raw images in their hands, without markings, and precisely our effort must be to create tools that assist in diagnoses made through images. So my appeal, if you know techniques for processing these images, any help is welcome, and more than that, tools developed today for the health sector can help save lives tomorrow... My sincere thanks
@inhibited44
@inhibited44 2 ай бұрын
31:57 - 100% cpu 99% memory full at 32GB - 7 minutes and counting for my 3 year old laptop versus his 1 minute . I have to find a smaller image
@inhibited44
@inhibited44 2 ай бұрын
I used CMB-CRC-MSB-03400 - CAP 3.0 with its 218 images - executed in 6 minutes at 100% cpu and 95% memory at 32GB
@cgyh68748
@cgyh68748 9 ай бұрын
based
@inhibited44
@inhibited44 3 ай бұрын
I run this and the code with it: data = preprocessing({'image': CT_folder}) ................... My computer hits 100% cpu /100% memory and then it stops running the code at 47 seconds. Intel coreI5 cpu 16GB ram with it max for this laptop. This laptop is from 2021. Dell has laptops with photos of medical images on them - 64GB mem - need latest and greatest for this stuff.
@inhibited44
@inhibited44 2 ай бұрын
Had memory of 16GB. Doubled it to 32GB and that portion of code worked. Got further along to prediction area and had to set the system to manage virtual memory because computer needed more than 32 GB of memory . I think it was looking for 64 GB. Trying prediction again.
@morrymaasch7009
@morrymaasch7009 9 ай бұрын
*promo sm*
Python Libraries Be Like...
2:30
Mr. P Solver
Рет қаралды 93 М.
Colonizing Ganymede
31:48
Isaac Arthur
Рет қаралды 24 М.
狼来了的故事你们听过吗?#天使 #小丑 #超人不会飞
00:42
超人不会飞
Рет қаралды 50 МЛН
ELE QUEBROU A TAÇA DE FUTEBOL
00:45
Matheus Kriwat
Рет қаралды 16 МЛН
Maths with vim
0:12
Richard Lynch
Рет қаралды 19 М.
Liver segmentation using Monai
16:24
Dwij Mistry
Рет қаралды 3,1 М.
AES: How to Design Secure Encryption
15:37
Spanning Tree
Рет қаралды 119 М.
I visited the world's hardest math class
12:50
Gohar Khan
Рет қаралды 117 М.
Solving the heat equation | DE3
14:13
3Blue1Brown
Рет қаралды 1,2 МЛН
Python Image Segmentation Tutorial (2022)
31:50
Mr. P Solver
Рет қаралды 66 М.
Куда пропал 3D Touch? #apple #iphone
0:51
Не шарю!
Рет қаралды 531 М.
Дени против умной колонки😁
0:40
Deni & Mani
Рет қаралды 8 МЛН