Skip to main content

A png drawing to svg converter

Project description

sketch-vectorization

Goal

The goal of this project is to implement the following paper: https://www-sop.inria.fr/reves/Basilic/2016/FLB16/fidelity_simplicity.pdf

We also implemented several new ideas, such as a convolutional neural network with synthetic data augmentation for preprocessing.

Demo

Guess what: the entire library can run in your browser !

If you want a guided tour of how the library works, go here:

If you just want to test it for yourself, with your own drawings, go here:

Install

The library is also available as a pip package:

pip install "sketchy-svg[onnx]"
# or use uv: uv add "sketchy-svg[onnx]"

There is no command line interface. You can easily build your own, to get inspiration look at src/sketchy_svg/viz inside the class Demo

Use locally

To install the dependencies, install uv and run uv sync --extra onnx.

If you also want to train the neural network, run uv sync --extra onnx --extra train

To launch the notebooks, run uv run marimo edit ., it should open the notebooks in your browser.

Documentation

If you want, you can read the Presentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sketchy_svg-0.2.3.tar.gz (269.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sketchy_svg-0.2.3-py3-none-any.whl (271.6 kB view details)

Uploaded Python 3

File details

Details for the file sketchy_svg-0.2.3.tar.gz.

File metadata

  • Download URL: sketchy_svg-0.2.3.tar.gz
  • Upload date:
  • Size: 269.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sketchy_svg-0.2.3.tar.gz
Algorithm Hash digest
SHA256 03e910aba19f958b4383cf018d6f25bc33f9bf55fea5d51e2139de97ab4d019d
MD5 c3edd3ecfd431466a4a11af0273bd161
BLAKE2b-256 cccf5562560ff1d4b0c59572f81e0221d59f5551760addd86027fcadcaa357f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for sketchy_svg-0.2.3.tar.gz:

Publisher: publish.yml on rambip/sketch-vectorization

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sketchy_svg-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: sketchy_svg-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 271.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sketchy_svg-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 69078371d7d00dbd9128d4576702c4d38153221ad084dfbb7c2b188d7e6ebf4d
MD5 cf67a29fe0f6ff20768a6670b589d89c
BLAKE2b-256 b171322eeb978bef903a66b089ed961256cf72445799a0b872ba32314b17f4db

See more details on using hashes here.

Provenance

The following attestation bundles were made for sketchy_svg-0.2.3-py3-none-any.whl:

Publisher: publish.yml on rambip/sketch-vectorization

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page