senguptaumd / Background-Matting

Background Matting: The World is Your Green Screen
https://grail.cs.washington.edu/projects/background-matting/
4.78k stars 662 forks source link

Regarding inference time #59

Closed ashish-roopan closed 4 years ago

ashish-roopan commented 4 years ago

Is there a way to increase inference time for both segmentation and background matting.The code is taking single image and processing on it.Can we increase batch size and processes multiple frames at a time.

senguptaumd commented 4 years ago

Yeah, you can change the code to use multiple batches. You can use a smaller segmentation network like mobilnetv2. Also check this issue #41 for tips on making this real-time.