Skip to content

yjg30737/pyqt-torch-cnn-cifar10-gui

Repository files navigation

pyqt-torch-cnn-cifar10-gui

PyQt GUI showcase to use basic pytorch CNN model trained CIFAR10 dataset

Model which is used in this script is image classification model.

I used kaggle notebook to train the model, which needs performance.

You can see the model training code in here.

"cifar_net.pth" is the model made out of it, which is very small and simple.

That means this model is not accurate. This is more like for studying purpose rather than making model with great accuracy, so don't worry about it.

You can see the whole tutorial in pytorch official tutorial site.

If you want to get far more accurate model example, try this!

Requirements

  • PyQt5 >= 5.14
  • torch
  • torchvision
  • numpy

How to Install

  1. git clone ~
  2. pip install -r requirements.txt
  3. python main.py

After running the script, the model will be loaded. You can see the input line at the upper side of the window. Add any image URL from the web, click the run button, and see what happens.

Preview

a

Right!

b

Wrong!

c

Right!

About

PyQt GUI showcase to use basic CNN model trained CIFAR10 dataset

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages