Multimodal video generation method, system, storage medium and electronic device
Through the processing of multi-modal information cross-attention mechanism, the problem of video generation not meeting expectations in the existing technology is solved, the precise control and personalization requirements of video content are realized, and the accuracy and personalization degree of video generation are improved.
Patent Information
- Application Number
- CN202410749689.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Existing video generation technology makes it difficult to control video content, resulting in generated videos that do not meet expectations and cannot meet personalized needs.
Multi-modal information (text, voice, duration, resolution) is used for cross-attention mechanism processing to generate target videos. Features are extracted through the CLIP model, VITS model and transformer model and cross-attention feature processing is performed to ensure the duration and duration of the video. The resolution meets the requirements.
It significantly improves the accuracy and personalization of video generation, and can accurately control video content based on multi-modal information to meet personalized needs in practical applications.
Smart Images

Figure CN118338098B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of deep learning, and in particular relates to a multimodal video generation method, system, storage medium and electronic device. Background Art
[0002] In the prior art, machine learning technology has been widely used in a variety of visual tasks. For example, a technical solution for generating images and / or videos based on text. However, the existing video generation process is difficult to control the specific content in the video, resulting in the generated video not meeting expectations.
[0003] In addition, the videos obtained by existing video generation technologies are usually relatively random and cannot meet the personalized needs in practical applications. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a multimodal video generation method, system, storage medium and electronic device, which can realize video generation based on multimodal information to meet personalized needs.
[0005] In a first aspect, the present invention provides a multimodal video generation method, which includes the following steps: obtaining descriptive text information of a target video; obtaining text features of the descriptive text information; obtaining voice features of the descriptive text information; obtaining duration information and resolution information of the target video; generating text prediction features based on the text features and the duration information, and performing average pooling on the text prediction features to obtain text pooling features; generating voice prediction features based on the voice features and the duration information; using the text pooling features as Q vectors, and the voice prediction features as K vectors and V vectors, and performing cross-attention mechanism processing; using the output of the cross-attention mechanism processing as Q vectors, and the voice prediction features as K vectors and V vectors, repeating the cross-attention mechanism processing for a preset number of times to obtain cross-attention features; and generating the target video based on the cross-attention features and the resolution information.
[0006] In an implementation of the first aspect, the description text information is input into a text encoder of a CLIP model to obtain text features of the description text information.
[0007] In an implementation of the first aspect, the description text information is input into an encoding module of a VITS model to obtain speech features of the description text information.
[0008] In an implementation of the first aspect, the text feature and the duration information are input into a decoder of a transformer model to generate the text prediction feature.
[0009] In an implementation of the first aspect, the speech feature and the duration information are input into a decoder of a transformer model to generate the speech prediction feature.
[0010] In an implementation manner of the first aspect, the preset number of times is 32 times.
[0011] In an implementation of the first aspect, generating the target video based on the cross-attention feature and the resolution information comprises the following steps:
[0012] Inputting the cross attention feature and the resolution information into a decoder of a transformer model to obtain a decoding matrix;
[0013] The decoding matrix is reshaped based on the resolution information to obtain the target video.
[0014] In a second aspect, the present invention provides a multimodal video generation system, the system comprising a first acquisition module, a second acquisition module, a third acquisition module, a fourth acquisition module, a first prediction module, a second prediction module, a cross attention module and a generation module;
[0015] The first acquisition module is used to acquire the description text information of the target video;
[0016] The second acquisition module is used to acquire the text features of the description text information;
[0017] The third acquisition module is used to acquire the voice features of the description text information;
[0018] The fourth acquisition module is used to obtain the duration information and resolution information of the target video;
[0019] The first prediction module is used to generate a text prediction feature based on the text feature and the duration information, and average pool the text prediction feature to obtain a text pooling feature;
[0020] The second prediction module is used to generate a speech prediction feature based on the speech feature and the duration information;
[0021] The cross attention module is used to use the text pooling feature as the Q vector, and the speech prediction feature as the K vector and the V vector to perform a cross attention mechanism process; the output of the cross attention mechanism process is used as the Q vector, and the speech prediction feature is used as the K vector and the V vector, and the cross attention mechanism process is repeated for a preset number of times to obtain a cross attention feature;
[0022] The generation module is used to generate the target video based on the cross-attention feature and the resolution information.
[0023] In a third aspect, the present invention provides an electronic device, the electronic device comprising: a processor and a memory;
[0024] The memory is used to store computer programs;
[0025] The processor is used to execute the computer program stored in the memory so that the electronic device executes the above-mentioned multimodal video generation method.
[0026] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned multimodal video generation method when executed by an electronic device.
[0027] As described above, the multimodal video generation method, system, storage medium and electronic device described in the present invention have the following beneficial effects.
[0028] (1) It can generate videos based on multimodal information such as text and voice, greatly improving the accuracy of generated videos.
[0029] (2) The length and resolution of the generated video can be set to meet personalized needs.
[0030] (3) Highly intelligent and extremely practical. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 Shown is a schematic diagram of a scene of an electronic device in an embodiment of the present invention.
[0032] Figure 2 Shown is a flow chart of a multi-modal video generation method in one embodiment of the present invention.
[0033] Figure 3 FIG. 4 is a schematic diagram showing the structure of a multi-modal video generation method in one embodiment of the present invention.
[0034] Figure 4 FIG. 4 is a schematic diagram showing the structure of a multi-modal video generation system in one embodiment of the present invention.
[0035] Figure 5 It is a schematic structural diagram of an electronic device of the present invention in one embodiment. DETAILED DESCRIPTION
[0036] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0037] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0038] The following embodiments of the present invention provide a multimodal video generation method, which can be applied to Figure 1 The electronic device shown. The electronic device described in the present invention may include a mobile phone 11 with a wireless charging function, a tablet computer 12, a laptop computer 13, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiment of the present invention does not impose any restrictions on the specific type of the electronic device.
[0039] For example, the electronic device may be a station (STAION, ST) in a WLAN with a wireless charging function, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with a wireless charging function, a computing device or other processing device, a computer, a laptop computer, a handheld communication device, a handheld computing device, and / or other devices for communicating on a wireless system and a next generation communication system, such as a mobile terminal in a 5G network, a mobile terminal in a future evolved Public Land Mobile Network (PLMN), or a mobile terminal in a future evolved Non-terrestrial Network (NTN).
[0040] For example, the electronic device can communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobilecommunication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), Beidou Satellite Navigation System (BDS), Quasi-Zenith Satellite System (QZSS) and / or Satellite Based Augmentation Systems (SBAS).
[0041] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0042] like Figure 2 and Figure 3 As shown, in one embodiment, the multimodal video generation method of the present invention includes steps S1 to S8.
[0043] Step S1, obtaining the description text information of the target video.
[0044] Specifically, when a video needs to be generated, the description text information of the target video to be generated is first provided in text form. For example: A fashionable lady walks through the streets of Shanghai, which are full of warm neon lights and dynamic city signs. She wears a black leather jacket, a long red skirt and black boots, and holds a black handbag. She wears sunglasses and red lipstick. She walks confidently and casually. The street is wet and reflective, creating a mirror effect of colored lights. Many pedestrians come and go. According to the description text information, the basic scene of the target video can be reflected.
[0045] Step S2: Obtain text features of the description text information.
[0046] Specifically, the descriptive text information is input into the text encoder of the CLIP model to obtain the text feature text embedding of the descriptive text information. CLIP (Contrastive Language-Image Pre-training) is a pre-training model based on contrastive text-image pairs. The CLIP model includes two models: a text encoder TextEncoder and an image encoder Image Encoder, wherein the text encoder Text Encoder is used to extract the features of the text, and the commonly used text transformer model in NLP can be used; and the image encoder Image Encoder is used to extract the features of the image, and the commonly used CNN model or vision transformer can be used.
[0047] In one embodiment, the number of vector elements of the text feature text embedding is 512.
[0048] Step S3: Acquire the voice features of the descriptive text information.
[0049] Specifically, the descriptive text information is input into the encoding module of the VITS model to obtain the speech features of the descriptive text information. Among them, the VITS (Conditional Variational Autoencoder with Adversarial Learning for End-to-End Text-to-Speech) model is a highly expressive speech synthesis model that combines variational inference, normalizing flows, and adversarial training. VITS connects the acoustic model and vocoder in speech synthesis in series through latent variables rather than spectrum, performs random modeling on latent variables, and uses random duration predictors to improve the diversity of synthesized speech. By inputting the same text, it can synthesize speech with different tones and rhythms.
[0050] In one embodiment, the vector lengths of the speech feature and the text feature are the same, which is 512.
[0051] Step S4: Obtain the duration information and resolution information of the target video.
[0052] Specifically, for the target video, the user can customize the duration and resolution. In one embodiment, the duration is 20 seconds and the resolution is 1080x1080, so the vectors required for the target video are 20 * 30 * 3 = 1800. 30 represents the number of frames per second, and 3 represents the RGB three channels of the frame.
[0053] Step S5: Generate text prediction features based on the text features and the duration information, and perform average pooling on the text prediction features to obtain text pooling features.
[0054] Specifically, the text features and the duration information are input into a decoder of a transformer model to generate the text prediction features. The transformer model is a model that uses an attention mechanism to increase the model training speed, and includes an encoder and a decoder.
[0055] In the present invention, the text embedding is input into the decoder of the transformer model, and the decoder autoregressively outputs 1800 text prediction features, which are combined into a matrix with a shape of (512, 1800). The text prediction features are then average-pooled to obtain a matrix with a shape of (1, 1800), i.e., the text pooling features.
[0056] Step S6: Generate speech prediction features based on the speech features and the duration information.
[0057] Specifically, the speech feature and the duration information are input into the decoder of the transformer model to generate the speech prediction feature. The transformer decoder receives the speech feature speech embedding as input, outputs 1800 speech prediction features according to the duration information autoregression, and combines them into a matrix with a shape of (512, 1800).
[0058] Step S7, taking the text pooling feature as the Q vector, and taking the speech prediction feature as the K vector and the V vector, and performing cross-attention mechanism processing; taking the output of the cross-attention mechanism processing as the Q vector, and taking the speech prediction feature as the K vector and the V vector, repeating the cross-attention mechanism processing for a preset number of times to obtain the cross-attention feature.
[0059] Specifically, the present invention adopts a cross-attention mechanism operation process with a prediction number of iterations, wherein the output of the previous cross-attention mechanism process is used as the Q vector of the next cross-attention mechanism process, and both the K vector and the V vector use the speech prediction feature. In one embodiment, the preset number of times is 32 times, and the cross-attention feature finally obtained is a matrix with a shape of (1, 1800).
[0060] Step S8: Generate the target video based on the cross-attention feature and the resolution information.
[0061] Specifically, the cross-attention feature and the resolution information are input into the decoder of the transformer model. The decoder outputs 1080 * 1080 = 1166400 times according to the set resolution, such as 1080 * 1080, and then 1166400 decoding matrix vectors with a length of 1800 are obtained. This decoding matrix vector is shaped into a matrix of (1080, 1080, 600, 3), which is the generated target video, where 1080 is the resolution, 600 is the total number of video frames, and 3 is the number of channels of the frame.
[0062] The protection scope of the multimodal video generation method described in the embodiment of the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.
[0063] An embodiment of the present invention further provides a multimodal video generation system, which can implement the multimodal video generation method described in the present invention. However, the implementation device of the multimodal video generation system described in the present invention includes but is not limited to the structure of the multimodal video generation system listed in this embodiment. All structural deformations and replacements of the prior art made according to the principles of the present invention are included in the protection scope of the present invention.
[0064] like Figure 4 As shown, in one embodiment, the multimodal video generation system of the present invention includes a first acquisition module 41, a second acquisition module 42, a third acquisition module 43, a fourth acquisition module 44, a first prediction module 45, a second prediction module 46, a cross-attention module 47 and a generation module 48.
[0065] The first acquisition module 41 is used to acquire the description text information of the target video.
[0066] The second acquisition module 42 is connected to the first acquisition module 41 and is used to acquire text features of the description text information.
[0067] The third acquisition module 43 is connected to the first acquisition module 41 and is used to acquire the voice features of the description text information.
[0068] The fourth acquisition module 44 is used to acquire the duration information and resolution information of the target video.
[0069] The first prediction module 45 is connected to the second acquisition module 42 and the fourth acquisition module 44, and is used to generate text prediction features based on the text features and the duration information, and average pool the text prediction features to obtain text pooling features.
[0070] The second prediction module 46 is connected to the third acquisition module 43 and the fourth acquisition module 44, and is used to generate speech prediction features based on the speech features and the duration information.
[0071] The cross-attention module 47 is connected to the first prediction module 45 and the second prediction module 46, and is used to use the text pooling features as the Q vector and the speech prediction features as the K vector and the V vector to perform cross-attention mechanism processing; use the output of the cross-attention mechanism processing as the Q vector and the speech prediction features as the K vector and the V vector, repeat the cross-attention mechanism processing for a preset number of times, and obtain cross-attention features.
[0072] The generation module 48 is connected to the cross-attention module 47 and is used to generate the target video based on the cross-attention feature and the resolution information.
[0073] Among them, the structures and principles of the first acquisition module 41, the second acquisition module 42, the third acquisition module 43, the fourth acquisition module 44, the first prediction module 45, the second prediction module 46, the cross-attention module 47 and the generation module 48 correspond one by one to the steps in the above-mentioned multimodal video generation method, so they will not be repeated here.
[0074] In the several embodiments provided by the present invention, it should be understood that the disclosed system, device or method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules / units is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules or units, which can be electrical, mechanical or other forms.
[0075] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention. For example, the functional modules / units in the various embodiments of the present invention may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.
[0076] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0077] The embodiment of the present invention also provides a computer-readable storage medium. A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above embodiment can be completed by instructing the processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a digital video disc (DVD)), or a semiconductor medium (for example, a solid-state disk (SSD)), etc.
[0078] An embodiment of the present invention further provides an electronic device, which includes a processor and a memory.
[0079] The memory is used to store computer programs.
[0080] The memory includes: ROM, RAM, disk, USB flash drive, memory card or CD and other media that can store program codes.
[0081] The processor is connected to the memory and is used to execute the computer program stored in the memory so that the electronic device executes the above-mentioned multimodal video generation method.
[0082] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0083] like Figure 5As shown, the electronic device of the present invention is in the form of a general computing device. The components of the electronic device may include but are not limited to: one or more processors or processing units 51, a memory 52, and a bus 53 connecting different system components (including the memory 52 and the processing unit 51).
[0084] Bus 53 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0085] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.
[0086] The memory 52 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 521 and / or cache memory 522. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 523 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 53 via one or more data medium interfaces. The memory 52 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0087] A program / utility 524 having a set (at least one) of program modules 5241 may be stored, for example, in the memory 52, such program modules 5241 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include an implementation of a network environment. The program modules 5241 generally perform the functions and / or methods of the embodiments described herein.
[0088] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, displays, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via input / output (I / O) interface 54. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 55. Figure 5 As shown, the network adapter 55 communicates with other modules of the electronic device via the bus 53. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0089] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A multimodal video generation method, It is characterized in that The method comprises the following steps: Get the description text information of the target video; Acquire text features of the descriptive text information; Acquire the voice features of the descriptive text information; Obtaining duration information and resolution information of the target video; Generating a text prediction feature based on the text feature and the duration information, and performing average pooling on the text prediction feature to obtain a text pooling feature; generating a speech prediction feature based on the speech feature and the duration information; The text pooling feature is used as the Q vector, and the speech prediction feature is used as the K vector and the V vector, and a cross attention mechanism is performed; the output of the cross attention mechanism is used as the Q vector, and the speech prediction feature is used as the K vector and the V vector, and the cross attention mechanism is repeatedly performed for a preset number of times to obtain a cross attention feature; The target video is generated based on the cross-attention features and the resolution information.
2. The multimodal video generation method according to claim 1, Features: The description text information is input into a text encoder of a CLIP model to obtain text features of the description text information.
3. The multimodal video generation method according to claim 1, Features: The descriptive text information is input into the encoding module of the VITS model to obtain the speech features of the descriptive text information.
4. The multimodal video generation method according to claim 1, Features: The text feature and the duration information are input into a decoder of a transformer model to generate the text prediction feature.
5. The multimodal video generation method according to claim 1, Features: The speech feature and the duration information are input into a decoder of a transformer model to generate the speech prediction feature.
6. The multimodal video generation method according to claim 1, Features: The preset number of times is 32 times.
7. The multimodal video generation method according to claim 1, Features: Generating the target video based on the cross-attention feature and the resolution information comprises the following steps: Inputting the cross attention feature and the resolution information into a decoder of a transformer model to obtain a decoding matrix; The decoding matrix is reshaped based on the resolution information to obtain the target video.
8. A multimodal video generation system, It is characterized in that The system includes a first acquisition module, a second acquisition module, a third acquisition module, a fourth acquisition module, a first prediction module, a second prediction module, a cross attention module and a generation module; The first acquisition module is used to acquire the description text information of the target video; The second acquisition module is used to acquire the text features of the description text information; The third acquisition module is used to acquire the voice features of the description text information; The fourth acquisition module is used to obtain the duration information and resolution information of the target video; The first prediction module is used to generate a text prediction feature based on the text feature and the duration information, and average pool the text prediction feature to obtain a text pooling feature; The second prediction module is used to generate a speech prediction feature based on the speech feature and the duration information; The cross attention module is used to use the text pooling feature as the Q vector, and the speech prediction feature as the K vector and the V vector to perform a cross attention mechanism process; the output of the cross attention mechanism process is used as the Q vector, and the speech prediction feature is used as the K vector and the V vector, and the cross attention mechanism process is repeated for a preset number of times to obtain a cross attention feature; The generation module is used to generate the target video based on the cross-attention feature and the resolution information.
9. An electronic device, It is characterized in that The electronic device comprises: a processor and a memory; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory so that the electronic device executes the multimodal video generation method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by an electronic device, the multimodal video generation method according to any one of claims 1 to 7 is implemented.
