深度学习入门(6) - 3DV 三维视觉

3DV

Two focus : predicting 3d shapes from image and processing 3d input data

Representations of 3D shape

Depth map

gives distance from the camera to the object in the world at that pixel

RGB image + Depth image = RGB-D Image (2.5D)

We can use Fully Convolutional network to predict the depth

problem : Scale / Depth Ambiguity

-> Use Scale invariant loss

Surface Normals

give a vector giving normal vector to the object in the world for that pixel

We can use Fully Convolutional network to predict Surface Normals

loss: x y ∣ x ∣ ∣ y ∣ \frac{x y}{|x||y|} ∣x∣∣y∣xy

Also can't represent the occluded objects

Voxel Grid

Represent a shape with a V × V × V V \times V \times V V×V×V grid of occupancies (just like minecraft 😃

Problems: Need high spatial resolution to capture fine structures, scaling to high resolutions in not trival

Use 3D convolution to do classification

We can have the following architecture :

image -> 2D CNN -> fully connected layer -> 3D CNN -> Voxels

but it's expensive

we can use "Voxel Tubes":

We have sacrifice the z-dim spatial information, and the memory usage of Voxel is not affordable.

Solution : Oct-Trees

use voxel grids with heterogenous resolution

Nested Shape Layers

Predict shape as a composition of positive and negative grids

Implicit Surface

learn a function o : R 3 → { 0 , 1 } o: \R^3 \rightarrow \{0,1\} o:R3→{0,1}

to classify arbitrary 3D points as inside / outside the shape

same idea: signed distance function gives Euclidean distance to the surface of the shape

Point Cloud

represent shape as a set of P points in 3D space

nice property: can represent fine structure without huge number of points

bad property: doesn't explicitly represent the surface of the shape

PointNet

Input pointcloud --MLP on each points-> point features --max pooling -> pooled vector --FC-> class score

We want to process pointclouds as sets : order should not matter

Generating Pointcloud Outputs

Loss function (new):

Chamfer distance: sum of L2 distance to each point's nearest neighbor in the other set

Mesh

Triangle Mesh

represent a 3D shape as a set of triangles

Vertices: Set of V points in 3D shape

Faces: Set of triangles over the vertices

We can attach data on verts and interpolate over the whole surface

However, nontrivial to process with neural nets

Pixel2Mesh

key ideas:

  1. iterative mesh refinement

​ Start from initial ellipsoid mesh

  1. Graph Convolution

​ input : Graph with a feature vector attached to every vertex of the graph

​ output : a new feature vector to every vertex

​ f i ′ = W 0 f i + ∑ j ∈ N ( i ) W 1 f j f_i' = W_0f_i + \sum_{j \in N(i)} W_1f_j fi′=W0fi+∑j∈N(i)W1fj

  1. Vertex-Aligned Features

​ For each vertex of the mesh : use camera information to project onto image plane

​ use bilinear interpolation to sample a CNN feature

  1. Loss function

​ Invert meshes to pointclouds then compute loss -> avoid different representation of same graphs causing different loss

Metrics

Chamfer distance on pointclouds

​ sensitive to outliers

F1 score on pointclouds

Precision @t = fraction of predicted points within t of some groud-truth point

Recall @t = fraction of groud-truth points within t of some predicted ponit

F 1 @ t = 2 P r e c i s i o n @ t ∗ R e c a l l @ t P r e c i s i o n @ t + R e c a l l @ t F1@t = 2\frac{Precision @t * Recall @t}{Precision @t + Recall @t} F1@t=2Precision@t+Recall@tPrecision@t∗Recall@t

Cameras: Canonical vs View Coordinates

Problem : Canonical views overfits more often

Dataset

ShapeNet: synthetic, no context
Pix3D: Real image but small

Mesh R-CNN

Mesh deformation gives good results but the topology is fixed by the initial mesh

Approach: Use voxel predictions to create initial mesh prediction

help predict things with holes

add L2 norm as well

Amodal completion: predict occluded parts of the objects

相关推荐
晚霞的不甘6 小时前
CANN × ROS 2:为智能机器人打造实时 AI 推理底座
人工智能·神经网络·架构·机器人·开源
饭饭大王6666 小时前
CANN 生态中的自动化测试利器:`test-automation` 项目保障模型部署可靠性
深度学习
互联网Ai好者6 小时前
MiyoAI数参首发体验——不止于监控,更是你的智能决策参谋
人工智能
island13146 小时前
CANN HIXL 通信库深度解析:单边点对点数据传输、异步模型与异构设备间显存直接访问
人工智能·深度学习·神经网络
心疼你的一切6 小时前
解锁CANN仓库核心能力:从零搭建AIGC轻量文本生成实战(附代码+流程图)
数据仓库·深度学习·aigc·流程图·cann
初恋叫萱萱6 小时前
CANN 生态中的图优化引擎:深入 `ge` 项目实现模型自动调优
人工智能
不爱学英文的码字机器6 小时前
深度解读CANN生态核心仓库——catlass,打造高效可扩展的分类器技术底座
人工智能·cann
Kiyra6 小时前
作为后端开发你不得不知的 AI 知识——RAG
人工智能·语言模型
共享家95276 小时前
Vibe Coding 与 LangChain、LangGraph 的协同进化
人工智能
dvlinker6 小时前
2026远程桌面安全白皮书:ToDesk/TeamViewer/向日葵核心安全性与合规性横向测评
人工智能