Skip to content

Implementing eczema detection through CNN technology in a React Native app, including the crucial aspect of model training.

License

Notifications You must be signed in to change notification settings

Abdullah-129/ReactEczemaVision

Repository files navigation

ReactEczemaVision

Screenshots

Image 2 Image 3 Image 4 Image 1

Setup for Python:

  1. Install Python (Setup instructions)

  2. Install Python packages

pip3 install -r FastAPI/requirements.txt
  1. Install Tensorflow Serving (Setup instructions)

Setup for ReactNative

  1. Install Nodejs (Setup instructions)
  2. Install NPM (Setup instructions)
  3. Install dependencies
cd EczemaScan-App
npm install -g yarn
yarn install

Training the Model

  1. Download our dataset from Google Drive.
  2. Only keep folders related to Skin.
  3. Run Google Colab in Browser.
  4. Open Eczema_detection.ipynb in google colab.
  5. In cell #2, update the path to dataset.
  6. Run all the Cells one by one.
  7. Copy the model generated and save it with the version number in the models folder.

Running the API

Using FastAPI

  1. Get inside Fast-api folder
cd Fast-api
  1. Run the FastAPI Server using uvicorn
uvicorn main:app --reload --host 0.0.0.0
  1. Your API is now running at 0.0.0.0:8000

Using FastAPI & TF Serve

  1. Get inside FastAPI folder
cd FastAPI
  1. Copy the models.config.example as models.config and update the paths in file.
  2. Run the TF Serve (Update config file path below)
docker run -t --rm -p 8501:8501 -v --rest_api_port=8501 
  1. Run the FastAPI Server using uvicorn For this you can directly run it from your server.py using pycharm or vscode run option OR you can run it from command prompt as shown below,
uvicorn main:app --reload --host 0.0.0.0
  1. Your API is now running at 0.0.0.0:8000

Running the App

  1. Get inside EczemaScan-App folder
cd EczemaScan-App
  1. Copy the URL from python server update URL to Src/scene/follow/follow.js URL if needed.

  2. Run the app (android/iOS)

npx expo start
  1. Creating public (signed APK)

About

Implementing eczema detection through CNN technology in a React Native app, including the crucial aspect of model training.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published