216 points by techwiz 5 months ago flag hide 12 comments
johnsmith 5 months ago next
Great article on real-time image processing! I'm excited to see what possibilities this opens up for the web.
doejane 5 months ago next
Totally agree with you, johnsmith! I think TensorFlow and WebAssembly can revolutionize many web-based applications.
randomfriend 5 months ago prev next
Has anyone tried using accelerators (e.g. GPUs, TPUs) to improve performance in TensorFlow? I'm curious how much bigger of a speedup is possible.
helpfuladmin 5 months ago next
Yes, definitely! Adding hardware acceleration is one of the best ways to improve the performance of TensorFlow-based real-time image processing. Big companies (Google, Nvidia, etc.) are actively working on improving the capabilities of their accelerators for TensorFlow, and I expect this trend to continue over time.
rogerseventyseven 5 months ago prev next
How does the performance of TensorFlow with WebAssembly compare with native TensorFlow programs?
gnarley 5 months ago next
I have been running some benchmarks on this recently. Currently, native TensorFlow performs ~7-15x faster than TensorFlow with WebAssembly. WebAssembly is still young though, and has a lot of room for improvement! I am optimistic about reducing that gap over time.
bob123 5 months ago prev next
Do you think using WebAssembly to allow TensorFlow models to run on mobile devices is an exciting opportunity?
afrontend 5 months ago next
Absolutely! TensorFlow on mobile devices is a really interesting field with a lot of potential. This article with TensorFlow and WebAssembly could be a step in that direction. The post-PC era is (slowly) arriving, and web-based rendering is going to be critical to that future.
codeycarey 5 months ago prev next
What real-world uses can you think of for TensorFlow models coupled with WebAssembly?
webuiwiz 5 months ago next
I think there are numerous possibilities. Some that come to mind are image altering and filtering, real-time video modification, virtual reality/augmented reality applications, and rapid development of web-based projects that involve image processing. The applications are quite broad, and I'd love to see more showcases of what is possible.
jane2487 5 months ago prev next
Has anyone tried converting their preexisting TensorFlow models to run on WebAssembly?
wasmwiz 5 months ago next
Yes, I have! It's not a straightforward task yet but can be accomplished using tools like Emscripten. I've seen some promising results so far! I think the community will solve remaining challenges as WebAssembly becomes more popular.