Skip to content

Aydinhamedi/PyTorch-Project-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Classification with PyTorch

License: MIT Ruff

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.

๐Ÿš€ Getting Started

  1. Clone this repository to your local machine.
  2. Install the required dependencies listed in requirements.txt.
  3. Open the main.ipynb Jupyter notebook and follow the instructions.

๐Ÿ“‚ Data Organization

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.

๐Ÿ“ƒ READMEs in Folders

Each folder contains a README file that explains the contents of the folder. Please read these files for more information about the data.

๐Ÿ“ฆ Running the Code

To run the code, simply open the main.ipynb Jupyter notebook and execute the cells in order.

๐Ÿ“š Citing

@software{Hamedi_PyTorch-Project-Template,
author = {Aydin Hamedi},
license = {MIT},
title = {PyTorch-Project-Template},
url = {https://github.com/Aydinhamedi/PyTorch-Project-Template}
}

License

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