Generative AI Lab

Eight generative-AI labs: architectures, text, image, video, 3D, synthetic data, multimodal, and training and evaluation, with simulators that run in your browser, a learning path and a specialised assistant.

13interactive experiments

3D Generation

Neural radiance fields (NeRF), 3D Gaussian splatting (3DGS) and text-to-3D by distillation.

  • 3Lessons
  • 1Experiments
  • 3Models
  • 1Projects

Every simulator in this lab is educational: some train small real models on 2-D data in your browser, others use simplified mathematics or locally generated data. What you see is not the output of a large real generative model and does not represent its performance; each experiment states its limits.

Scientific introduction

NeRF (Mildenhall et al. 2020) represents a scene as a continuous function (x,y,z,view direction) → (density, colour) learned by a network, then renders images by volume integration along rays. 3D Gaussian splatting (Kerbl et al. 2023) represents the scene with many Gaussians and renders at near real-time speed. DreamFusion (Poole et al. 2023) uses a pre-trained 2-D diffusion model as a teacher to optimise a NeRF from text without 3-D data (probability-density distillation).

The simulator in this lab includes a tiny volume renderer that runs in the browser so you can see how ray samples and the number of views affect reconstruction quality.

Learning objectives

  • Explain the volume-rendering equation
  • Understand rays, samples and positional encoding
  • Compare NeRF and Gaussian splatting
  • Explain distillation from a 2-D model
  • Know the data needs: images with camera poses

Core concepts

Radiance
The colour of light leaving a point in a given direction.
Volume rendering
Accumulating colour along a ray weighted by transmittance and density.
Camera poses
Camera position and orientation per image; required to train classical NeRF.
Score distillation sampling
A loss using a diffusion model’s gradient to optimise a 3-D representation.
Explicit vs implicit representation
Meshes, Gaussians or fields: each trades speed, memory and quality.

Lessons, architectures and algorithms

Algorithm

Neural Radiance Fields (NeRF)

A NeRF is a network mapping coordinates and view direction to density and colour; images are rendered by volume integration along rays and trained by comparing rendered with real images of k…

Read the lesson
Algorithm

3D Gaussian Splatting

The scene is represented by a set of 3-D Gaussians (position, covariance, opacity, colour) rendered by fast splatting instead of ray integration, reaching near real-time rendering speeds.…

Read the lesson
Simulator

Mini NeRF renderer

Coloured Gaussian blobs with genuine volume rendering and a depth map.…

Read the lesson

Algorithms and models in this lab

AlgorithmLabCovered hereNote
NeRF3D GenerationComputed in the browserA tiny volume renderer.
3D Gaussian splatting3D GenerationExplained onlyExplained only.
DreamFusion (SDS)3D GenerationExplained onlyExplained only: distillation.

The mathematics

Volume rendering

\hat C(\mathbf r)=\sum_{i=1}^{N} T_i\,\big(1-e^{-\sigma_i\delta_i}\big)\,\mathbf c_i,\quad T_i=\exp\!\Big(-\sum_{j<i}\sigma_j\delta_j\Big)

σ is density, δ the distance between samples, T the accumulated transmittance.

Photometric loss

\mathcal L=\sum_{\mathbf r}\big\|\hat C(\mathbf r)-C(\mathbf r)\big\|_2^2

Compares the rendered colour with the pixel in the real image.

Diagrams

Worked examples

  • Increase the samples per ray and watch rendering quality and run time.
  • Reduce the number of views to see reconstruction degrade.

Interactive experiments

Suitable datasets

The whole data library

Related models

The full model atlas

Applied projects

Assessment questions

3 questions on this lab, graded on the server. Start the quiz

Papers and references

  1. B. Mildenhall, P. P. Srinivasan, M. Tancik, J. T. Barron, R. Ramamoorthi, R. Ng (2020). NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis. Computer Vision – ECCV 2020, Lecture Notes in Computer Science, pp. 405–421. doi:10.1007/978-3-030-58452-8_24
  2. B. Kerbl, G. Kopanas, T. Leimkühler, G. Drettakis (2023). 3D Gaussian Splatting for Real-Time Radiance Field Rendering. ACM Transactions on Graphics 42(4). doi:10.1145/3592433
  3. B. Poole, A. Jain, J. T. Barron, B. Mildenhall (2023). DreamFusion: Text-to-3D using 2D Diffusion. International Conference on Learning Representations (ICLR 2023). doi:10.48550/arXiv.2209.14988

Content-specific assistant

Ask the assistant about any concept or equation in this lab; it answers from the lab’s content and points you to the matching lesson and experiment.

Open the assistant

Quizzes · My progress and saved runs

Related DLArabic sections