MCPcopy Create free account

hub / github.com/HugoTini/DeepBump / functions

Functions57 in github.com/HugoTini/DeepBump

↓ 4 callersFunctionconv_1d
Performs row by row 1D convolutions of the given 2D image with the given 1D kernel.
module_normals_to_curvature.py:4
↓ 4 callersFunctionget_dependencies_path
()
__init__.py:30
↓ 2 callersFunctionget_avg
(col, img)
module_lowres_to_highres.py:68
↓ 2 callersFunctionimport_module
(module_name, global_name=None, reload=True)
__init__.py:49
↓ 2 callersFunctionnormalize
Normalize all elements of the given numpy array to [0,1]
module_normals_to_curvature.py:28
↓ 2 callersFunctionrandom_pair_shuffle
Smooth given col by averaging + pixel shuffle
module_lowres_to_highres.py:65
↓ 2 callersFunctionregister_functionality
()
__init__.py:599
↓ 1 callersFunctioncopy_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 callersFunctioncorner_mask
Generates the corner part of the pyramidal-like mask. Currently, only for square shapes.
utils_inference.py:115
↓ 1 callersFunctiondownscale_x2
Downscale image by a factor of 2
module_lowres_to_highres.py:16
↓ 1 callersFunctionfrankot_chellappa
Frankot-Chellappa depth-from-gradient algorithm.
module_normals_to_height.py:23
↓ 1 callersFunctiongaussian_kernel
Returns a 1D gaussian kernel of size 'length'.
module_normals_to_curvature.py:20
↓ 1 callersFunctiongenerate_mask
Generates a pyramidal-like mask. Used for mixing overlapping predicted tiles.
utils_inference.py:78
↓ 1 callersFunctioninstall_and_import_module
(module_name, package_name=None, global_name=None)
__init__.py:73
↓ 1 callersFunctioninstall_pip
()
__init__.py:63
↓ 1 callersFunctionnormals_to_grad
(normals_img)
module_normals_to_height.py:4
↓ 1 callersFunctionpad
(img, left, right, top, bottom)
utils_inference.py:4
↓ 1 callersFunctionpixel_shuffle
Applies smoothing to tiles edges
module_lowres_to_highres.py:51
↓ 1 callersFunctionregister
()
__init__.py:581
↓ 1 callersFunctionscaling_mask
(side_length)
utils_inference.py:133
↓ 1 callersFunctiontiles_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 callersFunctiontiles_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
Functionapply
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
Functionapply
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
Functionapply
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
Functionapply
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
Functionbl_image_to_np
Converts a Blender image to a numpy C,H,W numpy array.
utils.py:3
Methoddraw
(self, context)
__init__.py:470
Methoddraw
(self, context)
__init__.py:491
Methoddraw
(self, context)
__init__.py:510
Methoddraw
(self, context)
__init__.py:530
Methoddraw
(self, context)
__init__.py:542
Methodexecute
(self, context)
__init__.py:163
Methodexecute
(self, context)
__init__.py:241
Methodexecute
(self, context)
__init__.py:307
Methodexecute
(self, context)
__init__.py:373
Methodexecute
(self, context)
__init__.py:433
Functionnormalize
Normalize each pixel to unit vector.
utils_inference.py:186
Functionnp_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
Methodpoll
(self, context)
__init__.py:148
Methodpoll
(self, context)
__init__.py:226
Methodpoll
(self, context)
__init__.py:292
Methodpoll
(self, context)
__init__.py:358
Methodpoll
(self, context)
__init__.py:429
Methodpoll
(self, context)
__init__.py:467
Methodpoll
(self, context)
__init__.py:488
Methodpoll
(self, context)
__init__.py:507
Methodpoll
(self, context)
__init__.py:527
Functionprint_progress
(current, total)
cli.py:55
Methodprogress_print
(self, current, total)
__init__.py:154
Methodprogress_print
(self, current, total)
__init__.py:232
Methodprogress_print
(self, current, total)
__init__.py:298
Methodprogress_print
(self, current, total)
__init__.py:364
Functiontiles_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
Functiontiles_merge
Merges the list of tiles into one image. img_size is the original size, before padding.
utils_inference.py:153
Functiontiles_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
Functionunregister
()
__init__.py:611