Downloads · 30 days
0
radubulimac/effnetb2-sentiment-analysis
effnetb2-sentiment-analysis is a machine learning model from radubulimac. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This project implements an image classification model using the EfficientNet B2 architecture, fine-tuned on a custom dataset. It provides a modular and easy-to-use structure for training and evaluating the model. Data…
Downloads · 30 days
0
Access
Public
Updated Aug 25, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
.jpg58.6 MB · 100%
From the Hugging Face model README
This project implements an image classification model using the EfficientNet B2 architecture, fine-tuned on a custom dataset. It provides a modular and easy-to-use structure for training and evaluating the model. Dataset used: AllenTAN/image_sentiment
project_root/
│
├── data/
│ ├── train/
│ └── test/
│
├── src/
│ ├── __init__.py
│ ├── data_setup.py
│ ├── train_and_test.py
│ ├── model.py
│
├── main.py
├── requirements.txt
└── README.md
data/: Contains the training and testing datasets.src/: Source code for the project.main.py: The entry point of the project.Clone the repository:
git clone https://github.com/brepositorium/effnetb2-sentiment-analysis.git
cd effnetb2-sentiment-analysis
Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
Install the required packages:
pip install -r requirements.txt
To train the model, run:
python main.py
This will start the training process using the EfficientNet B2 model on your dataset. The script will output training progress and final results.
src/model.py to experiment with different model architectures or layer configurations.src/data_setup.py if needed.After training, the model will output training and validation accuracy and loss. You can find these results printed in the console output.
Feel free to open issues or submit pull requests if you have suggestions for improvements or encounter any problems.
MIT License