Update README.md
Browse files
README.md
CHANGED
|
@@ -5,7 +5,19 @@ tags:
|
|
| 5 |
---
|
| 6 |
# Simple Web UI for MedImageInsight: Open-Source Medical Image Embedding Model
|
| 7 |
|
| 8 |
-
This repository is a clone of [Lion AI MedImageInsights](https://huggingface.co/lion-ai/MedImageInsights) and shows how easily you can create a simple Web UI for the Model.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
## Known Issues
|
| 11 |
In the UI, selecting an URL does not always work due to CORS issues. Take local images to be save.
|
|
|
|
| 5 |
---
|
| 6 |
# Simple Web UI for MedImageInsight: Open-Source Medical Image Embedding Model
|
| 7 |
|
| 8 |
+
This repository is a (somewhat) clone of [Lion AI MedImageInsights](https://huggingface.co/lion-ai/MedImageInsights) and shows how easily you can create a simple Web UI for the Model.
|
| 9 |
+
I added some less CORS restriction to the fast api server and MPS Support (it was only CUDA before) for the medimageinsightmodel.py.
|
| 10 |
+
|
| 11 |
+
CUDA (Compute Unified Device Architecture) and MPS (Metal Performance Shaders) are two frameworks that enable GPU acceleration, but they are platform-specific:
|
| 12 |
+
|
| 13 |
+
- **CUDA** is a parallel computing platform developed by NVIDIA. It provides tools and libraries specifically designed to utilize NVIDIA GPUs for intensive computations, making it a preferred choice for deep learning and AI on systems with NVIDIA hardware.
|
| 14 |
+
|
| 15 |
+
- **MPS** (Metal Performance Shaders) is Apple’s framework for GPU-accelerated processing on macOS and iOS. It provides GPU support for Metal-compatible devices, including Apple's own hardware (like M1/M2 chips). Using MPS allows machine learning models to run on Apple hardware without needing an NVIDIA GPU.
|
| 16 |
+
|
| 17 |
+
In this Web UI, MPS support has been added to make the tool accessible on Apple devices with Metal-compatible GPUs, not just on NVIDIA GPUs with CUDA.
|
| 18 |
+
|
| 19 |
+
**Long story short:** If you are on a Mac, you might get better performance with MPS. After running the Fast API you see "Using MPS backend for model execution." if its supported by our machine.
|
| 20 |
+
|
| 21 |
|
| 22 |
## Known Issues
|
| 23 |
In the UI, selecting an URL does not always work due to CORS issues. Take local images to be save.
|