- Project Overview
- Directory Structure
- Installation
- Usage
- Transfer Learning
- CNN Model
- Voila App
- Contributing
- License
This project involves the use of transfer learning and convolutional neural networks (CNNs) to create and deploy AI models. A Voila-based web app is also provided to interact with these models.
checkpoints/
: Directory containing model checkpoint files.src/
: Source code directory.data.py
: Data loading and preprocessing functions.transfer.py
: Transfer learning functions.cnn.py
: CNN model architecture.optimization.py
: Optimization and loss functions.train.py
: Training functions.
app.ipynb
: Voila app notebook.transfer_learning.ipynb
: Notebook for transfer learning.cnn_model.ipynb
: Notebook for CNN model training.README.md
: This README file.requirements.txt
: Python dependencies.
-
Clone this repository:
git clone https://github.com/yourusername/your-repo-name.git cd your-repo-name
-
Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate
-
Install the required packages:
pip install -r requirements.txt
- Open the
transfer_learning.ipynb
notebook. - Follow the steps to load and train the transfer learning model.
- Save the trained model checkpoint in the
checkpoints
directory.
- Open the
cnn_model.ipynb
notebook. - Follow the steps to define, train, and evaluate the CNN model.
- Save the trained model checkpoint in the
checkpoints
directory.
-
Open the
app.ipynb
notebook. -
Follow the steps to set up the Voila app interface.
-
Run the following command to launch the app:
voila app.ipynb --show_tracebacks=True
-
Interact with the app in your web browser.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.