An open API service indexing awesome lists of open source software.

https://github.com/aidinhamedi/pytorch-project-template

A Simple Template For A PyTorch Classification Project πŸ˜„
https://github.com/aidinhamedi/pytorch-project-template

ai artificial-intelligence classification cnn cnn-classification deep-learning efficientnet python pytorch pytorch-classification pytorch-implementation pytorch-template template template-project

Last synced: 2 months ago
JSON representation

A Simple Template For A PyTorch Classification Project πŸ˜„

Awesome Lists containing this project

README

        

# Classification with PyTorch

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/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.

🚧 There's a new version coming... 🚧

## πŸš€ 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
```bib
@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