Generative ai-based video outpainting with temporal awareness
Generative AI-based video outpainting maintains spatial and temporal consistency, addressing the aspect ratio mismatch between traditional and widescreen devices by expanding video content to fit wider screens without distortions.
Patent Information
- Application Number
- PCT/KR2024/013982
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-19
- Filing Date
- 2024-09-13
- Publication Date
- 2025-07-24
AI Technical Summary
The gap between the aspect ratios of existing video content (typically 4:3) and the aspect ratios of modern widescreen devices (16:9 for TVs and 5:9 for mobile devices) results in wasted screen space or distorted content, and existing outpainting techniques fail to maintain both spatial and temporal consistency in video frames.
A generative AI-based approach that uses an image outpainting model to generate additional pixels while maintaining spatial consistency within each frame and temporal consistency between frames, employing a video outpainting model to ensure seamless transitions across frames.
The solution effectively expands video content to fit wider screens while preserving the integrity of the original content, eliminating flickering and maintaining consistent object motion, thus enhancing the viewing experience on modern devices.
Smart Images

Figure KR2024013982_24072025_PF_FP_ABST
Abstract
Description
GENERATIVE AI-BASED VIDEO OUTPAINTING WITH TEMPORAL AWARENESS
[0001] This disclosure relates generally to machine learning systems. More specifically, this disclosure relates to systems and methods for generative AI-based video outpainting with temporal awareness.
[0002] As users trend toward preferring bigger television (TV) and mobile device screens, TV and mobile screens with widescreen aspect ratios of 16:9 or wider on TV and 5:9 on mobile devices are becoming common. However, most video content is created in the 4:3 aspect ratio, and there is increasingly a gap between the aspect ratios of created content and the devices on which the content is displayed. As a result, users cannot enjoy their large screens and still watch the small aspect ratio (e.g., 4:3) content on their devices.
[0003] This disclosure relates to systems and methods for facilitating generative AI-based video outpainting with temporal awareness.
[0004] According to an embodiment of the disclosure, the method may include obtaining image frames that comprise a video, each of the image frames having a first aspect ratio. According to an embodiment of the disclosure, the method may include selecting at least one of the image frames as at least one condition frame. According to an embodiment of the disclosure, the method may include generating, from the at least one condition frame based on an image outpainting model. According to an embodiment of the disclosure, at least one outpainted condition frame may have a second aspect ratio different from the first aspect ratio. According to an embodiment of the disclosure, the method may include generating, from at least one of remaining image frames, based on a video outpainting model and the at least one outpainted condition frame, an outpainted target frame that has the second aspect ratio. According to an embodiment of the disclosure, the outpainted target frame may have spatial consistency with the image frame from which the outpainted target frame was generated and temporal consistency with neighboring outpainted frames in the video.
[0005] According to an embodiment of the disclosure, an electronic device may include at least one processor including processing circuitry, memory storing instructions. According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to obtain image frames that comprise a video, each of the image frames having a first aspect ratio. According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to select at least one of the image frames as at least one condition frame. According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to generate, from the at least one condition frame based on an image outpainting model, at least one outpainted condition frame that has a second aspect ratio different from the first aspect ratio. According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to generate, from at least one of remaining image frames, based on a video outpainting model and the at least one outpainted condition frame, an outpainted target frame that has the second aspect ratio. According to an embodiment of the disclosure, the outpainted target frame may have spatial consistency with the image frame from which the outpainted target frame was generated and temporal consistency with neighboring outpainted frames in the video. According to an embodiment of the disclosure, a computer readable medium storing one or more instructions may be provided. According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to obtain image frames that comprise a video, each of the image frames having a first aspect ratio. According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to select at least one of the image frames as at least one condition frame. According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to generate, from the at least one condition frame based on an image outpainting model, at least one outpainted condition frame that has a second aspect ratio different from the first aspect ratio. According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to generate, from at least one of remaining image frames, based on a video outpainting model and the at least one outpainted condition frame, an outpainted target frame that has the second aspect ratio. According to an embodiment of the disclosure, the outpainted target frame may have spatial consistency with the image frame from which the outpainted target frame was generated and temporal consistency with neighboring outpainted frames in the video.
[0006] Other technical features may be readily apparent to one skilled in the art from the following figures, descriptions, and claims.
[0007] For a more complete understanding of this disclosure and its advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, in which like reference numerals represent like parts:
[0008] FIGURE 1 illustrates an example network configuration including an electronic device in accordance with this disclosure;
[0009] FIGURE 2 illustrates an example of image outpainting in accordance with this disclosure;
[0010] FIGURE 3 illustrates an example of video outpainting in accordance with this disclosure;
[0011] FIGURE 4 illustrates an example system architecture supporting video outpainting with spatio-temporal consistency in accordance with this disclosure;
[0012] FIGURE 5 illustrates an example process for image set generation with scene detection and condition frame outpainting in accordance with this disclosure;
[0013] FIGURE 6 illustrates an example of the functionality of a video outpaint model in accordance with this disclosure;
[0014] FIGURE 7 illustrates an example video outpainting model architecture in accordance with this disclosure;
[0015] FIGURE 8 illustrates an example implementation of an attention layer for facilitating outpainting with spatio-temporal consistency in accordance with this disclosure;
[0016] FIGURE 9 illustrates an example process for video outpainting with spatio-temporal consistency in accordance with this disclosure;
[0017] FIGURE 10 illustrates an example of real-time functionality of a video outpaint model in accordance with this disclosure;
[0018] FIGURE 11 illustrates an example process for real-time video outpainting with spatio-temporal consistency in accordance with this disclosure;
[0019] FIGURE 12 illustrates an example process for image set generation with scene detection, scene summary, and condition frame outpainting in accordance with this disclosure;
[0020] FIGURES 13A illustrates an example process for video outpainting with spatio-temporal consistency using scene summaries with the image outpainting model in accordance with this disclosure;
[0021] FIGURES 13B illustrates an example process for video outpainting with spatio-temporal consistency using scene summaries with the image outpainting model in accordance with this disclosure;
[0022] FIGURES 14A illustrates an example process for video outpainting with spatio-temporal consistency using scene summaries with the video outpainting model in accordance with this disclosure;
[0023] FIGURES 14B illustrates an example process for video outpainting with spatio-temporal consistency using scene summaries with the video outpainting model in accordance with this disclosure;
[0024] FIGURE 15 illustrates an example implementation of an attention layer for facilitating outpainting with spatio-temporal consistency using scene summaries in accordance with this disclosure; and
[0025] FIGURE 16 illustrates an example method for facilitating generative AI-based video outpainting with temporal awareness in accordance with this disclosure.
[0026] Before undertaking the DETAILED DESCRIPTION below, it may be advantageous to set forth definitions of certain words and phrases used throughout this patent document. The terms "transmit," "receive," and "communicate," as well as derivatives thereof, encompass both direct and indirect communication. The terms "include" and "comprise," as well as derivatives thereof, mean inclusion without limitation. The term "or" is inclusive, meaning and / or. The phrase "associated with," as well as derivatives thereof, means to include, be included within, interconnect with, contain, be contained within, connect to or with, couple to or with, be communicable with, cooperate with, interleave, juxtapose, be proximate to, be bound to or with, have, have a property of, have a relationship to or with, or the like.
[0027] Moreover, various functions described below can be implemented or supported by one or more computer programs, each of which is formed from computer readable program code and embodied in a computer readable medium. The terms "application" and "program" refer to one or more computer programs, software components, sets of instructions, procedures, functions, objects, classes, instances, related data, or a portion thereof adapted for implementation in a suitable computer readable program code. The phrase "computer readable program code" includes any type of computer code, including source code, object code, and executable code. The phrase "computer readable medium" includes any type of medium capable of being accessed by a computer, such as read only memory (ROM), random access memory (RAM), a hard disk drive, a compact disc (CD), a digital video disc (DVD), or any other type of memory. A "non-transitory" computer readable medium excludes wired, wireless, optical, or other communication links that transport transitory electrical or other signals. A non-transitory computer readable medium includes media where data can be permanently stored and media where data can be stored and later overwritten, such as a rewritable optical disc or an erasable memory device.
[0028] As used here, terms and phrases such as "have," "may have," "include," or "may include" a feature (like a number, function, operation, or component such as a part) indicate the existence of the feature and do not exclude the existence of other features. Also, as used here, the phrases "A or B," "at least one of A and / or B," or "one or more of A and / or B" may include all possible combinations of A and B. For example, "A or B," "at least one of A and B," and "at least one of A or B" may indicate all of (1) including at least one A, (2) including at least one B, or (3) including at least one A and at least one B. Further, as used here, the terms "first" and "second" may modify various components regardless of importance and do not limit the components. These terms are only used to distinguish one component from another. For example, a first user device and a second user device may indicate different user devices from each other, regardless of the order or importance of the devices. A first component may be denoted a second component and vice versa without departing from the scope of this disclosure.
[0029] It will be understood that, when an element (such as a first element) is referred to as being (operatively or communicatively) "coupled with / to" or "connected with / to" another element (such as a second element), it can be coupled or connected with / to the other element directly or via a third element. In contrast, it will be understood that, when an element (such as a first element) is referred to as being "directly coupled with / to" or "directly connected with / to" another element (such as a second element), no other element (such as a third element) intervenes between the element and the other element.
[0030] As used here, the phrase "configured (or set) to" may be interchangeably used with the phrases "suitable for," "having the capacity to," "designed to," "adapted to," "made to," or "capable of" depending on the circumstances. The phrase "configured (or set) to" does not essentially mean "specifically designed in hardware to." Rather, the phrase "configured to" may mean that a device can perform an operation together with another device or parts. For example, the phrase "processor configured (or set) to perform A, B, and C" may mean a generic-purpose processor (such as a CPU or application processor) that may perform the operations by executing one or more software programs stored in a memory device or a dedicated processor (such as an embedded processor) for performing the operations.
[0031] The terms and phrases as used here are provided merely to describe some embodiments of this disclosure but not to limit the scope of other embodiments of this disclosure. It is to be understood that the singular forms "a," "an," and "the" include plural references unless the context clearly dictates otherwise. All terms and phrases, including technical and scientific terms and phrases, used here have the same meanings as commonly understood by one of ordinary skill in the art to which the embodiments of this disclosure belong. It will be further understood that terms and phrases, such as those defined in commonly-used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined here. In some cases, the terms and phrases defined here may be interpreted to exclude embodiments of this disclosure.
[0032] Examples of an "electronic device" according to embodiments of this disclosure may include at least one of a smartphone, a tablet personal computer (PC), a mobile phone, a video phone, an e-book reader, a desktop PC, a laptop computer, a netbook computer, a workstation, a personal digital assistant (PDA), a portable multimedia player (PMP), an MP3 player, a mobile medical device, a camera, or a wearable device (such as smart glasses, a head-mounted device (HMD), electronic clothes, an electronic bracelet, an electronic necklace, an electronic accessory, an electronic tattoo, a smart mirror, or a smart watch). Other examples of an electronic device include a smart home appliance. Examples of the smart home appliance may include at least one of a television, a digital video disc (DVD) player, an audio player, a refrigerator, an air conditioner, a cleaner, an oven, a microwave oven, a washer, a dryer, an air cleaner, a set-top box, a home automation control panel, a security control panel, a TV box (such as SAMSUNG HOMESYNC, APPLETV, or GOOGLE TV), a smart speaker or speaker with an integrated digital assistant (such as SAMSUNG GALAXY HOME, APPLE HOMEPOD, or AMAZON ECHO), a gaming console (such as an XBOX, PLAYSTATION, or NINTENDO), an electronic dictionary, an electronic key, a camcorder, or an electronic picture frame. Still other examples of an electronic device include at least one of various medical devices (such as diverse portable medical measuring devices (like a blood sugar measuring device, a heartbeat measuring device, or a body temperature measuring device), a magnetic resource angiography (MRA) device, a magnetic resource imaging (MRI) device, a computed tomography (CT) device, an imaging device, or an ultrasonic device), a navigation device, a global positioning system (GPS) receiver, an event data recorder (EDR), a flight data recorder (FDR), an automotive infotainment device, a sailing electronic device (such as a sailing navigation device or a gyro compass), avionics, security devices, vehicular head units, industrial or home robots, automatic teller machines (ATMs), point of sales (POS) devices, or Internet of Things (IoT) devices (such as a bulb, various sensors, electric or gas meter, sprinkler, fire alarm, thermostat, street light, toaster, fitness equipment, hot water tank, heater, or boiler). Other examples of an electronic device include at least one part of a piece of furniture or building / structure, an electronic board, an electronic signature receiving device, a projector, or various measurement devices (such as devices for measuring water, electricity, gas, or electromagnetic waves). Note that, according to various embodiments of this disclosure, an electronic device may be one or a combination of the above-listed devices. According to some embodiments of this disclosure, the electronic device may be a flexible electronic device. The electronic device disclosed here is not limited to the above-listed devices and may include new electronic devices depending on the development of technology.
[0033] In the following description, electronic devices are described with reference to the accompanying drawings, according to various embodiments of this disclosure. As used here, the term "user" may denote a human or another device (such as an artificial intelligent electronic device) using the electronic device.
[0034] Definitions for other certain words and phrases may be provided throughout this patent document. Those of ordinary skill in the art should understand that in many if not most instances, such definitions apply to prior as well as future uses of such defined words and phrases.
[0035] None of the description in this application should be read as implying that any particular element, step, or function is an essential element that must be included in the claim scope. The scope of patented subject matter is defined only by the claims. Use of any other term, including without limitation "mechanism," "module," "device," "unit," "component," "element," "member,” "apparatus," "machine," "system," "processor," or "controller," within a claim is understood by the Applicant to refer to structures known to those skilled in the relevant art.
[0036] FIGURES 1 through 16, discussed below, and the various embodiments of this disclosure are described with reference to the accompanying drawings. However, it should be appreciated that this disclosure is not limited to these embodiments, and all changes and / or equivalents or replacements thereto also belong to the scope of this disclosure. The same or similar reference denotations may be used to refer to the same or similar elements throughout the specification and the drawings.
[0037] As noted above, as users trend toward preferring bigger television (TV) and mobile device screens, TV and mobile screens with widescreen aspect ratios of 16:9 or wider on TV and 5:9 on mobile devices are becoming common. However, most video content is created in the 4:3 aspect ratio, and there is increasingly a gap between the aspect ratios of created content and the devices on which the content is displayed. As a result, users cannot enjoy their large screens and still watch the small aspect ratio (e.g., 4:3) content on their devices.
[0038] One possible solution is for content creators to make screen-resolution-specific content, such as 16:9 or 5:9 content. However, this requires extensive manual effort on the part of content creators. Another possible solution is utilizing a generative artificial intelligence (GenAI) outpainting technique, which expands the outer pixels in original images. For example, Stable Diffusion is the State Of The Art (SOTA) outpainting research and the study expands an image to a bigger size. However, the research cannot be applied to the video domain because the study solely considers spatial consistency in an image and does not consider temporal consistency among neighbor frames in a video. As a result, outpainting videos generated using present SOTA techniques have a flickering issue.
[0039] There is a thus gap between the aspect ratio that most video content is produced in (typically 4:3) and the aspect ratios of increasingly popular widescreen devices (typically 16:9 for TVs and 5:9 for mobile device screens). When displaying smaller aspect ratio (e.g., 4:3) video content on a larger aspect ratio (e.g., 16:9 or 5:9) screen, either screen space is wasted or the content is stretched out of proportion to fit the larger aspect ratio. It would be preferable to expand the video content to fill the larger aspect ratio screen in a more organic way.
[0040] A similar issue exists for video content that is created in a larger aspect ratio than a device's display. When content in a large aspect ratio (e.g., 16:9) is displayed on a smaller aspect ratio screen (e.g., 4:3), it is either cropped, "letterboxed", or compressed out of proportion to fit the smaller aspect ratio. A related issue exists when devices are used in, e.g., a portrait orientation to view content that is created for the landscape orientation, as each orientation has a different aspect ratio (e.g., a landscape orientation with 16:9 aspect ratio and a portrait orientation with 9:16 aspect ratio). It would be preferable to expand the video content to fill, e.g., the letterbox area of the smaller aspect ratio (or different orientation) screen in a more organic way.
[0041] Additionally, newer devices have increasingly high resolution (e.g., 4K or 8K UHD) displays. However, there is a cost barrier for content creation at these high resolutions as compared to content creation at lower resolutions (e.g., 1080p). As a result, even content that is produced in a large aspect ratio (e.g., 16:9) is often produced at lower resolutions (e.g., 1080p). When displaying lower resolution (e.g., 1080p) video content on a higher resolution (e.g., 4K or 8K) screen, the full capabilities of the screen will go unused. It would be preferable to increase the resolution of the video content to fully take advantage of the higher resolution screen.
[0042] The above discussed problems have a common factor: more pixels of content are needed to fill unused pixels of a display. GenAI outpainting is a technique that generates additional pixels at the outer edge of an image to make the image larger. Existing outpainting techniques (such as Stable Diffusion) are designed to maintain spatial consistency with the original image, meaning that the original image and the expanded image (with the newly generated pixels) have consistent background objects and main objects. Spatial consistency may refer to maintaining at least one component such as background or object.
[0043] Thus, the outpainted image should look like an organic extension of the original image. If these existing outpainting techniques are applied to image frames of a video, however, a flaw becomes apparent: neighboring frames of the video are not considered when generating the outpainted portions of any individual frame. The neighboring frame may refer to an adjacent frame. For example, the neighboring frame may refer to the frame preceding or following a sequence of consecutive video frames.
[0044] As a result, while the outpainted portions of each individual frame will have spatial consistency with the original portion of that frame, the outpainted portions of neighboring frames will not be consistent with each other (i.e., there is not temporal consistency between the outpainted portions of neighboring frames). Temporal consistency may refer to maintaining movement such as movement speed or movement direction of at least one component. In practice, this means that the outpainted portions of a video generated using existing outpainting techniques will exhibit unnatural effects as objects may appear, disappear, or jump around between frames.
[0045] Embodiments of the present disclosure provide devices and methods for outpainting video content into a different aspect ratio - that is, devices and methods for generating additional pixels such that the outpainted video content has more pixels than the original video, and thus can utilize unused pixels of a display - while maintaining both spatial consistency and temporal consistency (also referred to as spatio-temporal consistency) between frames of the video content. For ease of explanation, the embodiments of the present disclosure are discussed in terms of aspect ratios such as 16:9 and 4:3. However, it is understood that the same techniques may be applied to generate any outpainted video content having more pixels than the original video content while maintaining spatio-temporal consistency between frames.
[0046] Note that while some of the embodiments discussed below are described in the context of use in consumer electronic devices (such as smartphones and smart TVs), this is merely one example. It will be understood that the principles of this disclosure may be implemented in any number of other suitable contexts and may use any suitable device or devices. Also note that while some of the embodiments discussed below are described based on the assumption that one device (such as a server) performs training of a machine learning model that is deployed to one or more other devices (such as one or more consumer electronic devices), this is also merely one example. It will be understood that the principles of this disclosure may be implemented using any number of devices, including a single device that both trains and uses a machine learning model. In general, this disclosure is not limited to use with any specific type(s) of device(s).
[0047] FIGURE 1 illustrates an example network configuration 100 including an electronic device in accordance with this disclosure. The embodiment of the network configuration 100 shown in FIGURE 1 is for illustration only. Other embodiments of the network configuration 100 could be used without departing from the scope of this disclosure.
[0048] According to embodiments of this disclosure, an electronic device 101 is included in the network configuration 100. The electronic device 101 can include at least one of a bus 110, a processor 120, a memory 130, an input / output (I / O) interface 150, a display 160, a communication interface 170, or a sensor 180. In some embodiments, the electronic device 101 may exclude at least one of these components or may add at least one other component. The bus 110 includes a circuit for connecting the components 120-180 with one another and for transferring communications (such as control messages and / or data) between the components.
[0049] The processor 120 includes one or more processing devices, such as one or more microprocessors, microcontrollers, digital signal processors (DSPs), application specific integrated circuits (ASICs), or field programmable gate arrays (FPGAs). In some embodiments, the processor 120 includes one or more of a central processing unit (CPU), an application processor (AP), a communication processor (CP), or a graphics processor unit (GPU). The processor 120 is able to perform control on at least one of the other components of the electronic device 101 and / or perform an operation or data processing relating to communication or other functions. As described in more detail below, the processor 120 may perform various operations related to generative AI-based video outpainting with temporal awareness. For example, as described below, the processor 120 may receive and process inputs (such as image frames of an original video having an original aspect ratio, and a desired new aspect ratio) and perform video outpainting using the inputs while maintaining spatio-temporal consistency. The processor 120 may also instruct other devices to perform certain operations or display content on one or more displays 160. The processor 120 may further receive inputs (such as data samples to be used in training machine learning models) and manage such training by inputting the samples to the machine learning models, receive outputs from the machine learning models, and execute learning functions (such as loss functions) to improve the machine learning models.
[0050] The processor 120 may include various processing circuitry and / or multiple processors. For example, as used herein, including the claims, the term "processor" may include various processing circuitry, including at least one processor, wherein one or more of at least one processor, individually and / or collectively in a distributed manner, may be configured to perform various functions described herein. As used herein, when "a processor", "at least one processor", and "one or more processors" are described as being configured to perform numerous functions, these terms cover situations, for example and without limitation, in which one processor performs some of recited functions and another processor(s) performs other of recited functions, and also situations in which a single processor may perform all recited functions. Additionally, the at least one processor may include a combination of processors performing various of the recited / disclosed functions, e.g., in a distributed manner. At least one processor may execute program instructions to achieve or perform various functions.
[0051] The memory 130 can include a volatile and / or non-volatile memory. For example, the memory 130 can store commands or data related to at least one other component of the electronic device 101. According to embodiments of this disclosure, the memory 130 can store software and / or a program 140. The program 140 includes, for example, a kernel 141, middleware 143, an application programming interface (API) 145, and / or an application program (or "application") 147. At least a portion of the kernel 141, middleware 143, or API 145 may be denoted an operating system (OS).
[0052] The kernel 141 can control or manage system resources (such as the bus 110, processor 120, or memory 130) used to perform operations or functions implemented in other programs (such as the middleware 143, API 145, or application 147). The kernel 141 provides an interface that allows the middleware 143, the API 145, or the application 147 to access the individual components of the electronic device 101 to control or manage the system resources. The application 147 may support various functions related to generative AI-based video outpainting with temporal awareness. For example, the application 147 includes one or more applications supporting the receipt of original video frames having an original aspect ratio, receipt of a desired new aspect ratio, and executing tasks related to scene detection and image grouping, scene summary generation, key (or condition) frame selection, and outpainting of condition frames and non-condition frames while maintaining spatio-temporal consistency. These functions can be performed by a single application or by multiple applications that each carries out one or more of these functions. The middleware 143 can function as a relay to allow the API 145 or the application 147 to communicate data with the kernel 141, for instance. A plurality of applications 147 can be provided. The middleware 143 is able to control work requests received from the applications 147, such as by allocating the priority of using the system resources of the electronic device 101 (like the bus 110, the processor 120, or the memory 130) to at least one of the plurality of applications 147. The API 145 is an interface allowing the application 147 to control functions provided from the kernel 141 or the middleware 143. For example, the API 145 includes at least one interface or function (such as a command) for filing control, window control, image processing, or text control.
[0053] The I / O interface 150 serves as an interface that can, for example, transfer commands or data input from a user or other external devices to other component(s) of the electronic device 101. The I / O interface 150 can also output commands or data received from other component(s) of the electronic device 101 to the user or the other external device.
[0054] The display 160 includes, for example, a liquid crystal display (LCD), a light emitting diode (LED) display, an organic light emitting diode (OLED) display, a quantum-dot light emitting diode (QLED) display, a microelectromechanical systems (MEMS) display, or an electronic paper display. The display 160 can also be a depth-aware display, such as a multi-focal display. The display 160 is able to display, for example, various contents (such as text, images, videos, icons, or symbols) to the user. The display 160 can include a touchscreen and may receive, for example, a touch, gesture, proximity, or hovering input using an electronic pen or a body portion of the user.
[0055] The communication interface 170, for example, is able to set up communication between the electronic device 101 and an external electronic device (such as a first electronic device 102, a second electronic device 104, or a server 106). For example, the communication interface 170 can be connected with a network 162 or 164 through wireless or wired communication to communicate with the external electronic device. The communication interface 170 can be a wired or wireless transceiver or any other component for transmitting and receiving signals.
[0056] The wireless communication is able to use at least one of, for example, WiFi, long term evolution (LTE), long term evolution-advanced (LTE-A), 5th generation wireless system (5G), millimeter-wave or 60 GHz wireless communication, Wireless USB, code division multiple access (CDMA), wideband code division multiple access (WCDMA), universal mobile telecommunication system (UMTS), wireless broadband (WiBro), or global system for mobile communication (GSM), as a communication protocol. The wired connection can include, for example, at least one of a universal serial bus (USB), high definition multimedia interface (HDMI), recommended standard 232 (RS-232), or plain old telephone service (POTS). The network 162 or 164 includes at least one communication network, such as a computer network (like a local area network (LAN) or wide area network (WAN), Internet, or a telephone network.
[0057] The electronic device 101 further includes one or more sensors 180 that can meter a physical quantity or detect an activation state of the electronic device 101 and convert metered or detected information into an electrical signal. For example, one or more sensors 180 can include one or more cameras or other imaging sensors for capturing images of scenes. The sensor(s) 180 can also include one or more buttons for touch input, one or more microphones, a gesture sensor, a gyroscope or gyro sensor, an air pressure sensor, a magnetic sensor or magnetometer, an acceleration sensor or accelerometer, a grip sensor, a proximity sensor, a color sensor (such as an RGB sensor), a bio-physical sensor, a temperature sensor, a humidity sensor, an illumination sensor, an ultraviolet (UV) sensor, an electromyography (EMG) sensor, an electroencephalogram (EEG) sensor, an electrocardiogram (ECG) sensor, an infrared (IR) sensor, an ultrasound sensor, an iris sensor, or a fingerprint sensor. The sensor(s) 180 can further include an inertial measurement unit, which can include one or more accelerometers, gyroscopes, and other components. In addition, the sensor(s) 180 can include a control circuit for controlling at least one of the sensors included here. Any of these sensor(s) 180 can be located within the electronic device 101.
[0058] In some embodiments, the first external electronic device 102 or the second external electronic device 104 can be a wearable device or an electronic device-mountable wearable device (such as an HMD). When the electronic device 101 is mounted in the electronic device 102 (such as the HMD), the electronic device 101 can communicate with the electronic device 102 through the communication interface 170. The electronic device 101 can be directly connected with the electronic device 102 to communicate with the electronic device 102 without involving with a separate network. The electronic device 101 can also be an augmented reality wearable device, such as eyeglasses, that include one or more imaging sensors.
[0059] The first and second external electronic devices 102 and 104 and the server 106 each can be a device of the same or a different type from the electronic device 101. According to certain embodiments of this disclosure, the server 106 includes a group of one or more servers. Also, according to certain embodiments of this disclosure, all or some of the operations executed on the electronic device 101 can be executed on another or multiple other electronic devices (such as the electronic devices 102 and 104 or server 106). Further, according to certain embodiments of this disclosure, when the electronic device 101 should perform some function or service automatically or at a request, the electronic device 101, instead of executing the function or service on its own or additionally, can request another device (such as electronic devices 102 and 104 or server 106) to perform at least some functions associated therewith. The other electronic device (such as electronic devices 102 and 104 or server 106) is able to execute the requested functions or additional functions and transfer a result of the execution to the electronic device 101. The electronic device 101 can provide a requested function or service by processing the received result as it is or additionally. To that end, a cloud computing, distributed computing, or client-server computing technique may be used, for example. While FIGURE 1 shows that the electronic device 101 includes the communication interface 170 to communicate with the external electronic device 104 or server 106 via the network 162 or 164, the electronic device 101 may be independently operated without a separate communication function according to some embodiments of this disclosure.
[0060] The server 106 can include the same or similar components 110-180 as the electronic device 101 (or a suitable subset thereof). The server 106 can support to drive the electronic device 101 by performing at least one of operations (or functions) implemented on the electronic device 101. For example, the server 106 can include a processing module or processor that may support the processor 120 implemented in the electronic device 101. In some embodiments, the server 106 may perform various operations related to machine learning speaker verification. For example, the server 106 may receive and process inputs (such as image frames of an original video having an original aspect ratio, and a desired new aspect ratio) and perform video outpainting using the inputs while maintaining spatio-temporal consistency. The server 106 may also instruct other devices to perform certain operations or display content on one or more displays 160. The server 106 may further receive inputs (such as data samples to be used in training machine learning models) and manage such training by inputting the samples to the machine learning models, receive outputs from the machine learning models, and execute learning functions (such as loss functions) to improve the machine learning models.
[0061] Although FIGURE 1 illustrates one example of a network configuration 100 including an electronic device 101, various changes may be made to FIGURE 1. For example, the network configuration 100 could include any number of each component in any suitable arrangement. In general, computing and communication systems come in a wide variety of configurations, and FIGURE 1 does not limit the scope of this disclosure to any particular configuration. Also, while FIGURE 1 illustrates one operational environment in which various features disclosed in this patent document can be used, these features could be used in any other suitable system.
[0062] FIGURE 2 illustrates an example 200 of image outpainting in accordance with this disclosure. As shown in FIGURE 2, an original image 202 has a first aspect ratio (e.g., 4:3), which is different from a desired second aspect ratio (e.g., 16:9). The masks 204 represent an area in which pixels need to be generated to reach the desired second aspect ratio. According to an embodiment of the disclosure, the first aspect ratio may refer to the original aspect ratio. The second aspect ratio may refer to an aspect ratio different from the first aspect ratio. For example, the second aspect ratio may be an aspect ratio wider than the first aspect ratio, or an aspect ratio narrower than the first aspect ratio.
[0063] In the example 200, outpainting is used to generate the outpainted image 206, having the second aspect ratio (e.g., 16:9), from the original image 202, while maintaining spatial consistency with the original image 202. That is, the outpainted image 206 has background objects (e.g., trees, clouds, snow, buildings, etc.) and subjects or main objects (e.g., parts of subjects such as faces, hats, gloves, snowboards, ski goggles, bikes, cars, etc.) that are consistent with the objects in the original image 202.
[0064] FIGURE 3 illustrates an example 300 of video outpainting in accordance with this disclosure. A video consists of a series of images (called frames) which have a temporal relationship with each other. According to an embodiment of the disclosure, the image frames may be in temporal order. As shown in FIGURE 3, frame f0 is followed in time by frame f1, which is followed by frame f2, and so on. In various embodiments of the present disclosure, a "target frame" may refer to a frame of a video which is targeted for outpainting to a different aspect ratio. The target frame may refer to the frame in video except the condition frames.
[0065] In example 300, frame is a target frame - it consists of an original frame 302 that has a first aspect ratio (e.g., 4:3). Frames have a second aspect ratio (e.g., 16:9) that is different than the first aspect ratio of target frame . In an embodiment, frames have already been outpainted from the first aspect ratio to the second aspect ratio. By outpainting the masked areas 304, an outpainted target frame can be generated at the second aspect ratio. When the masked areas 304 are outpainted, however, temporal consistency should be maintained between frame and frames - that is, the outpainted frame should have consistent object motion with its neighbor frames . In example 300, a bear is in each frame and is moving from left to right over time. Thus, the outpainting of areas 304 should maintain consistent motion of the bear between frames.
[0066] FIGURE 4 illustrates an example system architecture 400 supporting video outpainting with spatio-temporal consistency in accordance with this disclosure. For ease of explanation, the architecture 400 shown in FIGURE 4 is described as being implemented on or supported by the electronic device 101 in the network configuration 100 of FIGURE 1. However, the architecture 400 shown in FIGURE 4 could be used with any other suitable device(s) and in any other suitable system(s), such as when the architecture 400 is implemented on or supported by the server 106.
[0067] As shown in FIGURE 4, the system operates on an original video 402, which is comprised of a number of frames (e.g., image frames) having a first aspect ratio (e.g., 4:3). According to an embodiment of the disclosure, the electronic device may obtain image frames that comprise the original video. For example, a frame extractor 404 extracts the frames from the original video 402 based on the frames per second (FPS) at which the video 402 was created. In this example, N frames referred to as are extracted from the video 402.
[0068] An image set generator 406 may be used to group frames into a number of sets (e.g., M sets designated ), where each set of frames are, for example, one scene of the video. That is, each set of frames portrays similar objects, and therefore spatio-temporal consistency should be maintained between frames in the set. By the same token, when there is a scene change in the video 402 the objects included in the last frame of one scene are likely to be different from the objects included in the first frame of the following scene, and therefore spatio-temporal consistency should not be maintained between frames belonging to different scenes of the video.
[0069] According to an embodiment of the disclosure, the image set generator 406 may group the N frames into M sets. For example, the .
[0070] Next, one or more condition frames (also referred to as key frames) are selected from each image set. The condition frame may refer to some of the frames that contain the main component in each image set. For example, the component may include at least one object or at least one background. The electronic device may identify the main component by analyzing a relative size of at least one object or a relative position of at least one object. The condition frame may be the frame that contains most part of important visual information in each image set. For example, the important visual information may include main objects, background, visual changes, or color, that represent the key moments or messages in the scene. These condition frames may be frames that represent the image set (e.g., the scene) well. That is, the condition frames are good representatives of the objects and environments portrayed across the frames of the image set. In this example, the first and last frames of each image set are used as condition frames (e.g., frames and are the condition frames of image set ).
[0071] The image outpainting model 408 outpaints each condition frame to a desired second aspect ratio 410 (e.g., 16:9) while maintaining spatial consistency with the corresponding original condition frame. For example, condition frames and of image set are outpainted to generate outpainted condition frames , respectively. For example, condition frames of image set are outpainted to generate outpainted condition frames , respectively. For example, condition frames , of image set are outpainted to generate outpainted condition frames , respectively. The image outpainting model 408 may be a machine learning (ML) model such as a Stable Diffusion model. For example, the image outpainting model 408 may outpaint the condition frames by gradually removing noise from a distorted image. The image outpainting model 408 may be trained by diffusion process that may add noise to a clean image, and a reverse process, that may remove noise to restore the original image. The image outpainting model 408 may operate in a latent space which allows efficient image generation.
[0072] The video outpainting model 412 then outpaints the remaining frames (e.g., the non-condition frames, such as frames of image set , frames of image set , and frames of image set ) of each image set to the desired second aspect ratio 410 while maintaining spatio-temporal consistency with other frames of the image set. That is, each outpainted non-condition frame (for example, frames of image set , frames of image set , and frames of image set ) has spatial consistency with the counterpart original frame and temporal consistency with other frames in the image set (such as the temporally neighboring frames, or the condition frames). The video outpainting model 412 utilizes the outpainted condition frames generated by the image outpainting model 408 to achieve temporal consistency, as described further below.
[0073] A frame aggregator 414 is then used to assemble the complete set of outpainted frames into an outpainted video 416 that has the desired second aspect ratio 410.
[0074] Although FIGURE 4 illustrates one example of a system architecture 400, supporting video outpainting with spatio-temporal consistency, various changes may be made to FIGURE 4. For example, various components and functions in FIGURE 4 may be combined, further subdivided, replicated, or rearranged according to particular needs. Also, one or more additional components and functions may be included if needed or desired.
[0075] FIGURE 5 illustrates an example process 500 for image set generation with scene detection and condition frame outpainting in accordance with this disclosure. The process 500 may be performed by the image set generator 406 and image outpainting model 408 of FIGURE 4.
[0076] The image set generator 406 takes as input a set of original frames 502 (e.g., frames ) that correspond to the original video having a first aspect ratio. A scene detection algorithm 504 then identifies different scenes of the original video within the frames and groups frames belonging to those scenes together into image sets 506 (e.g., ImageSet0 comprising corresponding to a scene set in a school, ImageSet1 comprising corresponding to another scene set in a home, etc.). For example, an algorithm such as scene detect may be used to identify scene changes from one frame to the next.
[0077] As described above with respect to FIGURE 4, one or more condition frames 508 are selected from each image set 506 (e.g., frames and from ImageSet0), and the image outpainting model 408 (e.g., a stable diffusion model) then operates on those condition frames to generate outpainted condition frames 510 having the second aspect ratio 410. The resulting output image set 512 thus contains the outpainted condition frames 510 that correspond to the original condition frames 508 of the image set 506, as well as the remaining original frames 502 of the image set 506.
[0078] Although FIGURE 5 illustrates one example of a process 500 for image set generation with scene detection and condition frame outpainting, various changes may be made to FIGURE 5. For example, various components and functions in FIGURE 5 may be combined, further subdivided, replicated, or rearranged according to particular needs. Also, one or more additional components and functions may be included if needed or desired.
[0079] FIGURE 6 illustrates an example 600 of the functionality of a video outpainting model in accordance with this disclosure. The example 600 may correspond to the functionality of the video outpainting model 412 of FIGURE 4.
[0080] As shown in FIGURE 6, outpainted condition frames 510 (generated by the image outpainting model 408) are used by the video outpainting model 412 to outpaint a target frame 602 from the first aspect ratio to the desired second aspect ratio 410, resulting in outpainted target frame 604. The video outpainting model 412 maintains spatial consistency between the outpainted target frame 604 and the original target frame 602. Additionally, by utilizing the condition frames 510 that correspond to the same scene as the target frame 602, the video outpainting model 412 maintains temporal consistency between the outpainted target frame 604 and the outpainted condition frames 510 (and other outpainted frames of the same image set).
[0081] It is understood that this is only an example, and any number of condition frames may be used in this process. For example, the outpainted target frame 604 itself may be used as an outpainted condition frame for the purposes of outpainting other target frames (which are not illustrated in FIGURE 6). Similarly, each other outpainted target frame may be used as a condition frame for the purposes of outpainting remaining target frames.
[0082] FIGURE 7 illustrates an example video outpainting model architecture 700 in accordance with this disclosure. The architecture 700 may correspond to the video outpainting model 412 of FIGURE 4. For ease of explanation, the architecture 700 shown in FIGURE 7 is described as being implemented on or supported by the electronic device 101 in the network configuration 100 of FIGURE 1. However, the architecture 700 shown in FIGURE 7 could be used with any other suitable device(s) and in any other suitable system(s), such as when the architecture 700 is implemented on or supported by the server 106.
[0083] The video outpainting model 412 takes as inputs a set of target frames and one or more condition frames associated with the target frames. For example, an output image set 512 (as illustrated in FIGURE 5) of the image outpainting model 408 of FIGURE 4 may serve as the input to the video outpainting model 412, where the image set 512 includes one or more outpainted condition frames 510 having the desired second aspect ratio 410 (e.g., 16:9) and one or more original target frames 502 having the first aspect ratio (e.g., 4:3). For ease of explanation, the below description of the architecture 700 will assume one image set 512 as the input. However, it is understood that this is only an example, and multiple image sets may be outpainted in parallel using the architecture 700 for the video outpainting model 412.
[0084] As shown in FIGURE 7, a set of outpainting masks 702 may be applied to the original target frames 502, where the masks 702 represent the additional pixels that need to be generated by the video outpainting model 412 and added to the corresponding original target frame 502 to generate an outpainted target frame having the desired second aspect ratio 410. A resulting masked image set 704 (that is, a set of frames having mask information associated with any frames needing outpainting) is then encoded (e.g., using a variational autoencoder (VAE) to reduce the dimensionality of the masked image set 704, passed through a diffusion model to introduce noise, and passed to a U-Net 706. The U-Net 706 is comprised of a number of ResNet layers 708 and attention layers 710. Attention layers 710 are described further below with respect to FIGURE 8.
[0085] Using the outpainted condition frames 510 (that is, the data corresponding to the outpainted condition frames 510 after encoding and diffusion), the U-NET 706 outpaints the masked portion of each original target frame 502. The output of the U-Net 706 is then decoded (e.g., using the variational autoencoder (VAE) to restore the original dimensionality of the image set, resulting in outpainted target frames 712 that have the desired second aspect ratio 410 while maintaining spatial consistency with the original target frames 502 and temporal consistency with the other outpainted frames of the image set.
[0086] Although FIGURE 7 illustrates one example of a video outpainting model architecture 700, various changes may be made to FIGURE 7. For example, various components and functions in FIGURE 7 may be combined, further subdivided, replicated, or rearranged according to particular needs. Also, one or more additional components and functions may be included if needed or desired.
[0087] FIGURE 8 illustrates an example implementation of an attention layer 800 for facilitating outpainting with spatio-temporal consistency in accordance with this disclosure. The attention layer 800 may correspond to an attention layer 710 of the U-Net 706 of FIGURE 7. However, it is understood that the attention layer 800 may be implemented in any other suitable architecture. For ease of explanation, the attention layer 800 shown in FIGURE 8 is described as being implemented on or supported by the electronic device 101 in the network configuration 100 of FIGURE 1. However, the attention layer 800 shown in FIGURE 8 could be used with any other suitable device(s) and in any other suitable system(s), such as when the attention layer 800 is implemented on or supported by the server 106.
[0088] The attention layer 800 may be referred to as a spatio-temporal attention layer with adaptors. The attention layer 800 includes, in part, a spatial attention layer 804, a temporal attention layer 810, a spatial adaptor 816, and a temporal adaptor 818.
[0089] The attention layer 800 operates on an input set of frames 802, such as that input to the U-Net 706 of FIGURE 7. The input frames 802 are designated as , where B is batch size, F is number of images in the set, C is number of channels, H is height, and W is width.
[0090] The spatial attention layer 804 operates on a single target frame at a time, taken from the input frames 802. The spatial attention layer 804 performs outpainting on each target frame (e.g., a frame that has a masked area associated with it) while maintaining spatial consistency. For each target frame, this attention layer utilizes the non-masked pixel information of the frame to determine how to outpaint the masked area with spatial consistency. The spatial attention layer 804 function may be described by the following equation, where MHSA is multi-head self-attention:
[0091]
[0092] The feed-forward network (FFN) 806 takes as input the output of the spatial attention layer 804 (e.g., a target frame). The FFN 806 determines how to outpaint the masked area of the input target frame by learning a weight. The FFN 806 function may be described by the following equation:
[0093]
[0094] where the FFN 806 learns W and b. W is a matrix, not a scalar, because this is a deep learning approach.
[0095] The position layer 808 provides ordering information for each frame output from the FFN 806 before input to the temporal attention layer 810. That is, for a temporal sequence of frames such as F0, F1, F2, and so on, the position layer 808 provides information that F0 is the first frame, F1 follows F0, F2 follows F1, and so on. This position layer may be linear, or provided using a sine / cosine function.
[0096] The temporal attention layer 810 utilizes all of the frames 802 (e.g., outpainted condition frames as well as target frames that have been processed by the spatial attention layer 804 and FFN 806 with position information added by position layer 808) to outpaint masked areas of each target frame in the set (i.e., each frame in the set that has masked areas associated with it) while maintaining temporal consistency between the frames. The video dimension b f c h w is transformed into (h w) (b f) c for the input frames to the temporal attention layer 810. The frames are then input to an attention mechanism such as a multi-head attention mechanism.
[0097] For each pixel position, the temporal attention layer 810 studies the relationship of the corresponding pixels belonging to all of the input frames to determine how to outpaint the masked areas of the target frames. For example, for pixel position (0,0) - the top left corner pixel - the temporal attention layer 810 studies the pixel at position (0,0) of each frame and, if this position is in a masked area (e.g., the pixel is a masked pixel) in any frame, then the layer outpaints the pixel at that position in that frame based on the pixels at position (0,0) in all frames which contain a non-masked pixel at position (0,0). The function of temporal attention layer 810 may be described by the following equation:
[0098]
[0099] Finally, the dimension of the output of the temporal attention layer 810 is transformed back to b f c h w.
[0100] The output of the FFN 806 is passed through a multiplier 812 and input to the spatial adaptor 816. The output of the temporal attention layer 810 is passed through a multiplier 814 and input to the temporal adaptor 818.
[0101] The spatial adaptor 816 and the temporal adaptor 818 then process the outputs of the spatial attention layer 804 / FFN 806 and the temporal attention layer 810, respectively. The spatial adaptor 816 and the temporal adaptor 818 are both linear functions with learnable scalar parameter values in the range of 0 to 1. The parameter values of the adaptors are inversely proportionally related. In an embodiment, the parameters may sum to 1.
[0102] The parameter of the spatial adaptor 816 is a weight that represents how much the overall output is focused on spatial consistency (e.g., how much weight is given to spatial consistency from the spatial attention layer 804 and FFN 806), while the parameter of the temporal adaptor 818 is a weight that represents how much the overall output is focused on temporal consistency (e.g., how much weight is given to temporal consistency from the temporal attention layer 810). The spatial adaptor 816 learns how much weight it needs to apply from the output of the FFN 806 (and thus, from the spatial attention layer 804). The temporal adaptor 818 learns how much weight it needs to apply from the output of the temporal attention layer 810.
[0103] The spatial adaptor 816 applies its weight parameter ( ) to the output of the FFN 806 ( ), and the output of the spatial adaptor 816 can thus be described by the following equation:
[0104]
[0105] Likewise, the temporal adaptor 818 applies its weight parameter ( ) to the output of the temporal attention layer 810 ( ), and the output of the temporal adaptor 818 can thus be described by the following equation:
[0106]
[0107] The outputs of both adaptors are summed together and input to the FFN 820. Similar to FFN 806, this is a multi-order function that learns and applies a weight, and can be described by the following equation:
[0108]
[0109] where FFN 820 learns W and b. The output of the FFN 820 is an outpainted target frame at the desired second aspect ratio that has spatial consistency with its counterpart input target frame and temporal consistency with neighboring outpainted frames (whether target frames or condition frames).
[0110] Although FIGURE 8 illustrates one example of an attention layer 800 for facilitating outpainting with spatio-temporal consistency, various changes may be made to FIGURE 8. For example, various components and functions in FIGURE 8 may be combined, further subdivided, replicated, or rearranged according to particular needs. Also, one or more additional components and functions may be included if needed or desired.
[0111] FIGURE 9 illustrates an example process 900 for video outpainting with spatio-temporal consistency in accordance with this disclosure. For ease of explanation, the process 900 shown in FIGURE 9 is described as being implemented on or supported by the electronic device 101 in the network configuration 100 of FIGURE 1. However, the process 900 shown in FIGURE 9 could be used with any other suitable device(s) and in any other suitable system(s), such as when the process 900 is implemented on or supported by the server 106. Additionally, the process 900 is described as being performed by the system architecture 400 shown in FIGURE 4 using the attention layer 800 as shown in FIGURE 8 implemented in the U-Net 706 of the video outpainting model architecture 700 shown in FIGURE 7. However, the process 900 shown in FIGURE 9 could be performed using any suitable system architecture with an attention layer 800 that provides spatio-temporal consistency.
[0112] As shown in FIGURE 9, the process 900 begins with the input of an original video (e.g., original video 402) having a first aspect ratio (e.g., 4:3), and the input of a new second aspect ratio (e.g., 16:9, desired second aspect ratio 410). A frame extractor (e.g., frame extractor 404) extracts the frames of the original video into a frame list (e.g., a set of images corresponding to the frames of the original video) based on the FPS of the original video.
[0113] An image set generator with scene detection (e.g., image set generator 406) is then used to group the frames of the frame list into image sets that correspond to scenes of the video. Condition frames for each scene are also identified, and in the resulting list 907 of image sets, each set includes target frames and one or more condition frames.
[0114] A diffusion-based image outpainting model (e.g., image outpainting model 408) is used to outpaint the condition frames for each image set to the second aspect ratio while maintaining spatial consistency with the corresponding original condition frames. In the resulting image set list 909, each image set includes outpainted condition frames and original target (e.g., non-condition) frames.
[0115] A diffusion-based video outpainting model (e.g., video outpainting model 412) is used to outpaint the original target frames for each image set to the second aspect ratio while maintaining spatial consistency with the corresponding original target frames and temporal consistency with other outpainted frames. In the resulting image set list 913, each image set includes outpainted condition frames and outpainted target frames (e.g., all of the frames are outpainted).
[0116] A frame aggregator (e.g., frame aggregator 414) assembles the frames of the image set list 913 into a final outpainted video (e.g., outpainted video 416) based on the FPS of the original video. The final outpainted video has the new second aspect ratio (e.g., 16:9) and the frames of the outpainted video have spatio-temporal consistency.
[0117] Although FIGURE 9 illustrates one example of a process 900 for video outpainting with spatio-temporal consistency, various changes may be made to FIGURE 9. For example, various components and functions in FIGURE 9 may be combined, further subdivided, replicated, or rearranged according to particular needs. Also, one or more additional components and functions may be included if needed or desired.
[0118] The embodiments of the present disclosure discussed herein above outpaint target frames using condition frames that include both past frames and future frames (from the perspective of the target frames). This may be beneficial for maintaining temporal consistency of the target frames with past and future frames, however, future frames are not always available. For example, in a real-time operation such as video streaming, only past frames may be available for consideration in outpainting. Accordingly, some embodiments of the present disclosure are adapted to use only past frames for video outpainting.
[0119] FIGURE 10 illustrates an example 1000 of real-time functionality of a video outpaint model in accordance with this disclosure. The example 1000 may correspond to the functionality of the video outpainting model 412 of FIGURE 4.
[0120] In the embodiment of FIGURE 10, the video outpainting model will outpaint a frame based on a previous frame (e.g., the immediately preceding frame, or one or more other previous frames), then that outpainted frame (and any other previous outpainted frames) may be used as a condition frame to outpaint the next frame, and so on. As a result, future frames may be not needed for outpainting in this embodiment. Additionally, image sets (e.g., image sets corresponding to scenes) may be not used.
[0121] As shown in FIGURE 10, an initial frame ( ) of a real-time video stream is received. The initial frame has a first aspect ratio and is used as an original condition frame 1002. The original condition frame 1002 is input to an image outpainting model (e.g., image outpainting model 408 of FIGURE 4). The image outpainting model 408 generates an outpainted initial frame 1004 ( ) that has a second aspect ratio (e.g., the desired second aspect ratio 410) while maintaining spatial consistency with the original condition frame 1002.
[0122] After the initial frame is received, a second frame ( ) of the real-time video stream is received, where has the first aspect ratio. The second frame is then an original target frame 1006 that needs outpainting. After the initial frame has been outpainted as (outpainted frame 1004), and (original target frame 1006) are input to a video outpainting model (e.g., the video outpainting model 412). The video outpainting model 412 uses the outpainted frame 1004 ( ) to generate a second outpainted frame 1008 ( ) that has the second aspect ratio while maintaining spatial consistency with the original target frame 1006 and temporal consistency with the previously outpainted frame 1004.
[0123] The outpainted frame 1008 may then be used by the video outpainting model 412 as a condition frame for outpainting the subsequently received frame of the real-time video stream (e.g., , not illustrated). Going forward, each outpainted frame may be used in this manner to outpaint the subsequently received frame in the real-time video stream while maintaining spatial consistency with the original frame and temporal consistency with the previously outpainted frame. In an embodiment, more than one previously outpainted frame may be used for outpainting subsequently received frames, and temporal consistency is maintained with all such previously outpainted frames.
[0124] Although FIGURE 10 illustrates one example of real-time functionality of a video outpaint model, various changes may be made to FIGURE 10. For example, various components and functions in FIGURE 10 may be combined, further subdivided, replicated, or rearranged according to particular needs. Also, one or more additional components and functions may be included if needed or desired.
[0125] FIGURE 11 illustrates an example process 1100 for real-time video outpainting with spatio-temporal consistency in accordance with this disclosure. For ease of explanation, the process 1100 shown in FIGURE 11 is described as being implemented on or supported by the electronic device 101 in the network configuration 100 of FIGURE 1. However, the process 1100 shown in FIGURE 11 could be used with any other suitable device(s) and in any other suitable system(s), such as when the process 1100 is implemented on or supported by the server 106. Additionally, the process 1100 is described as being performed by the system architecture 400 shown in FIGURE 4 using the attention layer 800 as shown in FIGURE 8 implemented in the U-Net 706 of the video outpainting model architecture 700 shown in FIGURE 7. However, the process 1100 shown in FIGURE 11 could be performed using any suitable system architecture with an attention layer 800 that provides spatio-temporal consistency.
[0126] As shown in FIGURE 11, the process 1100 begins with the input of a real-time video stream 1102 having a first aspect ratio (e.g., 4:3), and the input of a new second aspect ratio (e.g., 16:9, desired second aspect ratio 410). A frame extractor (e.g., frame extractor 404) extracts frames of the video stream 1102 in real-time (as an original frame 1104).
[0127] When the original frame 1104 is determined to be the first frame of the real-time video stream 1102 (e.g., initial frame ), the original frame 1104 is passed to a diffusion-based image outpainting model (e.g., image outpainting model 408 of FIGURE 4). The diffusion-based image outpainting model generates an outpainted frame 1106 (e.g., outpainted initial frame ) having the second aspect ratio 410 (e.g., 16:9) while maintaining spatial consistency with the corresponding original frame 1104 ( ).
[0128] The outpainted frame 1106 ( ) is then output to a display 1108 (in this example, a TV) in real-time. Additionally, the outpainted frame 1106 is stored in a database (DB), such as condition frame DB 1110, for later use by the video outpainting model as a condition frame.
[0129] For subsequently received frames of the real-time video stream 1102 - e.g., frames that are determined not to be the initial frame - a diffusion-based video outpaint model (e.g., the video outpainting model 412) is employed for outpainting. Each subsequently received original frame 1104 (e.g., second frame ) is accordingly passed to the diffusion-based video outpaint model, which looks up one or more previously outpainted frames in the condition frame DB 1110 and uses them as condition frames to generate an outpainted frame 1112 (e.g., second outpainted frame ) having the second aspect ratio 410 (e.g., 16:9) while maintaining spatial consistency with the corresponding original frame 1104 ( ) and temporal consistency with the one or more previously outpainted frames.
[0130] The outpainted frame 1112 ( ) is then output to the display 1108 in real-time, and is also stored in the condition frame DB 1110 for later use by the video outpainting model as another condition frame. In this way, a user can watch a video in the second aspect ratio that is streamed in real time from a source having the first aspect ratio.
[0131] For the example of the second frame , only the outpainted initial frame is present in the DB, and accordingly the diffusion-based video outpaint model generates the second outpainted frame using only as the condition frame. The second outpainted frame thus has spatial consistency with the original second frame and temporal consistency with . For subsequently received frames, such as a third frame , the immediately previously received outpainted frame ( in this case) may be used as a condition frame for the diffusion-based video outpaint model. In other embodiments, however, any number of other outpainted frames in the condition frame DB 1110 may also be used as condition frames. This may increase the processing power required to outpaint the stream, while improving the temporal consistency of the resulting outpainted real-time video stream.
[0132] Although FIGURE 11 illustrates one example of a process 1100 for real-time video outpainting with spatio-temporal consistency, various changes may be made to FIGURE 11. For example, various components and functions in FIGURE 11 may be combined, further subdivided, replicated, or rearranged according to particular needs. Also, one or more additional components and functions may be included if needed or desired.
[0133] As discussed herein above, various embodiments of the present disclosure includes a scene detection algorithm (e.g., scene detection algorithm 504 of FIGURE 5) that may be used to group frames of a video into sets of images related to the same scene of the movie. In such embodiments, a scene summary - that is, a text summary of the contents of a scene - may be beneficially used by a video outpainting model to more accurately determine how to outpaint a masked area of the frames in the image set.
[0134] FIGURE 12 illustrates an example process 1200 for image set generation with scene detection, scene summary, and condition frame outpainting in accordance with this disclosure. In the example of FIGURE 12, image set generation and scene detection have already been performed (e.g., using the image set generator 406 of FIGURE 4 with the scene detection algorithm 504 of FIGURE 5, not illustrated) and the frames of the original video have been grouped into image sets 506 with respective condition frames 508.
[0135] As illustrated in FIGURE 12, the image sets 506 are additionally passed through a scene summary model 1202 (e.g., Contrastive Language-Image Pre-training, CLIP). The scene summary model 1202 analyzes the image sets and generates a textual scene summary 1204 for each respective image set 506. In this example, the scene summary 1204 for ImageSet0 is "snowboarder is moving left to right" and the scene summary 1204 for ImageSet1 is "snowboarder is drinking coffee at shelter".
[0136] According to an embodiment of the disclosure, the scene summary model 1202 may be implemented using CLIP. For example, the scene summary model 1202 may use multimodal learning. The scene summary model 1202 may process both images and text simultaneously, mapping the images and text into the same embedding space. The scene summary model 1202 may use contrastive learning to train on image-text pairs. The model learns to associate pairs of images and texts that are related (positive samples) and distinguish them from unrelated pairs (negative samples). This helps the model understand which images and texts are semantically similar or different. The scene summary model 1202 may be pre-trained on a large dataset of images and their associated text descriptions. The scene summary model 1202 may map both images and text into a shared embedding space.The scene summaries 1204 are then passed through an encoder model 1206 (e.g., word2vec) to produce a representation (e.g., a distributed representation) of the scene summaries that can be utilized by the image outpainting model 1208 (which may be an image outpainting model 408 modified to additionally utilize scene summary information). The encoded scene summaries are in turn passed from the encoder model 1206 to the image outpainting model 1208, which utilizes the encoded scene summaries to more accurately generate outpainted condition frames 1210 from condition frames 508 (as compared to, e.g., outpainted condition frames 510 of FIGURE 5 that are outpainted without considering a scene summary). Alternatively, the encoded scene summaries may be stored with the corresponding image set 506, such that when the image set 506 is input to the image outpainting model 408 the corresponding encoded scene summary is also available to the image outpainting model 408.
[0137] Although FIGURE 12 illustrates one example of a process 1200 for image set generation with scene detection, scene summary, and condition frame outpainting, various changes may be made to FIGURE 12. For example, various components and functions in FIGURE 12 may be combined, further subdivided, replicated, or rearranged according to particular needs. Also, one or more additional components and functions may be included if needed or desired.
[0138] FIGURES 13A and 13B illustrate an example process 1300 for video outpainting with spatio-temporal consistency using scene summaries with the image outpainting model in accordance with this disclosure. For ease of explanation, the process 1300 shown in FIGURES 13A and 13B is described as a modification of the process 900 shown in FIGURE 9, implemented on or supported by the electronic device 101 in the network configuration 100 of FIGURE 1. Description of unchanged functions will be omitted for the sake of avoiding repetition.
[0139] As shown in FIGURE 13A, the process 1300 follows the process 900 up to generation of the list 907 of image sets, in which each set includes target frames and one or more condition frames. A scene summary model (e.g., scene summary model 1202 of FIGURE 12) is used to generate a scene summary for each image set in the list 907. An encoder (e.g., encoder 1206 of FIGURE 12, not illustrated) may be used to convert the scene summaries into encoded scene summaries. The resulting image set list 1302 is the image set list 907 with corresponding scene summary information added to each image set in the list.
[0140] A diffusion-based image outpainting model (e.g., image outpainting model 1208) is used to outpaint the condition frames for each image set in list 1302 to the second aspect ratio while maintaining spatial consistency with the corresponding original condition frames, utilizing the corresponding scene summary information for each image set to further enhance the spatial consistency. In the resulting image set list 909, each image set includes outpainted condition frames and original target (non-condition) frames.
[0141] As shown in FIGURE 13B, the process 1300 follows the process 900 once the image set list 909 has been generated. The final outpainted video 1304 has the new second aspect ratio and the frames of the outpainted video have spatio-temporal consistency similar to the final outpainted video 416 of process 900, however, the use of scene summary information in the image outpainting model will improve the spatio-temporal consistency of video 1304 even further as compared to the final outpainted video 416 of process 900.
[0142] Although FIGURES 13A and 13B illustrate one example of a process 1300 for video outpainting with spatio-temporal consistency using scene summaries with the image outpaint model, various changes may be made to FIGURES 13A and 13B. For example, various components and functions in FIGURES 13A and 13B may be combined, further subdivided, replicated, or rearranged according to particular needs. Also, one or more additional components and functions may be included if needed or desired.
[0143] In an embodiment, the encoded scene summaries generated in process 1200 of FIGURE 12 may also be utilized by the video outpaint models discussed herein above (e.g., the video outpainting model 412 of FIGURE 4). This may allow the video outpainting model to reap similar benefits to those discussed in process 1200 with respect to the image outpainting model 408 - that is, improvement in the spatio-temporal consistency of outpainted target frames resulting from outpainting that utilizes the scene summary information.
[0144] FIGURES 14A and 14B illustrate an example process 1400 for video outpainting with spatio-temporal consistency using scene summaries with the video outpainting model in accordance with this disclosure. For ease of explanation, the process 1400 shown in FIGURES 14A and 14B is described as a modification of the process 1300 shown in FIGURES 13A and 13B, implemented on or supported by the electronic device 101 in the network configuration 100 of FIGURE 1. Description of unchanged functions will be omitted for the sake of avoiding repetition.
[0145] As shown in FIGURE 14A, the process 1400 follows the process 1300 up to the processing by the diffusion-based image outpaint model (e.g., image outpaint model 1208) to outpaint the condition frames for each image set in list 1302 utilizing the corresponding scene summary information for each image set. In the resulting image set list 1402, each image set includes outpainted condition frames and original target (non-condition) frames, and the scene summary information corresponding to each image set in the list.
[0146] As shown in FIGURE 13B, a diffusion-based video outpaint model (e.g., video outpaint model 1404) is used to outpaint the original target frames for each image set to the second aspect ratio while maintaining spatial consistency with the corresponding original target frames and temporal consistency with other outpainted frames, utilizing the corresponding scene summary information for each image set to further enhance the spatial and temporal consistency. The final outpainted video 1406 has the new second aspect ratio and the frames of the outpainted video have spatio-temporal consistency similar to the final outpainted video 1304 of process 1300, however, the use of scene summary information in the video outpainting model will improve the spatio-temporal consistency of video 1406 even further as compared to the final outpainted video 1304 of process 1300.
[0147] Although FIGURES 14A and 14B illustrate one example of a process 1400 for video outpainting with spatio-temporal consistency using scene summaries with the video outpaint model, various changes may be made to FIGURES 14A and 14B. For example, various components and functions in FIGURES 14A and 14B may be combined, further subdivided, replicated, or rearranged according to particular needs. Also, one or more additional components and functions may be included if needed or desired.
[0148] FIGURE 15 illustrates an example implementation of an attention layer 1500 for facilitating outpainting with spatio-temporal consistency using scene summaries in accordance with this disclosure. The attention layer 1500 may be used, for example, in the image outpainting model 1208 of FIGURES 12, 13A, and 14A, and in the video outpainting model 1404 of FIGURE 14B. For ease of explanation, the attention layer 1500 shown in FIGURE 15 is described as a modification of the attention layer 800 shown in FIGURE 8, which may correspond to an attention layer 710 of the U-Net 706 of FIGURE 7, implemented on or supported by the electronic device 101 in the network configuration 100 of FIGURE 1. Description of unchanged functions will be omitted for the sake of avoiding repetition.
[0149] As shown in FIGURE 15, the attention layer 1500 includes a cross attention layer 1504 and a temporal attention layer 1506 that is modified from temporal attention layer 810 of FIGURE 8. The attention layer 1500 operates on an input set of frames 802 and an input text-based scene summary encoding 1502 (e.g., produced by the scene summary model 1202 of FIGURES 12, 13A, and 14A). The 1502 is designated as , where B is batch size, F is number of images in the set, C is number of channels, H is height, and W is width (as in FIGURE 8).
[0150] The cross attention layer 1504 operates on the output of the spatial attention layer 804 and the text-based scene summary encoding 1502. The cross attention layer 1504 learns the relationship between target frames and the scene summary encoding together, and its function may be described by the following equation:
[0151]
[0152] The FFN 806 operates as in FIGURE 8, but takes as input the output of the cross attention layer 1504, and thus its output is now described by the following equation:
[0153]
[0154] The temporal attention layer 1506 functions similarly to temporal attention layer 810 of FIGURE 8, but takes as an additional input the text-based scene summary encoding 1502. The temporal attention layer 1506 learns the relationship between the target frames, condition frames, and the scene summary encoding together. The function of the temporal attention layer 1506 may be described by the following equation:
[0155]
[0156] The remaining portions of the attention layer 1500 function as in the attention layer 800 of FIGURE 8, based on the outputs of the cross attention layer 1504 and the temporal attention layer 1506.
[0157] Although FIGURE 15 illustrates one example of an attention layer 1500 for facilitating outpainting with spatio-temporal consistency using scene summaries, various changes may be made to FIGURE 15. For example, various components and functions in FIGURE 15 may be combined, further subdivided, replicated, or rearranged according to particular needs. Also, one or more additional components and functions may be included if needed or desired.
[0158] FIGURE 16 illustrates an example method 1600 for facilitating generative AI-based video outpainting with temporal awareness in accordance with this disclosure. For ease of explanation, the method 1600 shown in FIGURE 16 is described as being performed using the electronic device 101 in the network configuration 100 of FIGURE 1. However, the method 1600 could be performed using any other suitable device(s), such as the server 106, and in any other suitable system(s). As a particular example, the method 1600 can be executed on the server 106 in the network configuration 100 of FIGURE 1, and outpainted videos can be provided to a client electronic device 101 for display. However, the method 1600 may be used with any other suitable device(s), such as the electronic device 101, and in any other suitable system(s).
[0159] At block 1602, the electronic device may obtain image frames that comprise a video, each of the image frames having a first aspect ratio. Each image frame having the first aspect ratio is comprised of a certain number of pixels. The image frames may be in temporal order, or have temporal ordering information associated with them. In an embodiment, the electronic device may then group the image frames having the first aspect ratio into image sets that each correspond to a scene of the video. In an embodiment, the image frames may be obtained in real time (e.g., the image frames comprise a streaming video).
[0160] At block 1604, the electronic device may select at least one of the image frames as a condition frame. The selected condition frame(s) may be representative of the objects contained in the video. If the image frames are received in real time at block 1602, then the electronic device may select an earliest of the obtained image frames as the condition frame.
[0161] If the image frames have been grouped into image sets that each correspond to a scene of the video, then at block 1604 the electronic device may select the at least one of the image frames from one of the image sets as the condition frame, wherein the condition frame corresponds to the image set. In this case, the selected condition frame(s) may be representative of the objects contained in the scene of the video.
[0162] At block 1606, the electronic device may generate, from each condition frame, based on an image outpainting model, an outpainted condition frame that has a second aspect ratio different from (e.g., larger than) the first aspect ratio. That is, the outpainted condition frame is comprised of more pixels than the original condition frame having the first aspect ratio.
[0163] If the image frames have been grouped into image sets that each correspond to a scene of the video, then at block 1606 the electronic device may generates from each condition frame that corresponds to the image set based on the image outpainting model, the outpainted condition frame that has the second aspect ratio, wherein the outpainted condition frame corresponds to the image set. In an embodiment, the electronic device may additionally generate, for each image set, a text summary of the corresponding scene of the video, and then generates the outpainted condition frame from each condition frame that corresponds to the image set based on the image outpainting model and the text summary.
[0164] At block 1608, the electronic device may generate, from at least one of remaining image frames, based on a video outpainting model and the outpainted condition frames, an outpainted target frame that has the second aspect ratio, each outpainted target frame having spatial consistency with the image frame from which the outpainted target frame was generated and temporal consistency with neighboring outpainted frames in the video. In an embodiment, the outpainted target frame may be generated based on the video outpainting model, the outpainted condition frames, and relative temporal locations of the outpainted condition frames and the at least one remaining image frame.
[0165] If the image frames are obtained in real time at block 1602, then at block 1608 the electronic device may generate the outpainted target frame from a neighboring subsequently obtained image frame, based on the video outpainting model and the outpainted condition frame, and then may generate, from each other subsequently obtained image frame, based on the video outpainting model and the outpainted target frame, a subsequent outpainted target frame having the second aspect ratio, spatial consistency with the image frame from which the subsequent outpainted target frame was generated, and temporal consistency with the neighboring outpainted target frame.
[0166] If the image frames have been grouped into image sets that each correspond to a scene of the video, then at block 1608 the electronic device may generate, from at least one of the remaining image frames from the image set based on the video outpainting model and the outpainted condition frames corresponding to the image set, the outpainted target frames, each outpainted target frame corresponding to the image set and having spatial consistency with the image frame from which the outpainted target frame was generated and temporal consistency with neighboring outpainted frames in the scene corresponding to the image set. In embodiments in which the electronic device generated text summaries of the scenes of the video, the electronic device may generate the outpainted target frames corresponding to the image set based on the video outpainting model, the outpainted condition frames corresponding to the image set, and the text summary.
[0167] The electronic device may, after generating at least one of the outpainted target frames, generate another outpainted target frame from at least one of the other remaining image frames based on the video outpainting model, the outpainted condition frames, and the outpainted target frames, the other outpainted target frame having the second aspect ratio, spatial consistency with the image frame from which the other outpainted target frame was generated, and temporal consistency with neighboring outpainted frames in the video.
[0168] Although FIGURE 16 illustrates one example of a method 1600 for facilitating generative AI-based video outpainting with temporal awareness, various changes may be made to FIGURE 16. For example, while shown as a series of steps, various steps in FIGURE 16 could overlap, occur in parallel, occur in a different order, or occur any number of times (including zero times).
[0169] Although this disclosure has been described with reference to various example embodiments, various changes and modifications may be suggested to one skilled in the art. It is intended that this disclosure encompass such changes and modifications as fall within the scope of the appended claims.
[0170] According to an embodiment of the disclosure, the method may include obtaining image frames that comprise a video, each of the image frames having a first aspect ratio.
[0171] According to an embodiment of the disclosure, the method may include selecting at least one of the image frames as at least one condition frame.
[0172] According to an embodiment of the disclosure, the method may include generating, from the at least one condition frame based on an image outpainting model.
[0173] According to an embodiment of the disclosure, at least one outpainted condition frame may have a second aspect ratio different from the first aspect ratio.
[0174] According to an embodiment of the disclosure, the method may include generating, from at least one of remaining image frames, based on a video outpainting model and the at least one outpainted condition frame, an outpainted target frame that has the second aspect ratio.
[0175] According to an embodiment of the disclosure, the outpainted target frame may have spatial consistency with the image frame from which the outpainted target frame was generated and temporal consistency with neighboring outpainted frames in the video.
[0176] According to an embodiment of the disclosure, the method may include grouping the image frames having the first aspect ratio into image sets that each correspond to a scene of the video.
[0177] According to an embodiment of the disclosure, the method may include selecting the at least one of the image frames which contains a main component from one of the image sets as the at least one condition frame.
[0178] According to an embodiment of the disclosure, the at least one condition frame may contain most part of important visual information in the image set.
[0179] According to an embodiment of the disclosure, the method may include generating, for each image set, a text summary of the corresponding scene of the video.
[0180] According to an embodiment of the disclosure, the method may include generating, from the at least one condition frame that corresponds to the image set, based on the image outpainting model and the text summary, the at least one outpainted condition frame.
[0181] According to an embodiment of the disclosure, the method may include generating the outpainted target frames corresponding to the image set from the at least one of the remaining image frames from the image set, based on the video outpainting model, the at least one outpainted condition frame corresponding to the image set, and the text summary.
[0182] According to an embodiment of the disclosure, the image frames may be in temporal order.
[0183] According to an embodiment of the disclosure, the method may include generating, from the at least one remaining image frame, based on the video outpainting model, the at least one outpainted condition frame, and relative temporal locations of the at least one outpainted condition frame and the at least one remaining image frame, the outpainted target frame.
[0184] According to an embodiment of the disclosure, the method may include, after after generating at least one of the outpainted target frame, generating another outpainted target frame from at least one of the other remaining image frames, based on the video outpainting model, the at least one outpainted condition frame, and the outpainted target frame.
[0185] According to an embodiment of the disclosure, the other outpainted target frame may have the second aspect ratio, spatial consistency with the image frame from which the other outpainted target frame was generated, and temporal consistency with neighboring outpainted frames in the video.
[0186] According to an embodiment of the disclosure, the method may include obtaining the image frames having the first aspect ratio in real time.
[0187] According to an embodiment of the disclosure, the method may include selecting an earliest of the obtained image frames as the at least one condition frame.
[0188] According to an embodiment of the disclosure, the method may include generating, from a neighboring subsequently obtained image frame based on the video outpainting model and the at least one outpainted condition frame.
[0189] According to an embodiment of the disclosure, the outpainted target frame may have the second aspect ratio.
[0190] According to an embodiment of the disclosure, the outpainted target frame may have spatial consistency with the image frame from which the outpainted target frame was generated, and temporal consistency with the outpainted condition frame.
[0191] According to an embodiment of the disclosure, the method may include generating, from each other subsequently obtained image frame, based on the video outpainting model and the outpainted target frame, a subsequent outpainted target frame having the second aspect ratio.
[0192] According to an embodiment of the disclosure, the subsequent outpainted target frame may have spatial consistency with the image frame from which the subsequent outpainted target frame was generated, and temporal consistency with the neighboring outpainted target frame.
[0193] According to an embodiment of the disclosure, an electronic device may include at least one processor including processing circuitry, memory storing instructions.
[0194] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to obtain image frames that comprise a video, each of the image frames having a first aspect ratio.
[0195] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to select at least one of the image frames as at least one condition frame.
[0196] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to generate, from the at least one condition frame based on an image outpainting model, at least one outpainted condition frame that has a second aspect ratio different from the first aspect ratio.
[0197] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to generate, from at least one of remaining image frames, based on a video outpainting model and the at least one outpainted condition frame, an outpainted target frame that has the second aspect ratio.
[0198] According to an embodiment of the disclosure, the outpainted target frame may have spatial consistency with the image frame from which the outpainted target frame was generated and temporal consistency with neighboring outpainted frames in the video.
[0199] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to group the image frames having the first aspect ratio into image sets that each correspond to a scene of the video.
[0200] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to select the at least one of the image frames which contains a main component from one of the image sets as the at least one condition frame.
[0201] According to an embodiment of the disclosure, the at least one condition frame may contain most part of important visual information in the image set.
[0202] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to generate, for each image set, a text summary of the corresponding scene of the video.
[0203] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to generate, from each condition frame that corresponds to the image set, based on the image outpainting model and the text summary, the at least one outpainted condition frame.
[0204] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to generate the outpainted target frame corresponding to the image set from the at least one of the remaining image frames from the image set, based on the video outpainting model, the at least one outpainted condition frame corresponding to the image set, and the text summary.
[0205] According to an embodiment of the disclosure, the image frames may be in temporal order.
[0206] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to generate, from the at least one remaining image frame, based on the video outpainting model, the at least one outpainted condition frame, and relative temporal locations of the at least one outpainted condition frame and the at least one remaining image frame, the outpainted target frame.
[0207] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to, after generating at least one of the outpainted target frames, generate another outpainted target frame from at least one of the other remaining image frames based on the video outpainting model, the at least one outpainted condition frame, and the outpainted target frames.
[0208] According to an embodiment of the disclosure, the other outpainted target frame may have the second aspect ratio, spatial consistency with the image frame from which the other outpainted target frame was generated, and temporal consistency with neighboring outpainted frames in the video.
[0209] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to obtain the image frames having the first aspect ratio in real time.
[0210] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to select an earliest of the obtained image frames as the at least one condition frame.
[0211] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to generate, from a neighboring subsequently obtained image frame based on the video outpainting model and the at least one outpainted condition frame, the outpainted target frame having the second aspect ratio.
[0212] According to an embodiment of the disclosure, the outpainted target frame may have spatial consistency with the image frame from which the outpainted target frame was generated, and temporal consistency with the at least one outpainted condition frame.
[0213] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to generate, from each other subsequently obtained image frame, based on the video outpainting model and the outpainted target frame, a subsequent outpainted target frame having the second aspect ratio.
[0214] According to an embodiment of the disclosure, the subsequent outpainted target frame may have spatial consistency with the image frame from which the subsequent outpainted target frame was generated, and temporal consistency with the neighboring outpainted target frame.
[0215] According to an embodiment of the disclosure, a computer readable medium storing one or more instructions may be provided.
[0216] According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to obtain image frames that comprise a video, each of the image frames having a first aspect ratio.
[0217] According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to select at least one of the image frames as at least one condition frame.
[0218] According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to generate, from the at least one condition frame based on an image outpainting model, at least one outpainted condition frame that has a second aspect ratio different from the first aspect ratio.
[0219] According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to g generate, from at least one of remaining image frames, based on a video outpainting model and the at least one outpainted condition frame, an outpainted target frame that has the second aspect ratio.
[0220] According to an embodiment of the disclosure, the outpainted target frame may have spatial consistency with the image frame from which the outpainted target frame was generated and temporal consistency with neighboring outpainted frames in the video.
[0221] According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to group the image frames having the first aspect ratio into image sets that each correspond to a scene of the video.
[0222] According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to select the at least one of the image frames which contains a main component from one of the image sets as the at least one condition frame.
[0223] According to an embodiment of the disclosure, the at least one condition frame may contain most part of important visual information in the image set.
[0224] According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to generate, for each image set, a text summary of the corresponding scene of the video.
[0225] According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to generate, from each condition frame that corresponds to the image set, based on the image outpainting model and the text summary, the at least one outpainted condition frame.
[0226] According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to generate the outpainted target frame corresponding to the image set from the at least one of the remaining image frames from the image set, based on the video outpainting model, the at least one outpainted condition frame corresponding to the image set, and the text summary.
[0227] According to an embodiment of the disclosure, the image frames may be in temporal order.
[0228] According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to generate, from the at least one remaining image frame, based on the video outpainting model, the at least one outpainted condition frame, and relative temporal locations of the at least one outpainted condition frame and the at least one remaining image frame, the outpainted target frame.
[0229] According to an embodiment of the disclosure, the instructions may be that, when executed by the at least one processor individually or collectively, may cause the electronic device to, after generating at least one of the outpainted target frames, generate another outpainted target frame from at least one of the other remaining image frames based on the video outpainting model, the at least one outpainted condition frame, and the outpainted target frames.
[0230] According to an embodiment of the disclosure, the other outpainted target frame may have the second aspect ratio, spatial consistency with the image frame from which the other outpainted target frame was generated, and temporal consistency with neighboring outpainted frames in the video.
[0231] According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to obtain the image frames having the first aspect ratio in real time.
[0232] According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to select an earliest of the obtained image frames as the at least one condition frame.
[0233] According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to generate, from a neighboring subsequently obtained image frame based on the video outpainting model and the at least one outpainted condition frame, the outpainted target frame having the second aspect ratio.
[0234] According to an embodiment of the disclosure, the outpainted target frame may have spatial consistency with the image frame from which the outpainted target frame was generated, and temporal consistency with the at least one outpainted condition frame
[0235] According to an embodiment of the disclosure, the one or more instructions, when executed by at least one processor, may cause the at least one processor of an electronic device to generate, from each other subsequently obtained image frame, based on the video outpainting model and the outpainted target frame, a subsequent outpainted target frame having the second aspect ratio.
[0236] According to an embodiment of the disclosure, the subsequent outpainted target frame may have spatial consistency with the image frame from which the subsequent outpainted target frame was generated, and temporal consistency with the neighboring outpainted target frame.
Claims
1.A method performed by an electronic device, the method comprising:obtaining image frames (502) that comprise a video (420), each of the image frames having a first aspect ratio;selecting at least one of the image frames (502) as at least one condition frame (508);generating, from the at least one condition frame (508) based on an image outpainting model (408, 1208), at least one outpainted condition frame (510, 1210) that has a second aspect ratio (410) different from the first aspect ratio; andgenerating, from at least one of remaining image frames, based on a video outpainting model (412) and the at least one outpainted condition frame (510, 1210), an outpainted target frame (604) that has the second aspect ratio,wherein the outpainted target frame (604) has spatial consistency with the image frame from which the outpainted target frame (604) was generated and temporal consistency with neighboring outpainted frames in the video.2.The method of claim 1, wherein the selecting the at least one of the image frames as at least one condition frame comprising:grouping the image frames (502) having the first aspect ratio into image sets (506) that each correspond to a scene of the video; andselecting the at least one of the image frames which contains a main component from one of the image sets (506) as the at least one condition frame (508), wherein the at least one condition frame (508) contains most part of important visual information in the image set.3.The method any one of claims 1 and 2, further comprising:generating, for each image set, a text summary (1204) of the corresponding scene of the video; andwherein the generating at least one outpainted condition frame comprising:generating, from the at least one condition frame that corresponds to the image set, based on the image outpainting model (1208) and the text summary (1204), the at least one outpainted condition frame (1210).4.The method of claim 3, wherein the generating an outpainted target frame comprising:generating the outpainted target frames corresponding to the image set from the at least one of the remaining image frames from the image set, based on the video outpainting model (1208), the at least one outpainted condition frame (1210) corresponding to the image set, and the text summary (1204).5.The method any one of claims 1 to 4, wherein:the image frames are in temporal order, andwherein the generating an outpainted target frame comprising:generating, from the at least one remaining image frame, based on the video outpainting model (412), the at least one outpainted condition frame (510, 1210), and relative temporal locations of the at least one outpainted condition frame and the at least one remaining image frame, the outpainted target frame.6.The method any one of claims 1 to 5, further comprising:after generating at least one of the outpainted target frame, generating another outpainted target frame from at least one of the other remaining image frames, based on the video outpainting model (412), the at least one outpainted condition frame (510, 1210), and the outpainted target frame, the other outpainted target frame having the second aspect ratio (410), spatial consistency with the image frame from which the other outpainted target frame was generated, and temporal consistency with neighboring outpainted frames in the video (420).7.The method any one of claims 1 to 6, wherein the obtaining image frames that comprise a video comprising:obtaining the image frames having the first aspect ratio in real time,wherein the selecting at least one of the image frames as at least one condition frame comprising:selecting an earliest of the obtained image frames as the at least one condition frame (508),wherein the generating an outpainted target frame comprising:generating, from a neighboring subsequently obtained image frame based on the video outpainting model (412) and the at least one outpainted condition frame (510, 1210), the outpainted target frame having the second aspect ratio (410),wherein the outpainted target frame having spatial consistency with the image frame from which the outpainted target frame was generated, and temporal consistency with the at least one outpainted condition frame (510, 1210); andgenerating, from each other subsequently obtained image frame, based on the video outpainting model (412) and the outpainted target frame, a subsequent outpainted target frame having the second aspect ratio (410),wherein the subsequent outpainted target frame has spatial consistency with the image frame from which the subsequent outpainted target frame was generated, and temporal consistency with the neighboring outpainted target frame.8.An electronic device (101) comprising:at least one processor (120) including processing circuitry,memory (130) storing instructions that, when executed by the at least one processor (120) individually or collectively, cause the electronic device (101) to:obtain image frames (502) that comprise a video (420), each of the image frames having a first aspect ratio;select at least one of the image frames (502) as at least one condition frame (508);generate, from the at least one condition frame based on an image outpainting model (408, 1208), at least one outpainted condition frame (510, 1210) that has a second aspect ratio (410) different from the first aspect ratio; andgenerate, from at least one of remaining image frames, based on a video outpainting model (412) and the at least one outpainted condition frame (510, 1210), an outpainted target frame (604) that has the second aspect ratio,wherein the outpainted target frame (604) has spatial consistency with the image frame from which the outpainted target frame (604) was generated and temporal consistency with neighboring outpainted frames in the video.9.The electronic device (101) of claim 8, wherein the one or more instructions, when executed by the at least one processor individually or collectively, further cause the device to:group the image frames (502) having the first aspect ratio into image sets (506) that each correspond to a scene of the video; andselect the at least one of the image frames which contains a main component from one of the image sets (506) as the at least one condition frame (508), wherein the at least one condition frame (508) contains most part of important visual information in the image set.10.The electronic device (101) any one of claims 8 and 9, wherein the one or more instructions, when executed by the at least one processor individually or collectively, further cause the device to:generate, for each image set, a text summary (1204) of the corresponding scene of the video; andgenerate, from each condition frame that corresponds to the image set, based on the image outpainting model (1208) and the text summary (1204), the at least one outpainted condition frame (1210).11.The electronic device (101) of claim 10, wherein the one or more instructions, when executed by the at least one processor individually or collectively, further cause the device to:generate the outpainted target frame corresponding to the image set from the at least one of the remaining image frames from the image set, based on the video outpainting model (1208), the at least one outpainted condition frame (1210) corresponding to the image set, and the text summary (1204).12.The electronic device (101) any one of claims 8 to 11, wherein:the image frames are in temporal order, andthe one or more instructions, when executed by the at least one processor individually or collectively, further cause the device to:generate, from the at least one remaining image frame, based on the video outpainting model (412), the at least one outpainted condition frame (510, 1210), and relative temporal locations of the at least one outpainted condition frame and the at least one remaining image frame, the outpainted target frame.13.The electronic device (101) any one of claims 8 to 12, wherein the one or more instructions, when executed by the at least one processor individually or collectively, further cause the device to:after generating at least one of the outpainted target frames, generate another outpainted target frame from at least one of the other remaining image frames based on the video outpainting model (412), the at least one outpainted condition frame (510, 1210), and the outpainted target frames, the other outpainted target frame having the second aspect ratio (410), spatial consistency with the image frame from which the other outpainted target frame was generated, and temporal consistency with neighboring outpainted frames in the video (420).14.The electronic device (101) any one of claims 8 to 13, wherein the one or more instructions, when executed by the at least one processor individually or collectively, further cause the device to:obtain the image frames having the first aspect ratio in real time;select an earliest of the obtained image frames as the at least one condition frame (508);generate, from a neighboring subsequently obtained image frame based on the video outpainting model (412) and the at least one outpainted condition frame (510, 1210), the outpainted target frame having the second aspect ratio (410),wherein the outpainted target frame has spatial consistency with the image frame from which the outpainted target frame was generated, and temporal consistency with the at least one outpainted condition frame (510, 1210); andgenerate, from each other subsequently obtained image frame, based on the video outpainting model (412) and the outpainted target frame, a subsequent outpainted target frame having the second aspect ratio (410),wherein the subsequent outpainted target frame has spatial consistency with the image frame from which the subsequent outpainted target frame was generated, and temporal consistency with the neighboring outpainted target frame.15.A computer readable medium storing one or more instructions, wherein the one or more instructions, when executed by at least one processor, cause the at least one processor of an electronic device to:obtain image frames (502) that comprise a video (420), each of the image frames having a first aspect ratio;select at least one of the image frames (502) as at least one condition frame (508);generate, from the at least one condition frame (508) based on an image outpainting model (408, 1208), at least one outpainted condition frame (510, 1210) that has a second aspect ratio (410) different from the first aspect ratio; andgenerate, from at least one of remaining image frames, based on a video outpainting model (412) and the at least one outpainted condition frame (510, 1210), an outpainted target frame (604) that has the second aspect ratio,wherein the outpainted target frame (604) has spatial consistency with the image frame from which the outpainted target frame (604) was generated and temporal consistency with neighboring outpainted frames in the video.
Citation Information
Patent Citations
Composition for removing or reducing odor
KR1020240139859A
Video playback device and control method thereof
US20220377416A1
Apparatus and method for image outpainting based on learning of a single input image
US20230169628A1
Semantically-aware image extrapolation
US20230169632A1
Flexible image aspect ratio using machine learning
WO2023221093A1