Replies: 1 comment 2 replies
-
Use the rust library directly, this should more room for optimization. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
That's really great work!
I tested converting PNG to SVG, and the results are excellent. However, I noticed a problem: it takes a bit too long to convert a 2048*2048 image to SVG, taking about 1.005 seconds.
running log:
I need to convert a sequence of such masks to SVG, which will increase the total time significantly. Are there any acceleration solutions?
Is it possible to use Rust-CUDA to accelerate vtracer? I haven't used Rust before; I mainly work with Python. How much effort would it take to refactor vtracer using Rust-CUDA?
Additionally, I found that the time taken by
vtracer.convert_pixels_to_svg(pixels, size=size, colormode='binary')
andvtracer.convert_image_to_svg_py(temp_path, out, colormode='binary')
differs significantly. Why is that? Theoretically, thevtracer.convert_image_to_svg_py
method should be faster thanvtracer.convert_pixels_to_svg
since it skips the image reading and saving to SVG steps. Instead, it is slower.running log:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions