AI Depth Map and 3D Photo

Turn a flat photo into a 3D effect: an AI model estimates the depth of every pixel, then the camera seems to move around the scene.

在您的浏览器中运行。您的文件不会离开设备。 了解如何验证

…

使用方法

  1. 1
    添加一个照片

    选择一个前景和背景清晰的图片.

  2. 2
    装载模型

    允许一次下载27 MB左右.

  3. 3
    检查深度

    切换视图到灰色或彩色深度地图.

  4. 4
    设置3D运动

    选择路径,运动和缩放.

  5. 5
    试着模糊肖像

    选择焦点深度和模糊强度.

  6. 6
    其他产品

    您可以下载3DGIF,深度PNG或模糊照片.

关于此工具

一张单一的照片没有深度信息,但我们的大脑很容易看到哪些部分是近处和哪些地方是远处.单眼深度估计模型从数百万张图片中学会了这样做.深度任何东西 V2 小型是此类最好的紧 ⁇ 型模型之一,在Apache-2.0许可证下发布. 这款工具在浏览器中运行,并使用深度地图进行三种操作: 3D偏振动画,

The depth map

The model looks at your photo at about 518 pixels on the long side and outputs a relative depth value for each point: bright for near, dark for far. It is relative, not in metres, which is all you need for effects. You can view it in grey or in false colour, invert it (some 3D software expects white for far) and download it as a PNG at the size of your photo.

3D photo (parallax)

To fake a camera move, the tool shifts each pixel sideways by an amount that depends on its depth: near pixels move more than far ones, exactly as they would if you moved your head. The camera path can go left and right, up and down, or in a circle. A slight zoom hides the gaps that open at the edges of near objects. The GIF export renders a loop of frames at the width you choose, ready for social posts and messages.

Portrait blur

Choose the focus depth (100 percent is the nearest object) and the blur strength, and the tool blurs everything in front of or behind that depth, like a wide-aperture lens. Unlike a simple subject cut-out, it blurs gradually with distance.

The model and performance

The int8 version of the model is about 27 MB, downloaded once and cached. It runs on your processor with ONNX Runtime WebAssembly, which takes a few seconds per photo on a typical laptop and longer on phones. The photo is not uploaded.

Good subjects

Portraits, pets, products on a table, streets with clear foreground and background, landscapes with a close object. Scenes with strong depth layers look best in 3D.

Tips

Use 15 to 25 movement units for natural motion; large values stretch the edges. A circle path gives the classic "3D Facebook photo" look. For the GIF, 24 frames at about 540 px wide balance smoothness and size.

Limits

Depth is estimated, not measured. Glass, mirrors, sky and thin objects can be wrong. Large movements reveal stretched pixels behind near objects because the hidden background is not invented. Video export is not offered; use the GIF or animate the depth map in other software.

计算示例

A 4000 x 3000 photo of a cat on a sofa: the model takes about 3 seconds, the cat is bright in the depth map and the wall dark; a circle path with movement 20 and zoom 106 percent makes a 24-frame, 540 px GIF of about 2 MB.

要点

常见问题

什么是深度地图?

灰色图片,亮度表示距离:近处明亮,远处暗. 3D工具使用它来分隔层.

它们的深度是多少?

No. The model gives relative depth, which is enough for effects but not for measuring.

这个模型有多大?

约27MB,从这个网站下载一次并被浏览器缓存.

为什么3D动画的边缘会拉伸?

移动近距离的物体显示了照片中从未出现过的背景.

可以用Blender或Photoshop来使用深度地图吗?

是的.下载PNG,并使用它作为移位或深度地图;如果你的软件预计白色远.

我的照片是否被发送到任何地方?

不,模型在你的浏览器中运行.

完全免费无费用,无需注册
文件保持私密一切都在您的浏览器中运行
用您的语言轻松使用提供多种语言