Add a Teacup to a 3D Scene With a Text Prompt
Idiocracy 3D graphics By What The Future Newsroom · January 11, 2024 · 2 min read

Add a Teacup to a 3D Scene With a Text Prompt

InseRF, a method presented by researchers at ETH Zurich and Google Zurich, adds objects to photorealistic 3D scenes using a text prompt and a marked area in a 2D view. It combines diffusion models with NeRFs to make the inserted object consistent across multiple views, though results still depend on the capabilities of the underlying models.

Adding an object to a 3D scene can be more demanding than making it look convincing in one image. An edit must also hold together as the viewpoint changes. InseRF, a method presented by researchers at ETH Zurich and Google Zurich, aims to address that challenge with a text prompt and a marked area in a scene image.

“The method makes 3D scene editing easier through generative AI, with only a mild lean toward dependence on the underlying models.”Why it scores Idiocracy

From a marked area to a 3D object

The process begins with a 2D image of a scene represented as a NeRF. The user indicates where a change should appear with a 2D bounding box, then describes the desired addition in text, such as “a teacup on a table”.

InseRF uses a diffusion model to generate the requested object in that view. It estimates depth information for the generated image and uses that data to update the NeRF, producing a 3D object within the scene.

NeRFs represent scenes in a way that supports viewing them from multiple angles. InseRF uses that scene representation together with generative AI: the text guides what to add, while the estimated depth helps place the addition in three dimensions. The method does not require explicit 3D information as input.

Why consistency across views matters

A generated object can look plausible from one angle but become inconsistent when seen from another. That is a key difficulty for generative methods that work with 2D images: each view must make sense as part of the same 3D scene.

According to the team, InseRF can create an object that remains consistent across multiple views and can be placed anywhere in the scene. This makes the edit more than a single-image change. The goal is for the inserted object to belong to the scene as viewers look around it.

The approach brings together progress in NeRFs and generative AI, including work on turning single images into 3D models and on 3D processing. Its central idea is to use a generated 2D view as a starting point, then use depth information to carry that edit into the 3D scene.

Tests show local scene edits

The researchers evaluated InseRF on real indoor and outdoor scenes from the MipNeRF-360 and Instruct-NeRF2NeRF datasets. Their results show that the method can modify a selected part of a scene and insert objects that are consistent in 3D.

The article reports that InseRF outperforms existing methods in the experiments. That comparison concerns the tested scenes and methods; the reported results do not remove the limits imposed by the underlying generative models.

Model quality remains a constraint

InseRF’s output depends on the capabilities of the generative 2D and 3D models it uses. If those models struggle to produce a convincing object or scene, the overall editing pipeline is constrained too.

The team says future improvements to those models could be incorporated into InseRF. It also plans to investigate better shadowing and ways to bring the quality of a generated object closer to the quality of its surroundings. Those details matter because an object can be correctly placed yet still appear disconnected from the scene.

For now, InseRF demonstrates a way to describe a local change in ordinary language and carry it into a multi-view 3D representation. Its usefulness rests on a straightforward promise: specify what should appear and where, then create an addition that holds together as the scene is viewed from different angles.

Artificial intelligence3D graphicsGenerative AI
← Back to the wire

Read next