Simple code for convolution and a CNN to denoise an image with real-time display in Python / PyTorch
ฝัง
- เผยแพร่เมื่อ 11 ก.ย. 2024
- Code from scratch in Python and PyTorch for a convolutional neural network (CNN) to denoise an image
Basic principles covered
Real-time image display
My thanks professor Reader, your videos have been a valuable source of information in my understanding of nuclear imaging.
Thank you, very glad you find my videos helpful
I would like to express my sincere gratitude to you for your fantastic teaching videos that have helped me a lot in implementing projects. you have always inspired me with such easily understanable solutions to complex problems.
Thank you so much for your feedback, this really means a lot!
Thank you Andrew for posting such informative and valuable videos. There is a lack of such content out there. Keep up this great work
Thanks Ali, really appreciate your encouragement.
You help me a lot to get a good intuition for my programming solutions.
Keep up you help us a lot
Very good to know, many thanks for the encouragement
Once again excellent video professor Reader thank you so much
Really appreciate the feedback, many thanks!
Thank you for this nice "Behind The Scenes" video.
Glad you found it helpful Zach! Hope all is going well for you.
You are the best teacher
Very kind, thanks for the feedback!
Thank You Professor. It helped a lot in research and implementation.
Glad to hear it was helpful! Thanks for the feedback.
Nice video, Andrew!
I just have one question: What would you do if you didn't have the true image?
Thank you!
Many thanks! You can do a self supervised approach - a very simple example being to artificially create a noisier version of the image that you have, and train the CNN to denoise that back to the version of the image that had not been made noisier. Then use that trained CNN on the original image. But there are other methods that are more sophisticated of course.
Thank you Andrew! That is a very helpful video!
Thanks for the feedback Paulo, good to know this is helpful!
Hi sir your videos are very helpful to understand and learn and is there any books to learn python code for medical image.
Many thanks for your feedback. There are surely books available on this topic, although I have not found one in particular. I will hopefully write my own book at some point....
Can i use max-pooling as one of the layer here?
Absolutely. With max pooling though you need to be careful with the size of the feature maps. In this video I use an image output that is the same size as the input. So if using max pooling or other downsampling methods, then be sure also to up sample to deliver the correctly sized output. Hope that makes sense.
@@AndrewJReader thank you professor 👍
👋It is a wonderful video to show the concept. How can I download your code to try it out.
Thanks Steve for your encouraging feedback. I only do these teaching videos for now, with no repository (yet?) of code. The key is to explain the principles really, and encourage people to write their own code.
wish you the best
Thank you again Mohsen
Thank you so much prof. but how do i convolve image with a kernel matrix using numpy only
Thanks for your comment. You can use numpy arrays with SciPy: docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html
I'm doing project which is similar to this, is there a way to get Kt from you ?
Thanks for the comment - not sure that I can offer dedicated input to a project, but I'm usually able to reply to specific questions here in the comments for the video. Best wishes for your project!
Can i run in notebook ?
You can find how this would be adaptable to a notebook, for example, by checking the last part of this video: th-cam.com/video/IhETD4nSJec/w-d-xo.html It's only the display parts that need to be adapted.