Skip to content

Skin cancer detection using Convolutional Neural Networks (CNN) involves training a deep learning model to classify images of skin lesions as either cancerous or non-cancerous. CNNs are particularly well-suited for image classification tasks due to their ability to automatically learn spatial hierarchies of features from input images.

Notifications You must be signed in to change notification settings

Code061/Skin-Cancer-Prediction.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skin Cancer Detection

This project aims to detect skin cancer from images using a deep learning model. The project includes training the model, making predictions, and evaluating the model's performance.

Project Structure

  • models/: Directory containing the trained model.
  • src/: Directory containing the training script.
  • app.py: Streamlit application for skin cancer detection.
  • main.py: Script to train the model.
  • predict.py: Script to make predictions and evaluate the model.

Setup

  1. Clone the repository:

    git clone <repository-url>
    cd Mini-project_code
  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
    • On macOS/Linux:
      source venv/bin/activate
  4. Install the dependencies:

    pip install -r requirements.txt

Training the Model

To train the model, run the main.py script:

python main.py

Making Predictions

To make predictions using the trained model, run the predict.py script:

python predict.py

Running the Streamlit App

To run the Streamlit app, use the following command:

streamlit run app.py

This will start the Streamlit server, and you can view the app in your web browser at the URL provided in the terminal output (usually http://localhost:8501).

Dependencies

  • streamlit
  • tensorflow
  • numpy
  • scikit-learn

These dependencies are listed in the requirements.txt file and can be installed using pip install -r requirements.txt.

License

This project is licensed under the MIT License

About

Skin cancer detection using Convolutional Neural Networks (CNN) involves training a deep learning model to classify images of skin lesions as either cancerous or non-cancerous. CNNs are particularly well-suited for image classification tasks due to their ability to automatically learn spatial hierarchies of features from input images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages