78 research outputs found

    Towards Consistent Video Editing with Text-to-Image Diffusion Models

    Full text link
    Existing works have advanced Text-to-Image (TTI) diffusion models for video editing in a one-shot learning manner. Despite their low requirements of data and computation, these methods might produce results of unsatisfied consistency with text prompt as well as temporal sequence, limiting their applications in the real world. In this paper, we propose to address the above issues with a novel EI2^2 model towards \textbf{E}nhancing v\textbf{I}deo \textbf{E}diting cons\textbf{I}stency of TTI-based frameworks. Specifically, we analyze and find that the inconsistent problem is caused by newly added modules into TTI models for learning temporal information. These modules lead to covariate shift in the feature space, which harms the editing capability. Thus, we design EI2^2 to tackle the above drawbacks with two classical modules: Shift-restricted Temporal Attention Module (STAM) and Fine-coarse Frame Attention Module (FFAM). First, through theoretical analysis, we demonstrate that covariate shift is highly related to Layer Normalization, thus STAM employs a \textit{Instance Centering} layer replacing it to preserve the distribution of temporal features. In addition, {STAM} employs an attention layer with normalized mapping to transform temporal features while constraining the variance shift. As the second part, we incorporate {STAM} with a novel {FFAM}, which efficiently leverages fine-coarse spatial information of overall frames to further enhance temporal consistency. Extensive experiments demonstrate the superiority of the proposed EI2^2 model for text-driven video editing

    DiffBFR: Bootstrapping Diffusion Model Towards Blind Face Restoration

    Full text link
    Blind face restoration (BFR) is important while challenging. Prior works prefer to exploit GAN-based frameworks to tackle this task due to the balance of quality and efficiency. However, these methods suffer from poor stability and adaptability to long-tail distribution, failing to simultaneously retain source identity and restore detail. We propose DiffBFR to introduce Diffusion Probabilistic Model (DPM) for BFR to tackle the above problem, given its superiority over GAN in aspects of avoiding training collapse and generating long-tail distribution. DiffBFR utilizes a two-step design, that first restores identity information from low-quality images and then enhances texture details according to the distribution of real faces. This design is implemented with two key components: 1) Identity Restoration Module (IRM) for preserving the face details in results. Instead of denoising from pure Gaussian random distribution with LQ images as the condition during the reverse process, we propose a novel truncated sampling method which starts from LQ images with part noise added. We theoretically prove that this change shrinks the evidence lower bound of DPM and then restores more original details. With theoretical proof, two cascade conditional DPMs with different input sizes are introduced to strengthen this sampling effect and reduce training difficulty in the high-resolution image generated directly. 2) Texture Enhancement Module (TEM) for polishing the texture of the image. Here an unconditional DPM, a LQ-free model, is introduced to further force the restorations to appear realistic. We theoretically proved that this unconditional DPM trained on pure HQ images contributes to justifying the correct distribution of inference images output from IRM in pixel-level space. Truncated sampling with fractional time step is utilized to polish pixel-level textures while preserving identity information

    DropKey

    Full text link
    In this paper, we focus on analyzing and improving the dropout technique for self-attention layers of Vision Transformer, which is important while surprisingly ignored by prior works. In particular, we conduct researches on three core questions: First, what to drop in self-attention layers? Different from dropping attention weights in literature, we propose to move dropout operations forward ahead of attention matrix calculation and set the Key as the dropout unit, yielding a novel dropout-before-softmax scheme. We theoretically verify that this scheme helps keep both regularization and probability features of attention weights, alleviating the overfittings problem to specific patterns and enhancing the model to globally capture vital information; Second, how to schedule the drop ratio in consecutive layers? In contrast to exploit a constant drop ratio for all layers, we present a new decreasing schedule that gradually decreases the drop ratio along the stack of self-attention layers. We experimentally validate the proposed schedule can avoid overfittings in low-level features and missing in high-level semantics, thus improving the robustness and stableness of model training; Third, whether need to perform structured dropout operation as CNN? We attempt patch-based block-version of dropout operation and find that this useful trick for CNN is not essential for ViT. Given exploration on the above three questions, we present the novel DropKey method that regards Key as the drop unit and exploits decreasing schedule for drop ratio, improving ViTs in a general way. Comprehensive experiments demonstrate the effectiveness of DropKey for various ViT architectures, e.g. T2T and VOLO, as well as for various vision tasks, e.g., image classification, object detection, human-object interaction detection and human body shape recovery.Comment: Accepted by CVPR202

    Modeling Single-Phase Inverter and Its Decentralized Coordinated Control by Using Feedback Linearization

    Get PDF
    It is a very crucial problem to make a microgrid operated reasonably and stably. Considering the nonlinear mathematics model of inverter established in this paper, the input-output feedback linearization method is used to transform the nonlinear mathematics model of inverters to a linear tracking synchronization and consensus regulation control problem. Based on the linear mathematics model and multiagent consensus algorithm, a decentralized coordinated controller is proposed to make amplitudes and angles of voltages from inverters be consensus and active and reactive power shared in the desired ratio. The proposed control is totally distributed because each inverter only requires local and one neighbor’s information with sparse communication structure based on multiagent system. The hybrid consensus algorithm is used to keep the amplitude of the output voltages following the leader and the angles of output voltage as consensus. Then the microgrid can be operated more efficiently and the circulating current between DGs can be effectively suppressed. The effectiveness of the proposed method is proved through simulation results of a typical microgrid system

    Discovery of multi-anion antiperovskites X<sub>6</sub>NFSn<sub>2</sub> (X = Ca, Sr) as promising thermoelectric materials by computational screening

    Get PDF
    The thermoelectric performance of existing perovskites lags far behind that of state-of-the-art thermoelectric materials such as SnSe. Despite halide perovskites showing promising thermoelectric properties, namely, high Seebeck coefficients and ultralow thermal conductivities, their thermoelectric performance is significantly restricted by low electrical conductivities. Here, we explore new multi-anion antiperovskites X6NFSn2 (X = Ca, Sr, and Ba) via B-site anion mutation in antiperovskite and global structure searches and demonstrate their phase stability by first-principles calculations. Ca6NFSn2 and Sr6NFSn2 exhibit decent Seebeck coefficients and ultralow lattice thermal conductivities (&lt;1 W m−1 K−1). Notably, Ca6NFSn2 and Sr6NFSn2 show remarkably larger electrical conductivities compared to the halide perovskite CsSnI3. The combined superior electrical and thermal properties of Ca6NFSn2 and Sr6NFSn2 lead to high thermoelectric figures of merit (ZTs) of ∌1.9 and ∌2.3 at high temperatures. Our exploration of multi-anion antiperovskites X6NFSn2 (X = Ca, Sr) realizes the “phonon-glass, electron-crystal” concept within the antiperovskite structure

    Bessel terahertz pulses from superluminal laser plasma filaments

    Get PDF
    Terahertz radiation with a Bessel beam profile is demonstrated experimentally from a two-color laser filament in air, which is induced by tailored femtosecond laser pulses with an axicon. The temporal and spatial distributions of Bessel rings of the terahertz radiation are retrieved after being collected in the far field. A theoretical model is proposed, which suggests that such Bessel terahertz pulses are produced due to the combined effects of the inhomogeneous superluminal filament structure and the phase change of the two-color laser components inside the plasma channel. These two effects lead to wavefront crossover and constructive/destructive interference of terahertz radiation from different plasma sources along the laser filament, respectively. Compared with other methods, our technique can support the generation of Bessel pulses with broad spectral bandwidth. Such Bessel pulses can propagate to the far field without significant spatial spreading, which shall provide new opportunities for terahertz applications
    • 

    corecore