Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CannyLab/scones

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Source Code for "Scones: Towards Conversational Authoring of Sketches"

Paper

Please find our paper here.

Composition Proposer

Prerequisites

To train new models and/or run inference on published pre-trained checkpoints for the composition proposer, you will need the following prerequisites:

  • Tensorflow 2.3.1
  • Tensorflow Estimator 2.3.0
  • Huggingface Transformers 3.1.0
  • nltk 3.5
  • tqdm 4.50.2
  • numpy 1.18.5
  • Data and Pre-trained GLoVe embedding listed in the section below

Data

For Training/Eval only: Scones is trained on CoDraw data, which can be downloaded in JSON format from here. Please download the json file and move it into the data/ folder at the root of the repo

For Training/Eval/Prediction only (generating new scenes based no captions): Scones preprocesses text tokens into GLoVe vector. We use 300-d GLoVe vectors trained on Common Crawl with 42B tokens. Please download the file glove.42B.300d.zip from here and extract the file glove.42B.300d.txt into the data/ folder.

Pretrained Model

A new pretrained model that uses the huggingface GPT-2 implementation can be downloaded from here. This model achieves 3.53 for the similarity metric on CoDraw dataset's test set.

Training

To train the model, simply run python train_state.py

Eval

To run evaluation on the test set, change the model_ckpt variable in run_eval.py to the desired checkpoint path. Then, run: python run_eval.py

Generation

Coming soon.

Object Sketchers

Coming soon.

About

Source Code for "Scones: Towards Conversational Authoring of Sketches"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.