MCPcopy Create free account

hub / github.com/AI4Science-WestlakeU/wdno / functions

Functions1,208 in github.com/AI4Science-WestlakeU/wdno

↓ 4 callersMethod_has_any
(self, type)
smoke/phi/flow.py:440
↓ 4 callersFunctionbert_embed
( token_ids, return_cls_repr = False, eps = 1e-8, pad_id = 0. )
smoke/video_diffusion_pytorch/text.py:49
↓ 4 callersFunctionburgers_numeric_solve_free
Simulates trajectories based on u0 and f. Trajectory i is based on u0[i, :] and f[i, :, :] Args: u0: (N,s), N is the number of s
burgers/ddpm_burgers/generate_burgers.py:104
↓ 4 callersMethodcreate_velocity_mask
(self, fluid_mask, spatial_dimensions=None, staggered=True)
smoke/phi/flow.py:450
↓ 4 callersMethoddevice
(self)
smoke/ddpm/diffusion_2d.py:1184
↓ 4 callersFunctiondisplay_name
(python_name)
smoke/phi/model.py:493
↓ 4 callersMethodempty_figure
(self)
smoke/phi/viz/dash_gui.py:575
↓ 4 callersFunctionget_bound
(sim)
smoke/dataset/evaluate_solver.py:237
↓ 4 callersFunctionget_burgers_preprocess
( rescaler=10, is_super_model_train = False, N_downsample = 0, is_super_model_test = False,
burgers/ddpm_burgers/data_burgers_1d.py:169
↓ 4 callersMethodget_field
(self, fieldname)
smoke/phi/model.py:140
↓ 4 callersFunctionget_indices
(simpath, fieldname=None, mode="intersect")
smoke/phi/fluidformat.py:78
↓ 4 callersFunctionget_save_name
()
smoke/dataset/a_gen_test_128.py:402
↓ 4 callersFunctionget_save_name
Function: get save name
smoke/dataset/a_gen_train.py:486
↓ 4 callersFunctionget_save_name
()
smoke/dataset/a_gen_test_64.py:423
↓ 4 callersMethodinterpolate
(self, x1, x2, t = None, lam = 0.5)
burgers/ddpm_burgers/diffusion_1d.py:500
↓ 4 callersMethodinterpolate
(self, x1, x2, t = None, lam = 0.5)
smoke/ddpm/diffusion_2d.py:951
↓ 4 callersMethodinvalidate
(self)
smoke/phi/model.py:130
↓ 4 callersMethodlookup
(self, array)
smoke/phi/control/iksm.py:219
↓ 4 callersFunctionmse_deviation
(u1, u2, report_all=False)
burgers/ddpm_burgers/test_util.py:23
↓ 4 callersMethodpartition
(self, n, start_frame_index)
smoke/phi/control/sequences.py:63
↓ 4 callersMethodprogress
(self)
smoke/phi/data/data.py:424
↓ 4 callersMethodslice_count
(self, shape)
smoke/phi/viz/plot.py:165
↓ 4 callersFunctiontensor_to_coef
input: [N, more than 2*(1+3), padded, padded]
burgers/wave_trans.py:30
↓ 4 callersFunctiontokenize
(texts, add_special_tokens = True)
smoke/video_diffusion_pytorch/text.py:30
↓ 4 callersFunctionupsample_coef
upsample the wavelet coefficients to the target shape (old) w_sub: [N, layer, nt(maybe padded), nx(maybe padded)] (old) w: [N, layer, sha
burgers/ddpm_burgers/wavelet_utils.py:5
↓ 4 callersMethodwith_custom_gradient
(self, function, inputs, gradient, input_index=0, output_index=None, name_base="custom_gradient_func")
smoke/phi/math/base.py:80
↓ 3 callersMethod_update_scene_properties
(self)
smoke/phi/model.py:224
↓ 3 callersFunctioncycle
(dl)
burgers/ddpm_burgers/model_utils.py:22
↓ 3 callersFunctiondownsample2x
(tensor, interpolation="LINEAR")
smoke/phi/math/nd.py:269
↓ 3 callersFunctionexists
(val)
smoke/video_diffusion_pytorch/text.py:4
↓ 3 callersMethodfloor
(self, x)
smoke/phi/math/base.py:68
↓ 3 callersFunctionget_2d_ddpm
(shape, ori_shape, args, RESCALER, is_super_model, upsample_t=0, upsample_x=0)
burgers/train_ddpm_burgers.py:128
↓ 3 callersMethodget_batch
(self, channels=None, subrange=None)
smoke/phi/data/data.py:430
↓ 3 callersMethodget_default
(self, raise_error=True)
smoke/phi/flow.py:21
↓ 3 callersFunctionget_fieldnames
(simpath)
smoke/phi/fluidformat.py:69
↓ 3 callersMethodget_index_count
(self)
smoke/phi/data/data.py:146
↓ 3 callersMethodget_indices
(self, batch_index)
smoke/phi/data/data.py:621
↓ 3 callersFunctionget_wavelet_super_preprocess
( rescaler=70, is_super_model=False, N_downsample=0, mode='zero', wave_type='bior2.4',
burgers/ddpm_burgers/data_burgers_1d.py:20
↓ 3 callersFunctiongif_density
Function: Generate densitys or zero_densitys gif saved at gif_dir Input: densitys: numpy array [256,128,128]
smoke/dataset/evaluate_solver.py:287
↓ 3 callersFunctionguidance_fn
low, init: rescaled init_u: not rescaled
smoke/inference_2d.py:30
↓ 3 callersFunctionik
(initial_density, target_density, trainable=False)
smoke/phi/control/iksm.py:9
↓ 3 callersFunctionlaplace
(tensor, weights=None, padding="symmetric")
smoke/phi/math/nd.py:196
↓ 3 callersFunctionload_and_sort_images2
(save_pic_path)
smoke/dataset/evaluate_solver.py:246
↓ 3 callersFunctionload_tensorflow
Internal function to register the TensorFlow backend. This function is called automatically once a TFSimulation is instantiated. :return: True if
smoke/phi/math/__init__.py:8
↓ 3 callersMethodlookup
(self, field, indices)
smoke/phi/data/data.py:143
↓ 3 callersFunctionmerge_save_dict
(fname, new_res)
burgers/ddpm_burgers/result_io.py:57
↓ 3 callersMethodmodel_predictions
(self, x, t, x_self_cond = None, clip_x_start = False, rederive_pred_noise = False, **kwargs)
burgers/ddpm_burgers/diffusion_1d.py:205
↓ 3 callersMethodmodel_predictions
(self, shape, x, t, x_self_cond = None, clip_x_start = False, rederive_pred_noise = False, design_fn = None, d
smoke/ddpm/diffusion_2d.py:723
↓ 3 callersMethodnormalize
(self)
smoke/phi/math/nd.py:390
↓ 3 callersMethodpad_active
(self, active_mask)
smoke/phi/flow.py:415
↓ 3 callersMethodpredict_noise_from_start
(self, x_t, t, x0)
burgers/ddpm_burgers/diffusion_1d.py:178
↓ 3 callersMethodput_scene
(self, scene, indices=None, dataset=None, logf=None)
smoke/phi/data/data.py:347
↓ 3 callersMethodpy_func
(self, func, inputs, Tout, shape_out, stateful=True, name=None, grad=None)
smoke/phi/math/base.py:40
↓ 3 callersFunctionread_sim_frame
(simpath, fieldnames, index, set_missing_to_none=True)
smoke/phi/fluidformat.py:27
↓ 3 callersMethodremove
(self)
smoke/phi/fluidformat.py:199
↓ 3 callersMethodrun_sm
(self, n, initial_density, target_density)
smoke/phi/control/iksm.py:112
↓ 3 callersMethodrun_step
(self, framerate=None, allow_recording=True)
smoke/phi/model.py:284
↓ 3 callersMethodsample
(self, batch_size = 16, N_upsample=0, design_fn = None, design_guidance="standard", init=None, init_u=None, co
smoke/ddpm/diffusion_2d.py:936
↓ 3 callersMethodselect_batch
(self, batch)
smoke/phi/viz/plot.py:38
↓ 3 callersMethodselect_depth
(self, depth)
smoke/phi/viz/plot.py:46
↓ 3 callersFunctionsparse_indices
(dimensions)
smoke/phi/solver/sparse.py:132
↓ 3 callersFunctionsparse_values
Builds a sparse matrix such that when applied to a flattened pressure field, it calculates the laplace of that field, taking into account obstacles a
smoke/phi/solver/sparse.py:165
↓ 3 callersMethodstack
(self, values, axis=0)
smoke/phi/math/scipy_backend.py:30
↓ 3 callersFunctiontensor_spatial_rank
(tensor)
smoke/phi/math/tensorflow_backend.py:186
↓ 3 callersMethodto_float
(self, x)
smoke/phi/math/base.py:98
↓ 3 callersFunctionupsample_coef
upsample the wavelet coefficients to the target shape w_sub: [N, nt, layer, nx, nx] tyoe: 'time' or 'space' w: [N, 2*nt, layer, nx, n
smoke/ddpm/wave_utils.py:1
↓ 3 callersFunctionwrite_vel_density
(loop_velocity,loop_advected_density,loop_density_no_set,density_write,density_set_zero_write,velocity_write,f
smoke/dataset/a_gen_test_128.py:415
↓ 3 callersFunctionwrite_vel_density
Function: write velocity density field for turns
smoke/dataset/a_gen_train.py:502
↓ 3 callersFunctionwrite_vel_density
(loop_velocity,loop_advected_density,loop_density_no_set,density_write,density_set_zero_write,velocity_write,f
smoke/dataset/a_gen_test_64.py:436
↓ 2 callersFunctionDownsample
(dim, dim_out = None)
smoke/ddpm/diffusion_2d.py:81
↓ 2 callersFunctionLaplaceMatrixKernelLauncher
smoke/phi/solver/cuda/src/laplace_op.cu.cc:124
↓ 2 callersFunctionUpsample
(dim, dim_out = None)
smoke/ddpm/diffusion_2d.py:75
↓ 2 callersMethod__init__
(self, index, type=TYPE_UNKNOWN)
smoke/phi/control/sequences.py:29
↓ 2 callersMethod__init__
(self, sim, true_densities, trainable_n, info, force_inference, ik_trainable=False)
smoke/phi/control/iksm.py:84
↓ 2 callersMethod__init__
(self, name)
smoke/phi/math/base.py:4
↓ 2 callersMethod_decorate_iterator
(self, iterator, fieldnames, async_load, logf)
smoke/phi/data/data.py:390
↓ 2 callersMethod_init_properties
(self)
smoke/phi/fluidformat.py:112
↓ 2 callersMethod_update_velocity_mask
(self)
smoke/phi/tf/flow.py:148
↓ 2 callersMethod_wrap
(self, field, element_type)
smoke/phi/flow.py:232
↓ 2 callersMethodabs
(self)
smoke/phi/math/nd.py:379
↓ 2 callersMethodaffects
(self, datasource)
smoke/phi/data/augment.py:13
↓ 2 callersFunctionalphabet_soup
(shape, count, margin=1, total_content=100, fontsize=10)
smoke/phi/control/voxelutil.py:27
↓ 2 callersMethodat_faces
(self, face_dimension_xyz)
smoke/phi/math/nd.py:344
↓ 2 callersMethodbenchmark
(self, sequence_count)
smoke/phi/model.py:342
↓ 2 callersFunctionbenchmark_error
(cudaSolver, numpySolver, tests, dimension, testruns=50, accuracy=1e-5)
smoke/phi/solver/cuda/benchmarks/benchmark_utils.py:130
↓ 2 callersMethodbuoyancy
(self, density, sampling="default")
smoke/phi/flow.py:285
↓ 2 callersMethodcalculate_activation_statistics
(self, samples)
smoke/ddpm/diffusion_2d.py:1233
↓ 2 callersFunctioncoef_to_tensor
return: repeat Yh[i] 2**i times if pad: [Yl.shape[0], Yl.shape[1], 1+3*J, 64, 64] else: [Yl.shape[0], Yl.shape[1], 1+3*J, Yh[0].shape[-2
burgers/wave_trans.py:43
↓ 2 callersFunctionconjugate_gradient
Solve the linear system of equations Ax=k using the conjugate gradient (CG) algorithm. The implementation is based on https://nvlpubs.nist.gov/nistpu
smoke/phi/solver/base.py:56
↓ 2 callersMethodcreate_figure
(self, figindex, view, batch, depth, component)
smoke/phi/viz/dash_gui.py:546
↓ 2 callersMethodcreate_figure
(self, data, same_scale_data=None, batch=None, depth=None, library='matplotlib')
smoke/phi/viz/plot.py:79
↓ 2 callersFunctioncreate_level_scaling
(level_control, i)
smoke/phi/control/control.py:255
↓ 2 callersFunctioncreate_mask
(divergence_tensor)
smoke/phi/solver/base.py:5
↓ 2 callersFunctioncreate_sliders
(controls)
smoke/phi/viz/dash_gui.py:581
↓ 2 callersMethodcurl
(self)
smoke/phi/math/nd.py:499
↓ 2 callersFunctionddpm_guidance_loss
Arguments: u_target: (batch_size, Nt, Nx) u: (batch_size, Nt, Nx) f: (batch_size, Nt - 1, Nx)
burgers/ddpm_burgers/test_util.py:100
↓ 2 callersMethoddebug
(self, message)
smoke/phi/model.py:263
↓ 2 callersFunctiondiffuse_2dconv
Samples from diffusion model and evaluates results. Args: ddpm: Diffusion model args: Configuration arguments cu
burgers/eval_ddpm_burgers.py:152
↓ 2 callersMethoddimrange
(self, tensor)
smoke/phi/math/base.py:101
↓ 2 callersMethoddivergence
(self)
smoke/phi/math/nd.py:367
← previousnext →101–200 of 1,208, ranked by callers