Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TimSeizinger/Bokehlicious
/ functions
Functions
80 in github.com/TimSeizinger/Bokehlicious
⨍
Functions
80
◇
Types & classes
25
↓ 13 callers
Method
__init__
(self, dim, kernel_size, stride, padding)
method/nn_util.py:70
↓ 5 callers
Function
bokehlicious_config_builder
( in_chans = 3, im_range = 1., positional_enc = True, positional_dfe = True,
method/config.py:26
↓ 4 callers
Method
__init__
Modified block from NAFNet with optional CoordConv on th first convolution. Args: channels: Number of input channels
method/blocks.py:154
↓ 3 callers
Function
append_av
(av_dict, key, value)
evaluate.py:17
↓ 3 callers
Function
bokehlicious_size_builder
(size: str)
method/config.py:1
↓ 3 callers
Function
build_input_dict
(maps: dict, aperture_embedding: float, target_name: str, device='cuda')
dataset/util.py:80
↓ 3 callers
Function
calculate_aperture_embedding
(tgt_av: float, max_av: float = 2.0)
dataset/util.py:47
↓ 3 callers
Function
crop_to_divisible
(img: Image, divisor: int)
dataset/util.py:93
↓ 3 callers
Function
generate_maps
(source: Image, aperture_embedding, target: Image = None)
dataset/util.py:50
↓ 3 callers
Function
get_base_parser
()
util/parser.py:4
↓ 2 callers
Function
add_network_args
(parser: ArgumentParser)
util/parser.py:10
↓ 2 callers
Method
generate_1d_decay
generate 1d decay mask, the result is l*l
method/nn_util.py:268
↓ 1 callers
Function
add_img_args
(parser: ArgumentParser)
util/parser.py:14
↓ 1 callers
Function
center_crop
(img:Image, new_width, new_height)
dataset/util.py:97
↓ 1 callers
Function
downsample
(img: Image, max_dim: int, interpolation)
dataset/util.py:112
↓ 1 callers
Method
forward_features
(self, x, pos_map=None, bokeh_strength=None)
method/model.py:235
↓ 1 callers
Function
get_activation
Get the activation function from the activation type. :param activation_type: Activation type :return: Activation function
method/util.py:9
↓ 1 callers
Function
get_cnn_attention
(attention_type: Attention_Mechanism = None)
method/util.py:33
↓ 1 callers
Function
get_eval_parser
()
util/parser.py:26
↓ 1 callers
Function
get_map
(w: int, h: int, bokeh_strength: float)
dataset/util.py:90
↓ 1 callers
Function
get_ntire_parser
()
util/parser.py:33
↓ 1 callers
Function
get_pos_map
(w: int, h: int)
dataset/util.py:64
↓ 1 callers
Function
get_predict_parser
()
util/parser.py:20
↓ 1 callers
Function
get_resolution
(height, width, longest_side)
dataset/util.py:121
↓ 1 callers
Function
load_image
Loads an image and prepares it for input to the model :param img_path: path to the image :param target_av: target aperture value between
dataset/util.py:17
↓ 1 callers
Function
preprocess_batch
(batch)
evaluate.py:23
↓ 1 callers
Method
reset_parameters
(self)
method/nn_util.py:150
↓ 1 callers
Function
unsqueeeze_batch
(batch)
submit_ntire.py:33
Method
__getitem__
(self, index: int)
dataset/loader.py:70
Method
__getitem__
(self, index: int)
dataset/loader.py:130
Method
__init__
(self, data_path: Union[str, Path], mode: Mode, binary_bokeh: bool = False,
dataset/loader.py:19
Method
__init__
(self, data_path: Union[str, Path], mode: Mode, device: str = 'cuda')
dataset/loader.py:106
Method
__init__
(self, embed_dim, embed_dim_next, depth, num_heads, heads_range, init_value, ffn_dim=96, laye
method/blocks.py:31
Method
__init__
(self, embed_dim, depth, num_heads, init_value: float, heads_range: float, f
method/blocks.py:88
Method
__init__
(self, embed_dim: int, num_heads: int, ffn_dim: int, drop_path=0., layerscale=False, norm_lay
method/blocks.py:125
Method
__init__
( self, embed_dim, ffn_dim, activation_fn=F.gelu,
method/blocks.py:249
Method
__init__
(self)
method/nn_util.py:13
Method
__init__
(self)
method/nn_util.py:20
Method
__init__
(self,)
method/nn_util.py:27
Method
__init__
(self)
method/nn_util.py:34
Method
__init__
(self, embed_dim, embed_dim_next)
method/nn_util.py:41
Method
__init__
(self, in_channels, out_channels, kernel_size, padding='same', bias=True)
method/nn_util.py:54
Method
__init__
:param num_channel: Number of channels in the input tensor :param apply_att_weights: Should attention weights be applied in the forw
method/nn_util.py:87
Method
__init__
:param num_channel: Number of channels in the input tensor :param apply_att_weights: Should attention weights be applied in the forw
method/nn_util.py:111
Method
__init__
(self, embed_dim, num_heads, value_factor=1)
method/nn_util.py:133
Method
__init__
(self, channels, eps=1e-6)
method/nn_util.py:238
Method
__init__
recurrent_chunk_size: (clh clw) num_chunks: (nch ncw) clh * clw == cl nch * ncw == nc default: clh==clw, clh
method/nn_util.py:251
Method
__init__
(self, embed_dim=96, norm_layer=None)
method/nn_util.py:329
Method
__init__
(self, embed_dim=96)
method/nn_util.py:348
Method
__init__
(self, # General Args in_chans=3, img_range=1., dynamic_conv_k=4,
method/model.py:14
Method
__len__
(self)
dataset/loader.py:62
Method
__len__
(self)
dataset/loader.py:127
Method
_init_weights
(self, m)
method/model.py:208
Method
backward
(ctx, grad_output)
method/nn_util.py:223
Method
check_image_size
(self, x)
method/model.py:228
Method
forward
(self, x, x_size, pos_map=None, att_range_factor=None, **kwargs)
method/blocks.py:72
Method
forward
(self, x, att_range_factor=None)
method/blocks.py:108
Method
forward
(self, x: torch.Tensor, attention_rel_pos=None)
method/blocks.py:141
Method
forward
(self, source: Tensor, pos_map: Tensor = None)
method/blocks.py:220
Method
forward
x: (b h w c)
method/blocks.py:276
Method
forward
(self, x=None, *args, **kwargs)
method/nn_util.py:16
Method
forward
(self, x: Tensor, y: Tensor)
method/nn_util.py:23
Method
forward
(self, x: Tensor, skip: Tensor)
method/nn_util.py:30
Method
forward
(self, x: Tensor, weights: Tensor)
method/nn_util.py:37
Method
forward
(self, x, x_size)
method/nn_util.py:47
Method
forward
(self, x)
method/nn_util.py:63
Method
forward
x: (b h w c)
method/nn_util.py:74
Method
forward
(self, x: Tensor)
method/nn_util.py:105
Method
forward
(self, x: Tensor, att_weights: Tensor = None)
method/nn_util.py:127
Method
forward
(self, x: torch.Tensor, rel_pos)
method/nn_util.py:157
Method
forward
(self, x)
method/nn_util.py:205
Method
forward
(ctx, x, weight, bias, eps)
method/nn_util.py:212
Method
forward
(self, x)
method/nn_util.py:245
Method
forward
(self, slen: Tuple[int], range_factor: Tensor)
method/nn_util.py:316
Method
forward
(self, x)
method/nn_util.py:333
Method
forward
(self, x, x_size)
method/nn_util.py:352
Method
forward
(self, source: Tensor, bokeh_strength: Tensor = None, pos_map: Tensor = None, bokeh_strength_m
method/model.py:252
Method
no_weight_decay
(self)
method/model.py:221
Method
no_weight_decay_keywords
(self)
method/model.py:225
Method
reset_parameters
(self)
method/blocks.py:270