This repository provides a template for image classification projects using PyTorch. It includes a Jupyter notebook (main.ipynb
) that contains the main code for the project.
- Clone this repository to your local machine.
- Install the required dependencies listed in
requirements.txt
. - Open the
main.ipynb
Jupyter notebook and follow the instructions.
Your data should be organized in the following structure:
โโโโDatabase
โ โโโโcache # This folder will be created by the program
โ โโโโData # Put all the folders with images here
# Example โฌ
โ โโโโbattery
โ โโโโbiological
โ โโโโbrown-glass
โ ...
โ โโโโwhite-glass
Each subfolder in the Data
directory represents a class, and should contain the images for that class. For example, the battery
folder should contain images of batteries, the biological
folder should contain images of biological items, and so on.
Each folder contains a README file that explains the contents of the folder. Please read these files for more information about the data.
To run the code, simply open the main.ipynb
Jupyter notebook and execute the cells in order.
@software{Hamedi_PyTorch-Project-Template,
author = {Aydin Hamedi},
license = {MIT},
title = {PyTorch-Project-Template},
url = {https://github.com/Aydinhamedi/PyTorch-Project-Template}
}
This project is licensed under the MIT License. See the LICENSE
file for details.
Copyright (c) 2024 Aydin Hamedi This software is released under the MIT License. https://opensource.org/licenses/MIT