Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input live webcam video for live streaming? #40

Open
vallamost opened this issue Jan 17, 2023 · 4 comments
Open

Input live webcam video for live streaming? #40

vallamost opened this issue Jan 17, 2023 · 4 comments

Comments

@vallamost
Copy link

vallamost commented Jan 17, 2023

Has anyone tried or thought about the possibility to use VToonify with live image inputs from a webcam or virtual camera? Or utilizing it for livestreams?

Someone mentioned being able to use this on Linux - https://github.com/umlaeute/v4l2loopback

@joshdance
Copy link

Is VTonnify fast enough to support live processing? I haven't used it yet, researching, but I thought you had to process videos.

@williamyang1991
Copy link
Owner

Since VToonify is based on a big model of StyleGAN/DualStyleGAN, it is currently not real time.
We test on generating 1600×1280 videos, the ideal running time excluding video reading/writing on a NVIDIA Tesla V100
GPU is about 0.2s per frame.
With video reading/writing and other processes for live stream, the time for each frame will be even greater.

@ileocho
Copy link

ileocho commented Jan 22, 2023

In your opinion, could it potentially run on lower-resolution videos ? Or is this model specific for high-res ?

@williamyang1991
Copy link
Owner

For low-resolution, I think it is possible to use stylegan-256 rather than stylegan-1024,
and train the corresponding dualstylegan and vtoonify, which needs some code modifications I suppose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants