This project uses a deep learning model to classify MRI scans into different phases: 'EO', 'IO', 'IPTE', 'LO', and 'PTE'.
- You should have Docker installed on your machine to use this model.
- You will need to download the model:
-
Extract the zip file. This will place the project files into a directory on your local machine.
-
Navigate to the project directory. This is the location where the project files are stored.
-
Within this directory, you will find two Bash scripts. The first script,
build.sh
, builds a Docker image from the Dockerfile. The second script,run.sh
, runs the Docker image. -
Open a terminal window and navigate to the project directory.
-
Run the following commands to give execute permissions to your scripts:
-
Execute the
build.sh
script to build the Docker image: -
Once the Docker image has been successfully built, open the
run.sh
file. -
Replace
TEST_DIR
with the path to your test data directory andTEST_NAME
with the name of the test image (in '.jpg' format) you wish to classify. -
Save and close the file.
-
Execute the
run.sh
script to run the Docker container and make the prediction: -
The script will print a prediction for the test image, indicating the phase the MRI scan most likely belongs to along with the associated confidence percentage.
- Your Dockerfile should be located in the same directory as your Bash scripts.
- The model file should be located in the directory specified by the
MODEL_DIR
environment variable. - download the model: https://drive.google.com/file/d/1-77OVZFZwxeh-JkJZGC9VLxZx1eamBa1/view?usp=sharing
- The test image should be located in the directory specified by
TEST_DIR
. - The name of the test image should match
TEST_NAME
as defined in therun.sh
script. - Always remember to grant execute permissions to your Bash scripts before running them.
- Ensure that Docker is installed and running on your system.
- To modify the
MODEL_DIR
andMODEL_NAME
environment variables, adjust them in the operating system where Docker is running. These variables denote the location and name of the model used for prediction.