Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/12dmodel/deep_motion_mag
/ functions
Functions
53 in github.com/12dmodel/deep_motion_mag
⨍
Functions
53
◇
Types & classes
2
↓ 14 callers
Method
run
Magnify a video in the two-frames mode. Args: checkpoint_dir: checkpoint directory. vid_dir: directory containing vid
magnet.py:235
↓ 11 callers
Function
conv2d
(input_, output_dim, ks=4, s=2, stddev=0.02, padding='SAME', name="conv2d", activation_fn=None,
ops.py:34
↓ 6 callers
Function
imread
(path, is_grayscale=True)
utils.py:76
↓ 5 callers
Method
load
(self, checkpoint_dir, loader=None)
magnet.py:154
↓ 5 callers
Function
residual_block
(x, output_dim, ks=3, s=1, name='residual_block')
ops.py:91
↓ 4 callers
Function
_bytes_feature
(value)
convert_3frames_data_to_tfrecords.py:16
↓ 4 callers
Method
_encoder
(self, image)
magnet.py:59
↓ 4 callers
Function
load_train_data
(image_path, gray_scale=True, is_testing=False)
utils.py:43
↓ 3 callers
Function
L1_loss
(in_, target)
modules.py:70
↓ 3 callers
Function
preprocess_image
(image, train_config)
preprocessor.py:5
↓ 2 callers
Method
_decoder
(self, texture_enc, shape_enc)
magnet.py:104
↓ 2 callers
Function
get_possion_noise
Add poisson noise. This function approximate posson noise upto 2nd order. Assume images were in 0-255, and converted to the range of -1 to 1.
preprocessor.py:16
↓ 2 callers
Method
image_transformer
(self, image_a, image_b, amplifi
magnet.py:123
↓ 2 callers
Function
inverse_transform
(images)
utils.py:125
↓ 2 callers
Function
mkdir
(d)
utils.py:129
↓ 1 callers
Method
_build_IIR_filtering_graphs
Assume a_0 = 1
magnet.py:289
↓ 1 callers
Method
_build_feed_model
(self)
magnet.py:175
↓ 1 callers
Method
_build_training_graph
(self, train_config)
magnet.py:515
↓ 1 callers
Function
_float_feature
(value)
convert_3frames_data_to_tfrecords.py:13
↓ 1 callers
Function
center_crop
(x, crop_h, crop_w, resize_h=64, resize_w=64)
utils.py:106
↓ 1 callers
Function
convert_dataset
(data_dir, out_name, color=False)
convert_3frames_data_to_tfrecords.py:20
↓ 1 callers
Function
expand_dims_1_to_4
Expand dimension from 1 to 4. Useful for multiplying amplification factor.
ops.py:77
↓ 1 callers
Function
imsave
(images, size, path)
utils.py:98
↓ 1 callers
Method
inference
Run Magnification on two frames. Args: frameA: path to first frame frameB: path to second frame amplifica
magnet.py:217
↓ 1 callers
Function
main
()
convert_3frames_data_to_tfrecords.py:74
↓ 1 callers
Function
main
(args)
main.py:46
↓ 1 callers
Function
merge
(images, size)
utils.py:88
↓ 1 callers
Function
preproc_gaussian_noise
(image, n)
preprocessor.py:38
↓ 1 callers
Function
preproc_poisson_noise
(image, n)
preprocessor.py:33
↓ 1 callers
Function
read_and_decode_3frames
(filename_queue, im_size=(512, 512, 1))
data_loader.py:33
↓ 1 callers
Function
res_decoder
(activation, layer_dims, out_channels, num_resblk)
modules.py:55
↓ 1 callers
Function
res_encoder
(image, layer_dims, num_resblk)
modules.py:41
↓ 1 callers
Method
run_temporal
Magnify video with a temporal filter. Args: checkpoint_dir: checkpoint directory. vid_dir: directory containing video
magnet.py:331
↓ 1 callers
Method
save
(self, checkpoint_dir, step)
magnet.py:144
↓ 1 callers
Function
save_images
(images, size, image_path)
utils.py:72
↓ 1 callers
Method
setup_for_inference
Setup model for inference. Build computation graph, initialize variables, and load checkpoint.
magnet.py:198
↓ 1 callers
Method
train
(self, train_config)
magnet.py:602
↓ 1 callers
Function
transform
(image, npx=64, is_crop=True, resize_w=64)
utils.py:116
Method
__call__
(self, image)
utils.py:24
Method
__init__
(self, sess, name, arch_config)
magnet.py:28
Method
__init__
(self, maxsize=50)
utils.py:19
Method
_loss_function
(self, a, b, train_config)
magnet.py:597
Function
batch_norm
(x, name="batch_norm")
ops.py:10
Function
deconv2d
(input_, output_dim, ks=4, s=2, stddev=0.02, name="deconv2d", activation_fn=None, weights_regular
ops.py:46
Function
get_gaussian_noise
(image)
preprocessor.py:29
Function
get_image
(image_path, image_size, is_crop=True, resize_w=64, is
utils.py:61
Function
instance_norm
(input, name="instance_norm")
ops.py:18
Function
linear
(input_, output_size, scope=None, stddev=0.02, bias_start=0.0, with_w=False)
ops.py:61
Function
lrelu
(x, leak=0.2, name="lrelu")
ops.py:57
Function
merge_images
(images, size)
utils.py:84
Function
preproc_color
(image, n)
preprocessor.py:45
Function
read_and_decode
(filename_queue, im_size=(512, 512, 1))
data_loader.py:4
Function
res_manipulator
(enc_a, enc_b, amplification_factor, layer_dims,
modules.py:8