PyQt example of using fine-tuned resnet50 model for image classficiation of user-defined image (anteater, hyena)
ResNet50 is an image classification model. While it is excellent on its own, it is often used in creating custom models due to its flexibility in transfer learning and fine-tuning.
You can find it in the Internet. Well..
If you want to understand the fine-tuning, i think you have to know the concept of the transfer learning first.
Fine-tuning is process that making any model to recognize or process the user-defined dataset. See the kaggle notebook in the How To Run section to know how it works.
- PyQt5 >= 5.14
- torch
- torchvision
- numpy
- Get the fine-tuned model from this kaggle notebook.
- git clone ~
- Put the model file (result.pth) into the root folder of this repo.
- pip install -r requirements.txt
- python main.py
- Type the image url of anteater or hyena.
- Press "Run"
The result was hyena with a probability of 99.96% :)