我们如何为图像构建AI人脸裁剪

2025-08-20

2025-08-20

11 min read

阅读时长 11 分钟

This post is also available in 简体中文 and 日本語.

本文还提供简体中文日本語版本。

During Developer Week 2024, we introduced AI face cropping in private beta. This feature automatically crops images around detected faces, and marks the first release in our upcoming suite of AI image manipulation capabilities.

在2024年Developer Week期间,我们推出了私有测试版中的AI人脸裁剪。此功能可自动裁剪检测到的人脸周围的图像,并标志着我们即将推出的AI图像操作功能套件的首次发布。

AI face cropping is now available in Images for everyone. To bring this feature to general availability, we moved our CPU-based prototype to a GPU-based implementation in Workers AI, enabling us to address a number of technical challenges, including memory leaks that could hamper large-scale use.

AI 人脸裁剪现已在 Images 中向所有人开放。为了使此功能全面可用,我们将基于 CPU 的原型迁移到了 Workers AI 中基于 GPU 的实现,从而使我们能够解决一系列技术挑战,包括可能阻碍大规模使用的内存泄漏问题。

Photograph by Suad Kamardeen (@suadkamardeen) on Unsplash

摄影: Unsplash上的Suad Kamardeen (@suadkamardeen)

Turning raw images into production-ready assets

将原始图像转化为生产就绪资产

We developed face cropping with two particular use cases in mind:

我们在开发人脸裁剪功能时,主要考虑了两个特定的用例:

Social media platforms and AI chatbots. We observed a lot of traffic from customers who use Images to turn unedited images of people into smaller profile pictures in neat, fixed shapes.

社交媒体平台和 AI 聊天机器人。我们观察到大量来自客户的流量,他们使用 Images 将未经编辑的人物图像转换为整齐、固定形状的较小个人资料图片。

E-commerce platforms. The same product photo might appear in a grid of thumbnails on a gallery page, then again on an individual product page with a larger view. The following example illustrates how cropping can change the emphasis from the model’s shirt to their sunglasses.

电子商务平台。同一张产品照片可能会以缩略图网格的形式出现在图库页面上,然后在单个产品页面上以更大的视图再次出现。以下示例说明了裁剪如何将重点从模特的衬衫转移到他们的太阳镜上。

Photograph by Media Modifier (@mediamodifier) on Unsplash

摄影: Unsplash上的Media Modifier (@mediamodifier)

When handling high volumes of media content, preparing images for production can be tedious. With Images, you don’t need to manually generate and store multiple versions of the same image. Instead, we serve copies of each i...

开通本站会员,查看完整译文。

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-12 16:29
浙ICP备14020137号-1 $访客地图$