MCPcopy Create free account

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

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

↓ 1 callersFunctionget_envolve
Input: sim: environment of the fluid pre_velocity: numpy array, [1,128,128,2] c1: numpy array, [nt,nx,nx] c2: num
smoke/dataset/evaluate_solver.py:79
↓ 1 callersMethodget_final_loss
(self, include_reg_loss=True)
smoke/phi/control/control_scene.py:18
↓ 1 callersFunctionget_intial_state
(sim,xs,ys,vxs,vys,density_write,density_set_zero_write,velocity_write,control_write)
smoke/dataset/a_gen_test_128.py:350
↓ 1 callersFunctionget_intial_state
Function: get initial state
smoke/dataset/a_gen_train.py:432
↓ 1 callersFunctionget_intial_state
(sim,xs,ys,vxs,vys,density_write,density_set_zero_write,velocity_write,control_write)
smoke/dataset/a_gen_test_64.py:375
↓ 1 callersFunctionget_knot
(bc)
smoke/phi/math/tensorflow_backend.py:294
↓ 1 callersFunctionget_loss_fn_2dconv
Gets target data and returns a function that computes guidance loss
burgers/eval_ddpm_burgers.py:108
↓ 1 callersFunctionget_nablaJ
Use explicit loss for guided inference in diffusion. J is the loss here, not Jacobian. Arguments: loss_fn: callable, calculates the l
burgers/ddpm_burgers/model_utils.py:35
↓ 1 callersFunctionget_per_vel
(xs, ys)
smoke/dataset/a_gen_test_128.py:212
↓ 1 callersFunctionget_per_vel
Function: Calculate vague velocity Input: xs: random x-position for turn ys: random y-position for turn Output: v
smoke/dataset/a_gen_train.py:256
↓ 1 callersFunctionget_per_vel
(xs, ys)
smoke/dataset/a_gen_test_64.py:226
↓ 1 callersMethodget_state
(self, index)
smoke/phi/control/control_scene.py:39
↓ 1 callersFunctionget_time
Get the string of the current local time.
smoke/ddpm/utils.py:211
↓ 1 callersFunctionget_tokenizer
()
smoke/video_diffusion_pytorch/text.py:13
↓ 1 callersFunctionget_wavelet_preprocess
( rescaler=70, mode='zero', wave_type='bior2.4', is_condition_u0=True, is_condition_uT=Tr
burgers/ddpm_burgers/data_burgers_1d.py:90
↓ 1 callersFunctiongif_control
Function: Generate velocitys or control gif saved at gif_dir Input: velocitys: numpy array, [256,128,128,2]
smoke/dataset/evaluate_solver.py:341
↓ 1 callersFunctiongif_to_tensor
(path, channels = 3, transform = T.ToTensor())
smoke/video_diffusion_pytorch/video_diffusion_pytorch.py:816
↓ 1 callersFunctiongif_to_tensor
(path, channels = 3, transform = T.ToTensor())
smoke/video_diffusion_pytorch/video_diffusion_pytorch_conv3d.py:824
↓ 1 callersFunctiongif_vel
Function: Generate velocitys or control gif saved at gif_dir Input: velocitys: numpy array, [256,128,128,2]
smoke/dataset/evaluate_solver.py:316
↓ 1 callersFunctionglobal_minmax
(arrays)
smoke/phi/viz/plot.py:226
↓ 1 callersFunctiongradient
Calculates the gradient of a scalar field from finite differences. The gradient vectors are in reverse order, lowest dimension first. :param tens
smoke/phi/math/nd.py:135
↓ 1 callersMethodgradient
(scalar_field, padding="symmetric")
smoke/phi/math/nd.py:603
↓ 1 callersMethodgradient_velocity
(self, field)
smoke/phi/flow.py:329
↓ 1 callersMethodgraphs
(self, data, library)
smoke/phi/viz/plot.py:192
↓ 1 callersFunctionhas_int_squareroot
(num)
burgers/ddpm_burgers/model_utils.py:163
↓ 1 callersFunctionhas_int_squareroot
(num)
smoke/ddpm/diffusion_2d.py:50
↓ 1 callersFunctionik_resnet
(initial_density, target_density, training=False, trainable=True, reuse=tf.AUTO_REUSE)
smoke/phi/control/iksm.py:20
↓ 1 callersFunctioninference
(dataloader, diffusion, design_fn, args, RESCALER)
smoke/inference_2d.py:459
↓ 1 callersFunctioninitialize_field_128
()
smoke/dataset/a_gen_test_128.py:206
↓ 1 callersFunctioninitialize_field_128
Function: initialize fluid field Output: sim: FluidSimulation Object
smoke/dataset/a_gen_train.py:245
↓ 1 callersFunctioninitialize_field_128
()
smoke/dataset/a_gen_test_64.py:220
↓ 1 callersFunctioninitialize_gas_exp2_128
(xs, ys)
smoke/dataset/a_gen_test_128.py:270
↓ 1 callersFunctioninitialize_gas_exp2_128
Function: Intialize density field Input: xs: x-postion list ys: y-postion list Output: array: numpy array density
smoke/dataset/a_gen_train.py:330
↓ 1 callersFunctioninitialize_gas_exp2_128
(xs, ys)
smoke/dataset/a_gen_test_64.py:285
↓ 1 callersMethodinitialize_variables
(self)
smoke/phi/tf/flow.py:91
↓ 1 callersFunctioninitialize_velocity_128
(vx, vy)
smoke/dataset/evaluate_solver.py:66
↓ 1 callersFunctioninitialize_velocity_128
(vx, vy)
smoke/dataset/a_gen_test_128.py:278
↓ 1 callersFunctioninitialize_velocity_128
Function: Initialize velocity field Input: vx, vy: float velocity-x, velocity-y Output: init_op_velocity: StaggeredGrid v
smoke/dataset/a_gen_train.py:346
↓ 1 callersFunctioninitialize_velocity_128
(vx, vy)
smoke/dataset/a_gen_test_64.py:294
↓ 1 callersFunctionis_odd
(n)
smoke/video_diffusion_pytorch/video_diffusion_pytorch.py:31
↓ 1 callersFunctionis_odd
(n)
smoke/video_diffusion_pytorch/video_diffusion_pytorch_conv3d.py:38
↓ 1 callersMethodis_open
(self, dimension, location)
smoke/phi/flow.py:405
↓ 1 callersFunctionistensor
(object)
smoke/phi/tf/util.py:90
↓ 1 callersFunctionl_n_loss
(tensor, n, batch_norm=True, reduce_batches=True)
smoke/phi/math/nd.py:62
↓ 1 callersMethodleaf_execute
(self, start_frame, end_frame, **kwargs)
smoke/phi/control/sequences.py:57
↓ 1 callersFunctionlinear_beta_schedule
(timesteps)
burgers/ddpm_burgers/model_utils.py:141
↓ 1 callersMethodlinear_iterator
(self, dataset, fieldnames, batch_size, shuffled=False, mode="dynamic", async_load=True, logf=None)
smoke/phi/data/data.py:382
↓ 1 callersFunctionload_2dconv_base_model
(model_i, args, RESCALER)
burgers/ddpm_burgers/test_util.py:212
↓ 1 callersFunctionload_2dconv_super_model
(model_i, args, RESCALER)
burgers/ddpm_burgers/test_util.py:235
↓ 1 callersFunctionload_data
(args)
smoke/ddpm/utils.py:13
↓ 1 callersFunctionload_ddpm_super_model
(args, shape, ori_shape, RESCALER)
smoke/ddpm/utils.py:61
↓ 1 callersFunctionload_model
(args, shape, ori_shape, RESCALER)
smoke/inference_2d.py:69
↓ 1 callersMethodload_model
(self, checkpoint_dir)
smoke/phi/tf/model.py:214
↓ 1 callersFunctionlog_datagen
(args, file_dir=None)
burgers/ddpm_burgers/generate_burgers.py:372
↓ 1 callersFunctionlog_exp
(args, file='log.yaml')
burgers/train_ddpm_burgers.py:203
↓ 1 callersFunctionloop_write_0423
(sim,loop_advected_density,loop_velocity,smoke_outs_128,save_sim_path,vxs,vys,intervals,xs,ys,density_write, \
smoke/dataset/a_gen_test_128.py:442
↓ 1 callersFunctionloop_write_0423
Function: Write loop
smoke/dataset/a_gen_train.py:531
↓ 1 callersFunctionloop_write_0423
(sim,loop_advected_density,loop_velocity,smoke_outs_128,save_sim_path,vxs,vys,intervals,xs,ys,density_write, \
smoke/dataset/a_gen_test_64.py:463
↓ 1 callersMethodloss_fn
(self)
smoke/ddpm/diffusion_2d.py:980
↓ 1 callersFunctionmain
(args)
burgers/ddpm_burgers/generate_burgers.py:381
↓ 1 callersFunctionmain
(args)
smoke/inference_2d.py:476
↓ 1 callersFunctionmake_data_varying_f
Arguments: amp_compensate: Gaussian in the time domain decreases average amp, so we need to compensate it t: number of t
burgers/ddpm_burgers/generate_burgers.py:207
↓ 1 callersFunctionmake_dir
Make directory using filename if the directory does not exist
burgers/ddpm_burgers/train_diffusion.py:240
↓ 1 callersMethodmatches_name
(self, name)
smoke/phi/math/base.py:13
↓ 1 callersMethodmaximum
(self, a, b)
smoke/phi/math/scipy_backend.py:119
↓ 1 callersMethodminimum
(self, a, b)
smoke/phi/math/scipy_backend.py:122
↓ 1 callersFunctionmt_solve_pressure
(divergence, fluid_mask, accuracy)
smoke/phi/solver/manta.py:21
↓ 1 callersMethodmulti_advect
(self, fields, interpolation="LINEAR", dt=1)
smoke/phi/math/nd.py:446
↓ 1 callersMethodmulti_evaluate_control
(self, pred, data, plot=False)
smoke/inference_2d.py:330
↓ 1 callersFunctionnablaJ
(x: torch.TensorType)
burgers/ddpm_burgers/model_utils.py:45
↓ 1 callersMethodname_lookup
(self, field)
smoke/phi/data/data.py:327
↓ 1 callersFunctionneighbour_blur
(tensor)
smoke/phi/control/control.py:219
↓ 1 callersMethodnew_scene
(self)
smoke/phi/model.py:100
↓ 1 callersMethodnext
(self)
smoke/phi/control/sequences.py:33
↓ 1 callersFunctionnormalize_dipole
(div_dipole)
smoke/phi/experimental.py:41
↓ 1 callersFunctionnormalize_img
(t)
smoke/video_diffusion_pytorch/video_diffusion_pytorch.py:824
↓ 1 callersFunctionnormalize_img
(t)
smoke/video_diffusion_pytorch/video_diffusion_pytorch_conv3d.py:832
↓ 1 callersFunctionnormalize_to
Multiplies the target so that its total content matches the source. :param target: a tensor :param source: a tensor or number :return: no
smoke/phi/math/nd.py:34
↓ 1 callersFunctionnum_to_groups
(num, divisor)
smoke/video_diffusion_pytorch/video_diffusion_pytorch.py:44
↓ 1 callersFunctionnum_to_groups
(num, divisor)
smoke/video_diffusion_pytorch/video_diffusion_pytorch_conv3d.py:51
↓ 1 callersMethodoptimize
(self, optim_node)
smoke/phi/tf/model.py:143
↓ 1 callersMethodp_losses
(self, x_start, t, noise = None)
burgers/ddpm_burgers/diffusion_1d.py:529
↓ 1 callersMethodp_losses
(self, state_start, t, noise = None)
smoke/ddpm/diffusion_2d.py:988
↓ 1 callersMethodp_losses
(self, x_start, t, cond = None, noise = None, **kwargs)
smoke/video_diffusion_pytorch/video_diffusion_pytorch.py:757
↓ 1 callersMethodp_losses
(self, x_start, t, cond = None, noise = None, **kwargs)
smoke/video_diffusion_pytorch/video_diffusion_pytorch_conv3d.py:765
↓ 1 callersMethodp_mean_variance
(self, x, t, x_self_cond = None, **kwargs)
burgers/ddpm_burgers/diffusion_1d.py:242
↓ 1 callersMethodp_mean_variance
(self, shape, x, t, x_self_cond = None, clip_denoised = True, design_fn = None, design_guidance = "standard",
smoke/ddpm/diffusion_2d.py:757
↓ 1 callersMethodp_mean_variance
(self, x, t, clip_denoised: bool, cond = None, cond_scale = 1.)
smoke/video_diffusion_pytorch/video_diffusion_pytorch.py:678
↓ 1 callersMethodp_mean_variance
(self, x, t, clip_denoised: bool, cond = None, cond_scale = 1.)
smoke/video_diffusion_pytorch/video_diffusion_pytorch_conv3d.py:686
↓ 1 callersMethodp_sample_loop
(self, shape, cond = None, cond_scale = 1.)
smoke/video_diffusion_pytorch/video_diffusion_pytorch.py:709
↓ 1 callersMethodp_sample_loop
(self, shape, cond = None, cond_scale = 1.)
smoke/video_diffusion_pytorch/video_diffusion_pytorch_conv3d.py:717
↓ 1 callersMethodpad_pressure
(self, pressure)
smoke/phi/flow.py:425
↓ 1 callersMethodpause
(self)
smoke/phi/model.py:316
↓ 1 callersFunctionplot_control_field_128
(c1, c2, frame, pic_dir)
smoke/dataset/evaluate_solver.py:272
↓ 1 callersFunctionplot_vector_field_128
(velocity, frame, pic_dir)
smoke/dataset/evaluate_solver.py:255
↓ 1 callersMethodpredict_noise_from_start
(self, x_t, t, x0)
smoke/ddpm/diffusion_2d.py:695
↓ 1 callersMethodpredict_start_from_noise
(self, x_t, t, noise)
smoke/video_diffusion_pytorch/video_diffusion_pytorch.py:663
↓ 1 callersMethodpredict_start_from_noise
(self, x_t, t, noise)
smoke/video_diffusion_pytorch/video_diffusion_pytorch_conv3d.py:671
↓ 1 callersMethodpredict_start_from_v
(self, x_t, t, v)
burgers/ddpm_burgers/diffusion_1d.py:190
↓ 1 callersMethodpredict_v
(self, x_start, t, noise)
burgers/ddpm_burgers/diffusion_1d.py:184
← previousnext →401–500 of 1,208, ranked by callers