{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Field Encoders\n" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import torch\n", "import mediapy as media\n", "from pyrad.fields.modules import encoding" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## NeRF Positional Encoding\n", "First introduced in the original NeRF paper. This encoding assumes the inputs are between zero and one and can opperate on any dimensional input." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Input Values:\n" ] }, { "data": { "text/html": [ "