Skip to content

A convnet trained with Genshin Impact images for character recognition

Notifications You must be signed in to change notification settings

02loveslollipop/GenshinImageClassifier

Repository files navigation

Genshin Image Classifier

A simple image classifier trained on 6 classes of Genshin Impact characters, using a custom Convolutional Neural Network (CNN) architecture.

Introduction

This project is a simple image classifier trained on 6 classes of Genshin Impact characters. The dataset was obtained from web scraping images from Pixiv.net using the tags of each 6 characters. The dataset consists of 9590 training images and 9590 test images, with each class having around 1600 images. The images were preprocessed resized to 128x128 pixels and normalized. The model was trained using a custom Convolutional Neural Network (CNN) architecture. The model was trained for 250 epochs with a batch size of 64. The model achieved an accuracy of 0.75 on the validation set.

Bias

As the images were obtained by web scraping by the tags of each character, the dataset may contain bias towards the images that despite being tagged with the character's name, may not actually be the character, either because the first image was not the character or the image was not tagged correctly. Also some images may contain multiple characters, which may cause the model to predict the wrong character.

Model

TODO: Add model architecture and training details

Requirements

  • A GPU with CUDA support
  • Python 3.11
  • CUDA 12.1
  • Conda

Installation

  1. Clone the repository
git clone https://github.com/02loveslollipop/GenshinImageClassifier
  1. Create conda environment
conda env create -f environment.yml
  1. Activate conda environment
conda activate genshin-image-classifier

About

A convnet trained with Genshin Impact images for character recognition

Topics

Resources

Stars

Watchers

Forks