Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/creotiv/hdrnet-pytorch
/ functions
Functions
48 in github.com/creotiv/hdrnet-pytorch
⨍
Functions
48
◇
Types & classes
11
↓ 6 callers
Method
__init__
(self, inc , outc, activation=nn.ReLU, batch_norm=False)
model.py:36
↓ 4 callers
Function
lerp_weight
Linear interpolation weight from a sample at x to xs. Returns the linear interpolation weight of a "query point" at coordinate `x` with respect to
slice.py:3
↓ 3 callers
Function
weight_z
ops/cuda/bilateral_slice.cu.cc:32
↓ 2 callers
Function
diff_abs
ops/cuda/bilateral_slice.cu.cc:22
↓ 2 callers
Function
load_image
(filename, size=None, use_crop=False)
utils.py:26
↓ 2 callers
Function
load_params
(state)
utils.py:47
↓ 2 callers
Function
resize
(img, size=512, strict=False)
utils.py:6
↓ 2 callers
Function
smoothed_lerp_weight
Smoothed version of `LerpWeight` with gradients more suitable for backprop. Let f(x, xs) = LerpWeight(x, xs) = max(1 - |x - xs|, 0)
slice.py:27
↓ 2 callers
Function
test
(ckpt, args={})
test.py:13
↓ 1 callers
Function
_bilateral_slice
Slices a bilateral grid using the a guide image. Args: grid: The bilateral grid with shape (gh, gw, gd, gc). guide: A guide image with
slice.py:52
↓ 1 callers
Method
backward
(ctx, grad_output)
ops/ops.py:25
↓ 1 callers
Function
batch_bilateral_slice
(grid, guide)
slice.py:134
↓ 1 callers
Function
crop
(img, size=512)
utils.py:17
↓ 1 callers
Function
d_diff_abs
ops/cuda/bilateral_slice.cu.cc:27
↓ 1 callers
Function
d_weight_z
ops/cuda/bilateral_slice.cu.cc:37
↓ 1 callers
Function
get_latest_ckpt
(path)
utils.py:35
↓ 1 callers
Method
list_files
(self, in_path)
dataset.py:47
↓ 1 callers
Function
psnr
(target, prediction)
metrics.py:5
↓ 1 callers
Function
save_params
(state, params)
utils.py:43
↓ 1 callers
Function
smoothed_abs
A smoothed version of |x| with improved numerical stability.
slice.py:22
↓ 1 callers
Function
train
(params=None)
train.py:24
Function
BilateralSliceApplyGradKernelLauncher
ops/cuda/bilateral_slice.cu.cc:357
Function
BilateralSliceApplyGridGradKernel
ops/cuda/bilateral_slice.cu.cc:115
Function
BilateralSliceApplyGuideGradKernel
ops/cuda/bilateral_slice.cu.cc:201
Function
BilateralSliceApplyInputGradKernel
ops/cuda/bilateral_slice.cu.cc:273
Function
BilateralSliceApplyKernel
ops/cuda/bilateral_slice.cu.cc:47
Function
BilateralSliceApplyKernelLauncher
// -- KERNEL LAUNCHERS ---------------------------------------------------------
ops/cuda/bilateral_slice.cu.cc:337
Method
__getitem__
(self, idx)
dataset.py:35
Method
__init__
(self, image_path, params=None, suffix='', aug=False)
dataset.py:9
Method
__init__
(self, inc , outc, kernel_size=3, padding=1, stride=1, use_bias=True, activation=nn.ReLU, batch_norm=False)
model.py:16
Method
__init__
(self)
model.py:57
Method
__init__
(self)
model.py:86
Method
__init__
(self, params=None)
model.py:125
Method
__init__
(self, nin=4, nout=3, params=None)
model.py:136
Method
__init__
(self, params)
model.py:222
Method
__init__
(self)
ops/ops.py:42
Method
__len__
(self)
dataset.py:32
Method
forward
(self, x,y)
model.py:12
Method
forward
(self, x)
model.py:27
Method
forward
(self, x)
model.py:48
Method
forward
(self, bilateral_grid, guidemap)
model.py:60
Method
forward
Affine: r = a11*r + a12*g + a13*b + a14 g = a21*r + a22*g + a23*b + a24 ...
model.py:89
Method
forward
(self, x)
model.py:131
Method
forward
(self, lowres_input)
model.py:182
Method
forward
(self, lowres, fullres)
model.py:230
Method
forward
(ctx, grid, guide, image)
ops/ops.py:13
Method
forward
(self, grid, guide, image)
ops/ops.py:45
Function
trace_bilateral_slice
(grid, guide)
slice.py:140