Skip to content

Commit 95f83b4

Browse files
AleksMatThe jax3d Authors
authored andcommitted
Replace unicode escaped characters in ipynb files
PiperOrigin-RevId: 854213767
1 parent e4f8088 commit 95f83b4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

jax3d/projects/nesf/nerfstatic/NeSF_Visualization_Demo.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
},
323323
"outputs": [],
324324
"source": [
325-
"# Initialize \u0026 load per-scene NeRF models.\n",
325+
"# Initialize & load per-scene NeRF models.\n",
326326
"\n",
327327
"recovered_nerf_state = semantic_utils.load_all_nerf_variables(\n",
328328
" save_dir=params.train.nerf_model_ckpt,\n",
@@ -401,7 +401,7 @@
401401
},
402402
"outputs": [],
403403
"source": [
404-
"# Plot XYZ values where density \u003e min_density for various values of min_density.\n",
404+
"# Plot XYZ values where density > min_density for various values of min_density.\n",
405405
"\n",
406406
"def plot_density_coordinates(kept_points, color=None, ax=None):\n",
407407
" ii, jj, kk = kept_points[:, 0], kept_points[:, 1], kept_points[:, 2]\n",
@@ -440,7 +440,7 @@
440440
},
441441
"outputs": [],
442442
"source": [
443-
"# Plot XYZ values where density \u003e 0, interactively.\n",
443+
"# Plot XYZ values where density > 0, interactively.\n",
444444
"\n",
445445
"def plot_density_coordinates_interactive(kept_points, color=None):\n",
446446
" assert len(kept_points)\n",
@@ -592,7 +592,7 @@
592592
"fig = plt.figure(figsize=(len(min_density_values) * 4, 4))\n",
593593
"axs = []\n",
594594
"for i, min_density in enumerate(min_density_values):\n",
595-
" mask = sigma_values \u003e min_density\n",
595+
" mask = sigma_values > min_density\n",
596596
" kept_points = positions[0][mask[0, :, 0]]\n",
597597
" kept_points_color = color_values[0][mask[0, :, 0]]\n",
598598
" ax = fig.add_subplot(1, len(min_density_values), i+1, projection='3d')\n",
@@ -673,7 +673,7 @@
673673
" *,\n",
674674
" semantic_variables: Tree[jnp.ndarray],\n",
675675
" semantic_model: volumetric_semantic_model.VolumetricSemanticModel,\n",
676-
") -\u003e f32[\"D n k\"]:\n",
676+
") -> f32[\"D n k\"]:\n",
677677
" \"\"\"Predict semantic logits for a set of 3D points.\n",
678678
"\n",
679679
" Args:\n",
@@ -854,7 +854,7 @@
854854
"# Visualize semantic model predictions across 3D lattice of points.\n",
855855
"\n",
856856
"MIN_DENSITY = 16\n",
857-
"mask = sigma_values \u003e MIN_DENSITY\n",
857+
"mask = sigma_values > MIN_DENSITY\n",
858858
"kept_points = positions[0][mask[0, :, 0]]\n",
859859
"kept_points_color = semantic_predictions[0][mask[0, :, 0]]\n",
860860
"print(kept_points.shape)\n",
@@ -913,7 +913,7 @@
913913
"\n",
914914
" points = ray_o + depth * ray_d\n",
915915
"\n",
916-
" mask = np.all((points \u003e= -1) \u0026 (points \u003c= 1), axis=-1)\n",
916+
" mask = np.all((points >= -1) & (points <= 1), axis=-1)\n",
917917
"\n",
918918
" select_points = points[mask]\n",
919919
" select_semantics = semantics[mask]\n",
@@ -929,7 +929,7 @@
929929
},
930930
"outputs": [],
931931
"source": [
932-
"# Construct labeled semantic point cloud from ground truth dataset (i.e. using semantic masks, ray origins \u0026 directions from known cameras, and depth)\n",
932+
"# Construct labeled semantic point cloud from ground truth dataset (i.e. using semantic masks, ray origins & directions from known cameras, and depth)\n",
933933
"\n",
934934
"labeled_point_cloud = construct_labeled_point_cloud(examples)"
935935
]

0 commit comments

Comments
 (0)