Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malwarebo/carcinet
Basic breast cancer detection using Machine Learning
https://github.com/malwarebo/carcinet
deep-learning keras machine-learning matplotlib numpy python3 scipy tensorflow
Last synced: 2 days ago
JSON representation
Basic breast cancer detection using Machine Learning
- Host: GitHub
- URL: https://github.com/malwarebo/carcinet
- Owner: malwarebo
- Created: 2019-09-30T04:45:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-11T16:56:14.000Z (over 2 years ago)
- Last Synced: 2024-11-10T08:38:51.363Z (about 2 months ago)
- Topics: deep-learning, keras, machine-learning, matplotlib, numpy, python3, scipy, tensorflow
- Language: Python
- Homepage:
- Size: 352 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cancer Detect
This was a Hackathon project which uses machine learning to detect breast cancer at early stage.
# Tools and Setup (Linux)
## Install virtual environment
### Install **pip** first
sudo apt-get install python3-pip
### Then install **virtualenv** using pip3
sudo pip3 install virtualenv
### Now create a virtual environment
virtualenv venv
>you can use any name insted of **venv**
### You can also use a Python interpreter of your choice
virtualenv -p /usr/bin/python3.6 venv
### Active your virtual environment:
source venv/bin/activate
### Using fish shell:
source venv/bin/activate.fish
### To deactivate:
deactivate
### Create virtualenv using Python3
virtualenv -p python3 myenv### Instead of using virtualenv you can use this command in Python3
python3 -m venv myenv## Installation without sudo
curl https://bootstrap.pypa.io/get-pip.py | python3.6 - --user
This may sometimes give a warning such as:
WARNING: The script wheel is installed in '/home/ubuntu/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
### Verification
After this, pip, pip3, and pip3.6 can all be expected to point to the same target:
$ (pip -V && pip3 -V && pip3.6 -V) | uniq
pip 18.0 from /usr/local/lib/python3.6/dist-packages (python 3.6)Of course you can alternatively use python3.6 -m pip as well.
$ python3.6 -m pip -V
pip 18.0 from /usr/local/lib/python3.6/dist-packages (python 3.6)# Install virtualenvwrapper
pip3.6 install virtualenvwrapper## Working!!
python3.6 -m virtualenv venv## Install Tensorflow
$ pip install --upgrade tensorflow
$ pip install numpy scipy
$ pip install scikit-learn
$ pip install pillow
$ pip install h5py
$ pip install kerassudo apt-get install python-scipy
or
sudo pip3.6 install scipy --upgrade# Install other tools
$ pip install numpy opencv-contrib-python
$ pip install pillow
$ pip install tensorflow keras
$ pip install imutils
$ pip install scikit-learn matplotlib# Configuration
Inside the src *config.py* change the path for ORIG_INPUT_DATASET and BASE_PATH to the directories where you have stored the image data. I recommened putting the images in datasets/orig and datasets/idc.