|
Hello Reader, Welcome to another edition of PYCAD newsletter where we cover interesting topics in Machine Learning and Computer Vision applied to Medical Imaging. The goal of this newsletter is to help you stay up-to-date and learn important concepts in this amazing field! I've got some cool insights for you below β |
I've used lots of deep learning models for image segmentation in my career. Here's one issue that we constantly faced when using them through an API.
β
Image segmentation models such as YOLOv8 or Mask RCNN are very useful in a variety of computer vision applications.
β
If you're building a cloud based image segmentation solution, you most likely will need to deploy your model through an API.
β
This means that your model will live in a separate entity like a docker container.
β
In most scenarios you'll have a REST API that controls how your backend or frontend interacts with the model.
β
These models produce masks as the main output.
β
These masks are basically binary images that have the same size as your input images.
β
If you return these masks from your REST API as they are, it will require a lot of time to transmit that information from your API to your backend or frontend server.
β
This will quickly become a bottleneck for your application performance.
β
Solution?
β
Don't return full masks. Return polygons instead.
β
Polygons represent the border of the masked regions.
β
This means that they require a lot less time to transfer.
β
Big win for performance!
β
But you need masks in the backend and frontend and not polygons right?
β
Well, just reconstruct the masks from the polygons.
β
You can use a function like cv2.fillpoly to achieve this.
β
Sometimes small modifications can lead to great improvements in terms of performance.
I continue to test functionalities from RunPod and so far Iβm really loving it!
Last week I created an inference endpoint that serves a deep learning model with a per-use cost model. So I only pay when an actual inference happens.
This week I tested their VM instances.
It is extremely simple to create one.
You have several options, you can clearly see the pricing, and itβs as easy as a click of a button to deploy the VM.
Itβs also simple to connect to the VM through VS Code.
I am currently renting a machine thatβs costing me around $0.5/hour.
But this machine has:
What am I doing with it? Testing nnUNetv2 for medical imaging segmentation!
β
|
My friends, as you probably know, there is a war going on in Palestine right now. It hits close to home because I consider Palestinians as my own. We speak the same language and we follow the same values and traditions.
There has been an extreme case of misinformation going on. Even AI, which is a technology that we all admire has been used to amplify that misinformation. I have never seen this level of propaganda in my life.
Hence, my message to you my dear subscriber is to not just consume news as they are. Try to be critical when you read news about this ongoing conflict.
We often speak about bias and its effects on AI applications. We are now witnessing, in real time, a media bias that is almost completely one sided. This has caused more and more deaths, atrocities and even genocide to the people of Gaza.
To help you understand better the Palestinian side, which is the less powerful side in the information war, I want to share with you this, this and this video.
Stay blessed and stay informed.
That's it for this week's edition, I hope you enjoyed it!
π Learn how to build AI systems for medical imaging domain by leveraging tools and techniques that I share with you! | π‘ The newsletter is read by people from: Nvidia, Baker Hughes, Harvard, NYU, Columbia University, University of Toronto and more!
Hello Reader, Welcome to another edition of PYCAD newsletter where we cover interesting topics in Machine Learning and Computer Vision applied to Medical Imaging. The goal of this newsletter is to help you stay up-to-date and learn important concepts in this amazing field! I've got some cool insights for you below β Zoom That Works Everywhere If you canβt zoom any pane in your web DICOM viewer, youβre doing extra work for no reason. Think of it like this: when something is small, you bring it...
Hello Reader, Welcome to another edition of PYCAD newsletter where we cover interesting topics in Machine Learning and Computer Vision applied to Medical Imaging. The goal of this newsletter is to help you stay up-to-date and learn important concepts in this amazing field! I've got some cool insights for you below β A Quick Look at Our Volume Measurement Tool One of the tools weβve been working on is a simple way to estimate 3D volumes directly inside the viewer. You start by drawing a...
Hello Reader, Welcome to another edition of PYCAD newsletter where we cover interesting topics in Machine Learning and Computer Vision applied to Medical Imaging. The goal of this newsletter is to help you stay up-to-date and learn important concepts in this amazing field! I've got some cool insights for you below β How We Build Our DICOM Viewers Using Plugins One thing we focus on when building DICOM viewers is keeping every feature as a separate plugin. This gives the app a clean structure...