Skip to content

ParadoxZW/Sketch2Attributes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Project of Sketch2Attributes

Intro

It's a course project. The aim of this project is to create a deep learning model that can predict the attributes of a sketch of humans (mainly based on FS2K). Basically speaking, it's a classification task (image in and attribute out). The model is based on CLIP. Its architecture is shown below. Architecture

Get Started

Following several steps to run the project:

  1. Make sure you have installed Python(>=3.6) and PyTorch(>=1.10). It's highly recommended to use conda virtual environment, run conda create -n sketch2attributes python=3.9 and conda activate sketch2attributes.
  2. Clone the project from GitHub
  3. Install CLIP following the installation guide
  4. Run git clone https://github.com/DengPingFan/FS2K.git and follow their instructions to download and split the dataset.
  5. Run conda install --file requirements.txt to install all the required packages.
  6. Run jupyter to start the Jupyter Notebook, then click the model.ipynb file to run experiments.

All procedures including data loading, model defining, training, and evaluation are done in the Jupyter Notebook, with friendly comments.

Appreciate

Great thanks to FS2K and CLIP for their valuable contributions.

About

predict the attributes of a sketch of humans

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published