Giter VIP home page Giter VIP logo

Comments (10)

hardmaru avatar hardmaru commented on August 14, 2024 4

Hi! Not sure if this helps, but I wrote some scripts in this repo that you can use to convert the .npz vector sketches to .svg files, and also display them if you want inside a Jupyter notebook.

You may want to play around with this script, and modify it to batch-process the files the way you want.

from quickdraw-dataset.

thompson318 avatar thompson318 commented on August 14, 2024 3

I've been using this. It creates a lot of svg images, but they're compact.

https://pypi.org/project/ndjsonTosvg/

from quickdraw-dataset.

enjalot avatar enjalot commented on August 14, 2024 1

Hey Luis, I've been using d3.js to draw SVG versions of the drawings here:
https://bl.ocks.org/enjalot/a2b28f0ed18b891f9fb70910f1b8886d
I'm using some node.js scripts and command line tricks to generate subsets of the data for rendering in the browser:
parsing the simplified ndjson: https://gist.github.com/enjalot/0ecec46ac5c286379e209c300b341883
parsing the binary format: https://gist.github.com/enjalot/dbd35f7e61ac62fcfc68a2be7ca8d480
here are some tips for processing .ndjson files with ndjson-cli and d3: https://gist.github.com/enjalot/54c4342eb7527ea523884dbfa52d174b

from quickdraw-dataset.

luismqueral avatar luismqueral commented on August 14, 2024 1

@kenn44 Very much so!

I know a lot of people would be interested in an accessible way to extract individual SVG's from this dataset :-).

from quickdraw-dataset.

kennethassogba avatar kennethassogba commented on August 14, 2024 1

I'm working on it. Give me few days :)

from quickdraw-dataset.

luismqueral avatar luismqueral commented on August 14, 2024

Thanks @hardmaru and @enjalot !! I haven't gotten a chance to try your suggestions but it seems like due to the vastness of this set, this is going to be an interesting nut to crack (at least given my limited experience with these kinds of frameworks / filetypes).

My ideal is individual saved out SVG's (with paths intact) for each one of these drawings. I'll report back after I've given your suggestions a try!!

from quickdraw-dataset.

luismqueral avatar luismqueral commented on August 14, 2024

For anyone else that's stumbling upon this, I'm 100% willing to host these somewhere or perhaps even pay a bounty for a streamlined approach to this 🌞

from quickdraw-dataset.

enjalot avatar enjalot commented on August 14, 2024

from quickdraw-dataset.

luismqueral avatar luismqueral commented on August 14, 2024

It would still take a long time and result in 50 million svg files.

Heh, the scale of this project is absurd, thanks for putting it in perspective.

In an effort to making the output of this project more accessible, perhaps we could just export a large amount from each category, if not every single image? I'm imagining something like 2-5k per category. So a lot of images, but certainly not enough to warrant the entire database. I'll experiment with that when I can.

@enjalot @hardmaru How much time should I expect to need per image export do you think?

from quickdraw-dataset.

kennethassogba avatar kennethassogba commented on August 14, 2024

Hello @luismqueral do you still need this feature? :)

from quickdraw-dataset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.