Real-time Style Transfer via Object Masking and Segmentation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing image and video filtering techniques fail to capture high-level features of styles for real-time, temporally consistent artistic style transfer, and lack stability across multiple frames, leading to visual artifacts and high computational costs.
Innovation Solution
An algorithm for real-time temporally consistent style transfer is developed, incorporating an alternate normalization layer and corresponding activation function, along with object-level masking from game engine data for gaming scenarios and segmentation algorithms for media streams.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of manufacture
If machine learning models are used for style transfer, then artistic style transformation capability is improved, but computational cost increases and real-time performance is lost
Solution Approach 1:
The patent segments the style transfer process into two distinct stages: a training phase where heavy machine learning models process static style reference images to create style maps, and an inference phase where lightweight convolutional neural networks process video frames in real-time. This segmentation allows computationally intensive operations to be performed offline during training, while enabling real-time performance during actual style transfer execution.
Solution Approach 2:
The patent applies preliminary action by pre-processing style reference images to generate style maps and pre-training convolutional neural networks before the actual real-time style transfer operation. The heavy computational workload of model training and style map generation is completed in advance, leaving only lightweight inference operations for real-time execution during video processing.
2Speed
If existing filtering techniques are used, then processing speed is maintained, but temporal consistency and high-level feature capture are lost
Solution Approach 1:
The patent implements feedback mechanisms by processing multiple video frames sequentially and using the style map generated from reference images to guide the transformation of subsequent frames. The convolutional neural network processes frames in sequence, maintaining temporal consistency through feedback from previously processed frames and the generated style maps, ensuring coherent style transfer across the entire video sequence.
3Ease of manufacture
If machine learning style transfer is applied to video, then artistic transformation is improved, but visual artifacts and lack of temporal stability occur
Solution Approach 1:
The patent applies local quality by generating style maps at the object level using segmentation algorithms that identify and process different regions of the image separately. The convolutional neural network then applies style transfer locally to each segmented region, allowing different parts of the video to receive appropriate style transformations based on their specific content characteristics, thereby reducing visual artifacts and improving overall quality.
Solution Approach 2:
The patent segments the video processing into distinct object-level regions using segmentation algorithms, processing each segment independently with the convolutional neural network. This segmentation approach allows the model to maintain temporal consistency across frames by processing similar objects in the same manner across multiple frames, eliminating visual artifacts and ensuring stable style transfer.
Data Source
AI summary
One embodiment provides a method comprising, at a runtime library executed by a processor of a data processing system, receiving an input frame having objects to be stylized via a style transfer network associated with the runtime library, wherein the style transfer network is a neural network model trained to apply one or more visual styles to an input frame, performing instance segmentation on the input frame to generate one or more instance masks to identify one or more objects to be stylized, generating one or more stylized frames for each style to transfer to the input frame, and merging, via the one or more instance masks, stylized objects from one or more stylized frames with un-stylized content from the input frame to generate an output frame with per-instance stylization.


