diff --git a/Cookbook.html b/Cookbook.html index 10f53be26..f49f9c5ab 100644 --- a/Cookbook.html +++ b/Cookbook.html @@ -15157,12 +15157,12 @@
2024-09-29 11:47:13.110761: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:485] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered -2024-09-29 11:47:13.125072: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:8454] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered -2024-09-29 11:47:13.129460: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1452] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered -2024-09-29 11:47:13.140906: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. +2024-10-06 12:21:05.030322: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:485] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered +2024-10-06 12:21:05.044694: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:8454] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered +2024-10-06 12:21:05.049113: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1452] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered +2024-10-06 12:21:05.061011: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. -2024-09-29 11:47:14.111202: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT +2024-10-06 12:21:06.060282: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
(examplesᵇ=10, vectorᶜ=x,y) 0.359 ± 0.281 (3e-02...9e-01)+
(examplesᵇ=10, vectorᶜ=x,y) 0.419 ± 0.269 (6e-02...9e-01)@@ -15400,7 +15400,7 @@
(x=0.273, y=0.034)
+(x=0.376, y=0.884)
@@ -15449,18 +15449,18 @@ Tensor
-(examplesᵇ=10, vectorᶜ=x,y) 0.359 ± 0.281 (3e-02...9e-01) +(examplesᵇ=10, vectorᶜ=x,y) 0.419 ± 0.269 (6e-02...9e-01) (examplesᵇ=10, vectorᶜ=x,y) -[[0.3, 0.0], +[[0.4, 0.9], + [0.1, 0.3], + [0.7, 0.9], + [0.3, 0.7], + [0.1, 0.2], + [0.6, 0.3], + [0.1, 0.6], [0.3, 0.1], - [0.9, 0.7], - [0.3, 0.4], - [0.1, 0.1], - [0.9, 0.5], - [0.3, 0.1], - [0.5, 0.0], - [0.6, 0.0], - [0.3, 0.7]] + [0.6, 0.7], + [0.4, 0.1]]@@ -15511,7 +15511,7 @@Plot a
Tensor
- @@ -15526,7 +15526,7 @@Plot a
Tensor
- @@ -15579,22 +15579,22 @@Convert a
Tensor
to NumPy -array([[0.86365473, 0.76841825, 0.16474491, 0.22094291, 0.06000584, - 0.773595 ], - [0.6795073 , 0.34120226, 0.14733863, 0.2543561 , 0.75176173, - 0.4720564 ], - [0.07928693, 0.62730235, 0.26824182, 0.46267766, 0.52976125, - 0.8972544 ], - [0.55509883, 0.6000832 , 0.90848374, 0.99694896, 0.7865701 , - 0.52510107], - [0.23967099, 0.30384547, 0.17566812, 0.3239668 , 0.33542985, - 0.06533539], - [0.37300527, 0.2352913 , 0.32123834, 0.56373996, 0.8215272 , - 0.2785992 ], - [0.4867983 , 0.7675512 , 0.9406827 , 0.7018505 , 0.33491302, - 0.37064373], - [0.2544309 , 0.7924388 , 0.12295508, 0.6383069 , 0.17645943, - 0.12705857]], dtype=float32)+array([[0.23366916, 0.77822757, 0.51076126, 0.9744147 , 0.37954563, + 0.18154222], + [0.2315619 , 0.6648233 , 0.7119048 , 0.6393048 , 0.63858664, + 0.60814 ], + [0.31204498, 0.12089097, 0.43459094, 0.6246416 , 0.3803814 , + 0.05890048], + [0.42343682, 0.03447479, 0.78294075, 0.72517246, 0.77531445, + 0.7658634 ], + [0.25781244, 0.85141474, 0.41198778, 0.44912958, 0.6957595 , + 0.12772143], + [0.90811473, 0.9479639 , 0.84399194, 0.6691394 , 0.34335357, + 0.9858493 ], + [0.31881076, 0.24609572, 0.49153364, 0.17940438, 0.29851824, + 0.66224563], + [0.65576136, 0.51415294, 0.35803026, 0.20866394, 0.48418188, + 0.1074608 ]], dtype=float32)@@ -15633,16 +15633,16 @@Convert a
Tensor
to NumPy -array([[0.86365473, 0.76841825, 0.16474491, 0.22094291, 0.06000584, - 0.773595 , 0.6795073 , 0.34120226, 0.14733863, 0.2543561 , - 0.75176173, 0.4720564 , 0.07928693, 0.62730235, 0.26824182, - 0.46267766, 0.52976125, 0.8972544 , 0.55509883, 0.6000832 , - 0.90848374, 0.99694896, 0.7865701 , 0.52510107, 0.23967099, - 0.30384547, 0.17566812, 0.3239668 , 0.33542985, 0.06533539, - 0.37300527, 0.2352913 , 0.32123834, 0.56373996, 0.8215272 , - 0.2785992 , 0.4867983 , 0.7675512 , 0.9406827 , 0.7018505 , - 0.33491302, 0.37064373, 0.2544309 , 0.7924388 , 0.12295508, - 0.6383069 , 0.17645943, 0.12705857]], dtype=float32)+array([[0.23366916, 0.77822757, 0.51076126, 0.9744147 , 0.37954563, + 0.18154222, 0.2315619 , 0.6648233 , 0.7119048 , 0.6393048 , + 0.63858664, 0.60814 , 0.31204498, 0.12089097, 0.43459094, + 0.6246416 , 0.3803814 , 0.05890048, 0.42343682, 0.03447479, + 0.78294075, 0.72517246, 0.77531445, 0.7658634 , 0.25781244, + 0.85141474, 0.41198778, 0.44912958, 0.6957595 , 0.12772143, + 0.90811473, 0.9479639 , 0.84399194, 0.6691394 , 0.34335357, + 0.9858493 , 0.31881076, 0.24609572, 0.49153364, 0.17940438, + 0.29851824, 0.66224563, 0.65576136, 0.51415294, 0.35803026, + 0.20866394, 0.48418188, 0.1074608 ]], dtype=float32)@@ -15749,7 +15749,7 @@Construct a
CenteredGrid
- @@ -15764,7 +15764,7 @@Construct a
CenteredGrid
- @@ -15833,7 +15833,7 @@Construct a
StaggeredGrid
- @@ -15848,7 +15848,7 @@Construct a
StaggeredGrid
- @@ -16205,7 +16205,7 @@Plot Optimization Trajectories -
/tmp/ipykernel_2286/1489350838.py:9: UserWarning: bounds argument is deprecated since 2.5 and will be ignored. +/tmp/ipykernel_2295/1489350838.py:9: UserWarning: bounds argument is deprecated since 2.5 and will be ignored. segments.append(PointCloud(start, end - start, bounds=Box(x=2*PI, y=2*PI)))@@ -16982,8 +16982,8 @@Neural Network Training -
Initial loss: (batchᵇ=100) 0.210 ± 0.173 (3e-05...6e-01) -Final loss: (batchᵇ=100) 0.094 ± 0.078 (3e-07...2e-01) +Initial loss: (batchᵇ=100) 0.204 ± 0.171 (3e-06...5e-01) +Final loss: (batchᵇ=100) 0.100 ± 0.084 (6e-06...3e-01)diff --git a/FLIP.html b/FLIP.html index 30bb7e416..102ace7e9 100644 --- a/FLIP.html +++ b/FLIP.html @@ -15323,12 +15323,12 @@Fluid-Implicit-Particle (FLI -
-- -Out[6]:++--------------------------------------------------------------------------- +AttributeError Traceback (most recent call last) +Cell In[6], line 3 + 1 points = Box(x=3, y=(-1, 1)).sample_uniform(instance(points=200)) + 2 sgn_dist, delta, normal, _, face_index = heightmap.approximate_closest_surface(points) +----> 3 plot({'closest': [heightmap, PointCloud(points, .1 * math.vec_normalize(delta))], + 4 'normal': [heightmap, PointCloud(points, .2 * normal)]}, overlay='list', color=[0, heightmap.lies_inside(points)*2+1]) +File /opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages/phi/vis/_vis.py:399, in plot(lib, row_dims, col_dims, animate, overlay, title, size, same_scale, log_dims, show_color_bar, color, alpha, err, frame_time, repeat, plt_params, max_subfigures, *fields) + 397 for i, f in enumerate(fields): + 398 idx = indices[pos][i] +--> 399 plots.plot(f, figure, axes[pos], subplots[pos], min_val, max_val, show_color_bar, color[pos][i], alpha[idx], err[idx]) + 400 plots.finalize(figure) + 401 LAST_FIGURE[0] = figure +File /opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages/phi/vis/_vis_base.py:384, in PlottingLibrary.plot(self, data, figure, subplot, space, *args, **kwargs) + 382 for recipe in self.recipes: + 383 if recipe.can_plot(data, space): +--> 384 recipe.plot(data, figure, subplot, space, *args, **kwargs) + 385 return + 386 raise NotImplementedError(f"No {self.name} recipe found for {data}. Recipes: {self.recipes}") +File /opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages/phi/vis/_matplotlib/_matplotlib_plots.py:454, in VectorCloud2D.plot(self, data, figure, subplot, space, min_val, max_val, show_color_bar, color, alpha, err) + 452 u, v = reshaped_numpy(c_data.values.vector[dims], [vector, c_data.shape.without('vector')]) + 453 color_i = color[idx] +--> 454 if (color[idx] == 'cmap').all: + 455 col = _next_line_color(subplot, kind='collections') # ToDo + 456 elif color[idx].shape: -- +AttributeError: 'bool' object has no attribute 'all'-@@ -15519,7 +15532,7 @@Heightmaps¶
- diff --git a/IO_with_Scenes.html b/IO_with_Scenes.html index 285f988fa..ff9e2fb30 100644 --- a/IO_with_Scenes.html +++ b/IO_with_Scenes.html @@ -15174,7 +15174,7 @@Writing Data
-@@ -15292,7 +15292,7 @@/opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages/phi/field/_scene.py:150: RuntimeWarning: Failed to copy calling script to scene during Scene.create(): [Errno 2] No such file or directory: '/tmp/ipykernel_2798/2238997793.py' +/opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages/phi/field/_scene.py:150: RuntimeWarning: Failed to copy calling script to scene during Scene.create(): [Errno 2] No such file or directory: '/tmp/ipykernel_2796/2238997793.py' warnings.warn(f"Failed to copy calling script to scene during Scene.create(): {err}", RuntimeWarning)Writing Data
- @@ -15307,7 +15307,7 @@Writing Data
- @@ -15419,7 +15419,7 @@@@ -15470,7 +15470,7 @@Reading Data
-{'smoothness': 0.373820960521698}+{'smoothness': 0.3758765757083893}Reading Data
- @@ -15485,7 +15485,7 @@Reading Data
- @@ -15553,7 +15553,7 @@Batched Data
- @@ -15568,7 +15568,7 @@Batched Data
- @@ -15628,7 +15628,7 @@@@ -15815,7 +15804,7 @@Batched Data
- @@ -15643,7 +15643,7 @@@@ -15858,7 +15858,7 @@Batched Data
- @@ -15685,7 +15685,7 @@@@ -15737,7 +15737,7 @@Batched Data
-(0.364, 0.926, 0.649, 0.950) along batchᵇ float64+(0.291, 0.603, 0.591, 0.286) along batchᵇ float64Batched Data
-@@ -15819,7 +15819,7 @@/opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages/phi/field/_scene.py:150: RuntimeWarning: Failed to copy calling script to scene during Scene.create(): [Errno 2] No such file or directory: '/tmp/ipykernel_2798/3852168639.py' +/opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages/phi/field/_scene.py:150: RuntimeWarning: Failed to copy calling script to scene during Scene.create(): [Errno 2] No such file or directory: '/tmp/ipykernel_2796/3852168639.py' warnings.warn(f"Failed to copy calling script to scene during Scene.create(): {err}", RuntimeWarning)Batched Data
-0.3635457158088684+0.2909450829029083Batched Data @@ -15776,7 +15765,7 @@
Introduction to Tensors in Φ
-(xˢ=10) 0.440 ± 0.270 (1e-01...9e-01)+(xˢ=10) 0.472 ± 0.249 (9e-02...1e+00)Introduction to Tensors in Φ
- @@ -15830,7 +15819,7 @@Introduction to Tensors in Φ
- @@ -15884,7 +15873,7 @@Introduction to Tensors in Φ
- @@ -15899,7 +15888,7 @@Introduction to Tensors in Φ
- @@ -15954,7 +15943,7 @@Introduction to Tensors in Φ
- @@ -15969,7 +15958,7 @@Introduction to Tensors in Φ
- @@ -16025,7 +16014,7 @@Introduction to Tensors in Φ
- @@ -16040,7 +16029,7 @@Introduction to Tensors in Φ
- diff --git a/data/sim_000000/batched_noise_data_000000.npz b/data/sim_000000/batched_noise_data_000000.npz index db441e848..4eee1dee1 100644 Binary files a/data/sim_000000/batched_noise_data_000000.npz and b/data/sim_000000/batched_noise_data_000000.npz differ diff --git a/data/sim_000000/description.json b/data/sim_000000/description.json index c3929cb31..7ff58a11d 100644 --- a/data/sim_000000/description.json +++ b/data/sim_000000/description.json @@ -10,10 +10,10 @@ null ], "data": [ - 0.3635457158088684, - 0.9257050156593323, - 0.6492404937744141, - 0.949883759021759 + 0.2909450829029083, + 0.6031990647315979, + 0.5909240245819092, + 0.2855338454246521 ] }, "__tensors__": [ diff --git a/data/sim_000000/noise_data_000000.npz b/data/sim_000000/noise_data_000000.npz index 6762b200a..f15118f48 100644 Binary files a/data/sim_000000/noise_data_000000.npz and b/data/sim_000000/noise_data_000000.npz differ diff --git a/data/sim_000001/batched_noise_data_000000.npz b/data/sim_000001/batched_noise_data_000000.npz index 07e02834a..6e3883fa4 100644 Binary files a/data/sim_000001/batched_noise_data_000000.npz and b/data/sim_000001/batched_noise_data_000000.npz differ diff --git a/data/sim_000001/description.json b/data/sim_000001/description.json index 52638baa1..1a35fbf55 100644 --- a/data/sim_000001/description.json +++ b/data/sim_000001/description.json @@ -1,3 +1,3 @@ { - "smoothness": 0.3635457158088684 + "smoothness": 0.2909450829029083 } \ No newline at end of file diff --git a/data/sim_000002/batched_noise_data_000000.npz b/data/sim_000002/batched_noise_data_000000.npz index 55ce66e0a..71009581d 100644 Binary files a/data/sim_000002/batched_noise_data_000000.npz and b/data/sim_000002/batched_noise_data_000000.npz differ diff --git a/data/sim_000002/description.json b/data/sim_000002/description.json index 3d402a621..75e0a67eb 100644 --- a/data/sim_000002/description.json +++ b/data/sim_000002/description.json @@ -1,3 +1,3 @@ { - "smoothness": 0.9257050156593323 + "smoothness": 0.6031990647315979 } \ No newline at end of file diff --git a/data/sim_000003/batched_noise_data_000000.npz b/data/sim_000003/batched_noise_data_000000.npz index 594fcb34d..4a4ec6aa1 100644 Binary files a/data/sim_000003/batched_noise_data_000000.npz and b/data/sim_000003/batched_noise_data_000000.npz differ diff --git a/data/sim_000003/description.json b/data/sim_000003/description.json index e1e067b42..5a803bf23 100644 --- a/data/sim_000003/description.json +++ b/data/sim_000003/description.json @@ -1,3 +1,3 @@ { - "smoothness": 0.6492404937744141 + "smoothness": 0.5909240245819092 } \ No newline at end of file diff --git a/data/sim_000004/batched_noise_data_000000.npz b/data/sim_000004/batched_noise_data_000000.npz index 8cc91e2e2..93eb8aa8f 100644 Binary files a/data/sim_000004/batched_noise_data_000000.npz and b/data/sim_000004/batched_noise_data_000000.npz differ diff --git a/data/sim_000004/description.json b/data/sim_000004/description.json index c21397e5a..a6c0cb0f5 100644 --- a/data/sim_000004/description.json +++ b/data/sim_000004/description.json @@ -1,3 +1,3 @@ { - "smoothness": 0.949883759021759 + "smoothness": 0.2855338454246521 } \ No newline at end of file diff --git a/phi/field/index.html b/phi/field/index.html index f6ee90a24..fc907b922 100644 --- a/phi/field/index.html +++ b/phi/field/index.html @@ -325,7 +325,7 @@Args
-def divergence(field: phi.field._field.Field, order=2, implicit: phiml.math._optimize.Solve = None, upwind: phi.field._field.Field = None, implicitness: int = None) ‑>
CenteredGrid() at 0x7fd8b2961260> +def divergence(field: phi.field._field.Field, order=2, implicit: phiml.math._optimize.Solve = None, upwind: phi.field._field.Field = None, implicitness: int = None) ‑>CenteredGrid() at 0x7fe5ed35ec00> Computes the divergence of a grid using finite differences.
diff --git a/phi/physics/fluid.html b/phi/physics/fluid.html index 49609dc40..d108dd3bf 100644 --- a/phi/physics/fluid.html +++ b/phi/physics/fluid.html @@ -52,7 +52,7 @@Returns
Velocity of same type as
velocity
-def boundary_push(particles:
, obstacles: tuple, separation: float = 0.5) ‑> +def boundary_push(particles:, obstacles: tuple, separation: float = 0.5) ‑> Enforces boundary conditions by correcting possible errors of the advection step and shifting particles out of @@ -104,7 +104,7 @@
Returns
-def make_incompressible(velocity: phi.field._field.Field, obstacles: Obstacle = (), solve: phiml.math._optimize.Solve = auto with tolerance None (rel), None (abs), max_iterations=1000, active:
= None, order: int = 2, correct_skew=False, wide_stencil: bool = None) ‑> Tuple[phi.field._field.Field, phi.field._field.Field] +def make_incompressible(velocity: phi.field._field.Field, obstacles: Obstacle = (), solve: phiml.math._optimize.Solve = auto with tolerance None (rel), None (abs), max_iterations=1000, active:= None, order: int = 2, correct_skew=False, wide_stencil: bool = None) ‑> Tuple[phi.field._field.Field, phi.field._field.Field] Projects the given velocity field by solving for the pressure and subtracting its spatial_gradient.