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Добавить фото
Выберите картинку с четким передним и задним фоном.
- 2Загрузить модель
Agree to download about 27 MB once.
- 3Проверьте глубину.
Переключите вид на серую или цветовую карту глубины.
- 4Настройте 3D-движение
Выберите путь, движение и увеличение.
- 5Попробуйте размыть портрет
Выберите глубину фокусировки и размытость.
- 6Экспорт
Скачать 3D GIF, глубину PNG или размытую фотографию.
Об этом инструменте
Монокулярные модели оценки глубины учатся делать то же самое из миллионов фотографий. Depth Anything V2 Small является одной из лучших компактных моделей такого рода, выпущенной по лицензии 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.
Коротко
- Категория: Изображения
- Работает в браузере, без регистрации и загрузки.
- Введённые данные остаются на вашем устройстве.
- Доступно на английском.
- Содержание проверено:
- Официальный источник: Yang et al., Depth Anything V2 (2024)
Часто задаваемые вопросы
Что такое карта глубины?
Серая картинка, где яркость означает расстояние: яркая для близкого, темная для дальнего. 3D-инструменты используют ее для разделения слоев.
Глубина в метрах?
Нет, модель дает относительную глубину, которая достаточна для эффектов, но не для измерения.
Какой размер у модели?
About 27 MB, downloaded once from this site and cached by your browser.
Почему края растягиваются в 3D-анимации?
Перемещение близкого объекта показывает фоновую картину, которую никогда не было на фотографии.
Могу ли я использовать карту глубины в Блендере или Photoshop?
Да. Загрузите PNG и используйте его в качестве карты смещения или глубины; переверните ее, если ваше программное обеспечение ожидает белого на расстоянии.
Моя фотография была отправлена куда-нибудь?
Нет, модель работает локально в вашем браузере.
