Universiti Tunku Abdul Rahman (UTAR) - Bachelor of Computer Science (Honours) - UCCD3074 DEEP LEARNING FOR DATA SCIENCE
Authors:
1. Brandon Ting En Junn (21ACB01751)
2. Chin Wai Yee (21ACB03370)
3. Loh Kin Ming (21ACB02961)
Project Title: Classification of AI-Generated and Real Images using Deep Learning Techniques
This is an application-based project for a course assignment. It uses deep learning techniques to classify an image whether it is AI-generated or real.
Assignment2_group2_BrandonTingEnJunn.ipynb- Contains the main source code.
- Upload to Kaggle.
- Make sure GPU is enabled for the session.
- Start the session.
- Run the code.
- Contains the main source code.
Note:
-
Dataset and Model used are included by default only through Kaggle.
-
If Model is empty, please download
model.pthand upload it manually to Kaggle (Input -> New Model -> model.pth -> (Model Name) model -> (Framework) PyTorch -> (License) Apache 2.0 -> Create). -
"Run all" will train a new model, but "4.1 Load Model" will always load and evaluate our previously trained model.
-
Skip "4.1 Load Model" if you want to evaluate the newly trained model.
-
model_frozen.pthis the model used in our ablation studies.
demo.py- Contains the demo of the application.
- Requires Python.
- Requires
model.pthin the same directory.
Note:
-
It requires the installation of Python.
-
The application may not run if
model.pthis not found or not in the same directory asdemo.py. -
The application may run into some Python dependencies missing errors. Please install the required dependencies if prompted.
-
The application may not run properly if GPU is not found on your device.