https://github.com/truongnv-hut/aicandy_resnet18_imageclassification_hnxhkhii
ResNet18 for Image Classification
https://github.com/truongnv-hut/aicandy_resnet18_imageclassification_hnxhkhii
aicandy artificial-intelligence computer-vision deep-learning image-classification machine-learning restnet18
Last synced: 5 months ago
JSON representation
ResNet18 for Image Classification
- Host: GitHub
- URL: https://github.com/truongnv-hut/aicandy_resnet18_imageclassification_hnxhkhii
- Owner: TruongNV-hut
- Created: 2024-09-18T07:24:28.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-09-18T07:24:49.000Z (9 months ago)
- Last Synced: 2024-11-16T10:12:03.945Z (7 months ago)
- Topics: aicandy, artificial-intelligence, computer-vision, deep-learning, image-classification, machine-learning, restnet18
- Language: Python
- Homepage: https://aicandy.vn/
- Size: 4.88 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ResNet-18 and Image Classification
ResNet-18 is a deep convolutional neural network (CNN) that is part of the ResNet (Residual Network) family, introduced by Microsoft in 2015. It consists of 18 layers and is designed to address the vanishing gradient problem, which can hinder the training of deep networks. ResNet-18 uses "residual connections" or shortcuts that allow the network to learn identity mappings, enabling more efficient training of deeper models.## Image Classification
Image classification is a fundamental problem in computer vision where the goal is to assign a label or category to an image based on its content. This task is critical for a variety of applications, including medical imaging, autonomous vehicles, content-based image retrieval, and social media tagging.## ❤️❤️❤️
```bash
If you find this project useful, please give it a star to show your support and help others discover it!
```## Getting Started
### Clone the Repository
To get started with this project, clone the repository using the following command:
```bash
git clone https://github.com/TruongNV-hut/AIcandy_ResNet18_ImageClassification_hnxhkhii.git
```### Install Dependencies
Before running the scripts, you need to install the required libraries. You can do this using pip:```bash
pip install -r requirements.txt
```### Training the Model
To train the model, use the following command:
```bash
python aicandy_resnet18_train_spigbrgr.py --train_dir ../dataset --num_epochs 10 --batch_size 32 --model_path aicandy_model_out_expntoop/aicandy_model_pth_vixylhua.pth
```### Testing the Model
After training, you can test the model using:
```bash
python aicandy_resnet18_test_eeedrhkp.py --image_path ../image_test.jpg --model_path aicandy_model_out_expntoop/aicandy_model_pth_vixylhua.pth --label_path label.txt
```### Converting to ONNX Format
To convert the model to ONNX format, run:
```bash
python aicandy_resnet18_convert_onnx_kslhrnsa.py --model_path aicandy_model_out_expntoop/aicandy_model_pth_vixylhua.pth --onnx_path aicandy_model_out_expntoop/aicandy_model_onnx_iihkdlns.onnx --num_classes 2
```### More Information
To learn more about this project, [see here](https://aicandy.vn/ung-dung-mang-resnet-18-vao-phan-loai-hinh-anh).
To learn more about knowledge and real-world projects on Artificial Intelligence (AI), Machine Learning (ML), and Deep Learning (DL), visit the website [aicandy.vn](https://aicandy.vn/).
❤️❤️❤️