Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HugoTini/DeepBump
/ functions
Functions
57 in github.com/HugoTini/DeepBump
⨍
Functions
57
◇
Types & classes
11
↓ 4 callers
Function
conv_1d
Performs row by row 1D convolutions of the given 2D image with the given 1D kernel.
module_normals_to_curvature.py:4
↓ 4 callers
Function
get_dependencies_path
()
__init__.py:30
↓ 2 callers
Function
get_avg
(col, img)
module_lowres_to_highres.py:68
↓ 2 callers
Function
import_module
(module_name, global_name=None, reload=True)
__init__.py:49
↓ 2 callers
Function
normalize
Normalize all elements of the given numpy array to [0,1]
module_normals_to_curvature.py:28
↓ 2 callers
Function
random_pair_shuffle
Smooth given col by averaging + pixel shuffle
module_lowres_to_highres.py:65
↓ 2 callers
Function
register_functionality
()
__init__.py:599
↓ 1 callers
Function
copy_flip
Concat 4 flipped copies of input gradients (makes them wrap). Output is twice bigger in both dimensions.
module_normals_to_height.py:8
↓ 1 callers
Function
corner_mask
Generates the corner part of the pyramidal-like mask. Currently, only for square shapes.
utils_inference.py:115
↓ 1 callers
Function
downscale_x2
Downscale image by a factor of 2
module_lowres_to_highres.py:16
↓ 1 callers
Function
frankot_chellappa
Frankot-Chellappa depth-from-gradient algorithm.
module_normals_to_height.py:23
↓ 1 callers
Function
gaussian_kernel
Returns a 1D gaussian kernel of size 'length'.
module_normals_to_curvature.py:20
↓ 1 callers
Function
generate_mask
Generates a pyramidal-like mask. Used for mixing overlapping predicted tiles.
utils_inference.py:78
↓ 1 callers
Function
install_and_import_module
(module_name, package_name=None, global_name=None)
__init__.py:73
↓ 1 callers
Function
install_pip
()
__init__.py:63
↓ 1 callers
Function
normals_to_grad
(normals_img)
module_normals_to_height.py:4
↓ 1 callers
Function
pad
(img, left, right, top, bottom)
utils_inference.py:4
↓ 1 callers
Function
pixel_shuffle
Applies smoothing to tiles edges
module_lowres_to_highres.py:51
↓ 1 callers
Function
register
()
__init__.py:581
↓ 1 callers
Function
scaling_mask
(side_length)
utils_inference.py:133
↓ 1 callers
Function
tiles_merge
Merges the list of tiles given an upscale factor and without overlap. img_size is the original size, before upscale & padding.
module_lowres_to_highres.py:90
↓ 1 callers
Function
tiles_split
Returns list of tiles from the given image and the padding used to fit the tiles in it. Input image must have dimension C,H,W.
module_lowres_to_highres.py:26
Function
apply
Upscale image. 'color_img' must be a numpy array in C,H,W format (with C as RGB). 'factor'' must be 'x2' or 'x4'.
module_lowres_to_highres.py:123
Function
apply
Computes a height map from the given normal map. 'normals_img' must be a numpy array in C,H,W format (with C as RGB). 'seamless' is a bool that s
module_normals_to_height.py:62
Function
apply
Computes a curvature map from the given normal map. 'normals_img' must be a numpy array in C,H,W format (with C as RGB). 'blur_radius' must be on
module_normals_to_curvature.py:34
Function
apply
Computes a normal map from the given color map. 'color_img' must be a numpy array in C,H,W format (with C as RGB). 'overlap' must be one of 'SMAL
module_color_to_normals.py:13
Function
bl_image_to_np
Converts a Blender image to a numpy C,H,W numpy array.
utils.py:3
Method
draw
(self, context)
__init__.py:470
Method
draw
(self, context)
__init__.py:491
Method
draw
(self, context)
__init__.py:510
Method
draw
(self, context)
__init__.py:530
Method
draw
(self, context)
__init__.py:542
Method
execute
(self, context)
__init__.py:163
Method
execute
(self, context)
__init__.py:241
Method
execute
(self, context)
__init__.py:307
Method
execute
(self, context)
__init__.py:373
Method
execute
(self, context)
__init__.py:433
Function
normalize
Normalize each pixel to unit vector.
utils_inference.py:186
Function
np_to_bl_pixels
Converts a C,H,W numpy image array to an array of pixel suited for blender internal images pixels.
utils.py:22
Method
poll
(self, context)
__init__.py:148
Method
poll
(self, context)
__init__.py:226
Method
poll
(self, context)
__init__.py:292
Method
poll
(self, context)
__init__.py:358
Method
poll
(self, context)
__init__.py:429
Method
poll
(self, context)
__init__.py:467
Method
poll
(self, context)
__init__.py:488
Method
poll
(self, context)
__init__.py:507
Method
poll
(self, context)
__init__.py:527
Function
print_progress
(current, total)
cli.py:55
Method
progress_print
(self, current, total)
__init__.py:154
Method
progress_print
(self, current, total)
__init__.py:232
Method
progress_print
(self, current, total)
__init__.py:298
Method
progress_print
(self, current, total)
__init__.py:364
Function
tiles_infer
Infer each tile with the given model. progress_callback will be called with arguments : current tile idx and total tiles amount (used to show pro
utils_inference.py:60
Function
tiles_merge
Merges the list of tiles into one image. img_size is the original size, before padding.
utils_inference.py:153
Function
tiles_split
Returns list of tiles from the given image and the padding used to fit the tiles in it. Input image must have dimension C,H,W.
utils_inference.py:8
Function
unregister
()
__init__.py:611