论文阅读:Anti-DreamBooth: Protecting users from personalized text-to-image synthesis

Anti-DreamBooth: Protecting users from personalized text-to-image synthesis

论文链接
代码链接

摘要

文生图个性化生成工具,比如DreamBooth,可以通过学习几张参考图片的情况下,生成特定人物的图片。然后,当这些工具被不正当地使用时,可能生成一些不合适的图片而造成恶劣的社会影响。为了解决这个问题,本文提出了Anti-DreamBooth以防御DreamBooth的恶意使用。该方法通过向图片中添加噪声,即可使得任何在这些扰动后的图片上训练的DreamBooth模型生成的图片质量下降。
A malicious attacker can collect a user’s images to train a personalized text-to-image generator for malicious purposes. Our system, called Anti-DreamBooth, applies imperceptible perturbations to the user’s images before re- leasing, making any personalized generator trained on these images fail to produce usable images, protecting the user from that threat.

介绍

文生图模性的一个流行的应用场景是个性化,其根据给定的一些参考图片,生成特定主体的图片。其中的代表工作是Textual Inversion [20] 和 DreamBooth[47],前者优化了embeddings,而后者微调了文生图模型本身以获取更好的个性化质量。因此,DreamBooth被广泛应用于多个应用。但是,DreamBooth同样有可能被用于假新闻的生成。受DeepFake的防御方法的启发,本文提出主动防御DreamBooth给用户带来的威胁,通过在发布图片前向图片中添加噪声。
本文在两个面部数据集基准上、多个不同的文生图模型、不同的训练提示词甚至在攻击情形下,验证了DreamBooth的有效性。
本文的主要贡献如下:

  • 提出了一个新的任务,防御个性化图片生成的威胁。
  • 为了应对这个新任务,本文提出了Anti-DreamBooth,通过在发布图片前向其中添加噪声,主动地防止个性化模型生成期望的图片。该方法在2个数据集和多个不同的个性化模型和设置下验证了有效性。

问题

作者在这部分介绍了对砍攻击、扩散模型、基于提示词的扩散模型、DreamBooth模型的基础知识,并给出了本文所提方法的问题定义。

背景

DreamBooth.

DreamBooth的损失函数
这里, x 0 x_0 x0是参考图片, c c c的一般模板为“a photo of sks [class noun]”,其中sks代表目标人物,“[class noun]” 代表目标类型,其可以用于个性化人类主题。 c p r c_{pr} cpr是一个先验提示词,例如“a photo of [class noun]”。第一项是为了生成符合提示词语义和参考图片内容的个性化图片,第二项是为了防止过拟合。

所提方法

所提方法的损失函数如下:
minimizes thepersonalized generation ability of that DreamBooth model
第一行的公式代表DreamBooth模型的生成能力最差,第二行公式代表满足DreamBoth的损失函数最小,第三行公式代表扰动小于特定阈值。大体上可以理解为,保护后的图片上的噪声扰动是不可感知的(第三行),在保护后的图片上训练的DreamBooth模型是满足损失函数最优的(第二行),但是不能生成预期的图片(第一行)。

  • 16
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
### 回答1: PMSM refers to Permanent Magnet Synchronous Motor, which is a type of electric motor widely used in various applications. Inter-turn short circuit protection is a crucial feature to ensure the safe and reliable operation of PMSM. Inter-turn short circuit refers to a fault condition in which the insulation between the turns of the motor windings becomes compromised, leading to an unintended connection or short circuit between adjacent turns. This can occur due to various reasons such as mechanical stress, thermal stress, or manufacturing defects. To protect against inter-turn short circuit, several measures can be implemented in PMSM. One commonly used approach is the use of insulation materials that have high electrical resistance and can withstand the expected operating conditions. This helps prevent inter-turn short circuits caused by electrical breakdown. Another important approach is the implementation of a monitoring system that continuously measures the current flowing through each winding phase of the motor. By comparing the currents in different phases, any deviation or imbalance can be detected, indicating a possible inter-turn short circuit. Once such a condition is detected, the motor control system can take appropriate measures to protect the motor, such as reducing the motor current or stopping the motor operation altogether. Furthermore, temperature sensors can be placed strategically within the motor to monitor the temperature rise, particularly in areas prone to inter-turn short circuits. If an abnormal temperature rise is detected, it can indicate a potential short circuit and trigger protective actions. In summary, protecting against PMSM inter-turn short circuits involves using proper insulation materials, implementing current monitoring systems, and utilizing temperature sensors. These measures can help detect and prevent inter-turn short circuits, ensuring the smooth and safe operation of PMSM. ### 回答2: PMSM(永磁同步电机)的匝间短路保护是指在电机运行过程中,由于某些原因导致电机绕组中存在匝间短路的情况,如何进行及时的保护和处理。 PMSM中的匝间短路问题通常是由于绕组材料或接线不良引起的,也可能是由于电机过载或过压等工作条件造成的。这种情况下,如果不及时发现和处理,匝间短路可能会导致电机温度升高、损坏绕组等严重后果。 为了保护PMSM免受匝间短路的影响,通常采取以下几种措施: 1. 管理和优化电机的工作条件,避免过载和过压等异常工作状态,以降低匝间短路的发生概率。 2. 在电机绕组设计和制造过程中,选用高质量的绝缘材料和合适的接线方式,尽量减少匝间短路的可能性。 3. 在电机控制系统中,设置合适的电流和电压监测装置,实时监测电机的工作状态。当监测到异常电流或电压信号时,及时采取保护措施,如切断电源或降低电机负载。 4. 提高PMSM的综合性能和可靠性,使其能够在极端工作条件下具有较好的抗干扰能力和安全性。 总结来说,PMSM匝间短路保护是一个综合性的问题,需要在电机设计、制造和控制等多个方面进行综合考虑。通过合理的管理和优化工作条件,选择合适的材料和接线方式,以及设置合适的监测装置,可以有效地保护PMSM免受匝间短路的影响,提高电机的可靠性和安全性。 ### 回答3: PMSM是永磁同步电机的缩写,其拥有高效率、高功率密度和高转矩密度等优点,因此被广泛应用于驱动系统中。然而,PMSM也存在着一些潜在的故障风险,其中一种常见故障是绕组短路。 绕组短路意味着电机的绕组之间发生了电气短路,这会导致电机不能正常工作甚至无法启动。因此,PMSM需要拥有绕组短路保护功能,以避免电机的绕组受到损坏。 PMSM绕组短路保护主要通过电流监测来实现。在正常运行时,电机的工作电流应该在正常范围内波动。一旦出现绕组短路,电机的工作电流会急剧增加,这可以通过电流传感器进行监测。 当电流传感器检测到异常电流时,控制器会触发绕组短路保护机制。这通常包括断开电机的电源供应,并将电机停止运转,从而避免绕组受到进一步的损坏。 此外,为了更好地保护PMSM的绕组,还可以采取其他防护措施。例如,安装温度传感器来监测绕组温度,当温度超过设定阈值时,也可以触发绕组短路保护机制。此外,合理的电机设计和正确的维护也可以减少绕组短路的风险。 综上所述,PMSM的绕组短路保护是通过电流监测和控制触发的,当异常电流被检测到时,电机的电源将被断开,以避免绕组受到损坏。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值