跳到正文
Simon Willison·· 3 小时前AI 评分24

Ben Affleck 谈机器学习与视觉特效:从卷积神经网络到 Transformer

Quoting Ben Affleck

AI 导读

Ben Affleck 自述因电影从模拟转向数字而对计算机产生兴趣,并称视觉特效工作流多年来已包含机器学习。他会写 Python 脚本,用卷积神经网络处理 tensor(帧号、批次号及每像素 RGB 值),通过边缘检测和特征提取识别窗台等模式,从而更轻松地抠出绿幕画面并替换背景。

正文

7th October 2026

I've always been kind of into computers since I was young. And then when film started to move from analog film to digital, I became more interested in that aspect of it. And the visual effects workflow for many years has included machine learning.

So I can write like pretty shitty Python scripts and stuff like that because with convolutional neural networks, which were the sort of precursors to what the transformer can do, which is just much more computation simultaneously, you would do things like look at what's called a tensor, which is just the numerical translation of a visual image in numbers — like the batch number, the frame number, the red, green, and blue values of each pixel in each frame.

And a tensor, you use a convolutional neural network to identify patterns in that that would reveal what's called edge detection or feature extraction, which is just identifying patterns enough to know like this is where the window ledge is, so we can more easily take the green screen image out and replace it with something.

— Ben Affleck, Pythonista

来源:Simon Willison · simonwillison.net