This project aims to classify food images and news articles into relevant categories. It consists of two main parts: image classification and text classification.
In the image classification section, various deep learning models including InceptionV3, ResNet, DenseNet, MobileNet, and Xception were implemented using Keras. Techniques such as data augmentation and handling missing labels were employed to enhance model performance. Data was downloaded from this link.
For text classification, two datasets (AG News and BBC News) were utilized to tokenize and train the NLP model.
- Implement deep learning models for image classification to classify food images.
- Develop an NLP model for text classification to categorize news articles effectively.
- Explore techniques such as data augmentation and tokenization to improve model performance.
- Present results through visualizations and evaluation metrics to assess model effectiveness.
In the image classification section, various models including InceptionV3, ResNet, DenseNet, MobileNet, and Xception were implemented using Keras. Techniques such as data augmentation and handling missing labels were employed to enhance model performance.
Image Classification
│ main.py
│ Q1_Image_Classification.ipynb
|
└───Models
│ DenseNet201_augmented_imagenet.h5
│ DenseNet201_augmented_imagenet.json
│ DenseNet201_imagenet.h5
│ DenseNet201_imagenet.json
│ history_DenseNet201_augmented_imagenet.npy
│ history_DenseNet201_imagenet.npy
│ history_Xception_augmented_imagenet.npy
│ Xception_augmented_imagenet.h5
│ Xception_augmented_imagenet.json
|
└───Pytorch ResNet
test.ipynb
train.ipynb
For text classification, two datasets (AG News and BBC News) were utilized to tokenize and train the NLP model.
Text Classification
│ main.py
│ Project2_P2_NLP.ipynb
│
├───Data
│ BBC News Train.csv
│ bbc_test.csv
│ data_news.csv
│ test.csv
│ test_ag.csv
│ train.csv
│
└───Models
my_model.h5
tokenizer_model.json
- For image classification, navigate to the
Image Classification
directory and runmain.py
. - For text classification, navigate to the
Text Classification
directory and runmain.py
.
- Image classification results can be found in
Q1_Image_Classification.ipynb
. - Text classification results can be found in
Project2_P2_NLP.ipynb
.
We welcome any feedback, bug reports, and suggestions. Please let us know if you encounter any issues or have ideas for improvement.