Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AhmedZgaren/Save
/ functions
Functions
163 in github.com/AhmedZgaren/Save
⨍
Functions
163
◇
Types & classes
40
Method
__init__
(self, inplace: bool = False)
model/activations.py:116
Method
__init__
(self, d_model)
model/transformer.py:63
Method
__init__
(self, d_model: int, dropout: float = 0.1, max_len: int = 5000)
model/transformer.py:82
Method
__init__
(self, d_model=768,h = 8, d_ff = 2048, num_layers=1, enc_in = 256, drop = 0.1, visualize = False)
model/trcount.py:14
Method
__init__
(self, dim, kernel_size)
model/cotLayer.py:11
Method
__init__
Initializes the YOLO model. Args: model (Union[str, Path], optional): Path or name of the model to load or create. D
model/backbone.py:69
Method
__len__
(self)
utils/utils.py:132
Method
_apply
`_apply()` is a function that applies a function to all the tensors in the model that are not parameters or registered buffers
utils/tasks.py:147
Method
_load
Initializes a new model and infers the task type from the model head. Args: weights (str): model checkpoint to be lo
model/backbone.py:131
Method
_weights_init
(m)
model/transformer.py:38
Function
attempt_load_weights
Loads an ensemble of models weights=[a,b,c] or a single model weights=[a] or weights=a.
utils/tasks.py:295
Method
backward
(ctx, grad_output)
model/activations_me.py:40
Method
backward
(ctx, grad_output)
model/activations_me.py:114
Method
backward
(ctx, grad_output)
model/activations_me.py:151
Method
backward
(ctx, grad_output)
model/activations_me.py:191
Method
backward
(ctx, grad_output)
model/aggregation_zeropad.py:148
Function
create_act_layer
(name, inplace=False, **kwargs)
model/create_act.py:124
Method
forward
Forward pass of the model on a single scale. Wrapper for `_forward_once` method. Args: x (torch.Tensor): Th
utils/tasks.py:35
Method
forward
Concatenates and returns predicted bounding boxes and class probabilities.
utils/tasks.py:512
Method
forward
(self, x)
model/activations_jit.py:36
Method
forward
(self, x)
model/activations_jit.py:44
Method
forward
(self, x)
model/activations_jit.py:58
Method
forward
(self, x)
model/activations_jit.py:72
Method
forward
(self, x)
model/activations_jit.py:89
Method
forward
(ctx, x)
model/activations_me.py:35
Method
forward
(self, x)
model/activations_me.py:53
Method
forward
(ctx, x)
model/activations_me.py:74
Method
forward
(self, x)
model/activations_me.py:92
Method
forward
(ctx, x)
model/activations_me.py:109
Method
forward
(self, x)
model/activations_me.py:127
Method
forward
(ctx, x)
model/activations_me.py:146
Method
forward
(self, x)
model/activations_me.py:164
Method
forward
(ctx, x)
model/activations_me.py:186
Method
forward
(self, x)
model/activations_me.py:204
Method
forward
(ctx, input, weight, kernel_size, stride, padding, dilation)
model/aggregation_zeropad.py:114
Method
forward
(self, input: Tensor, weight: Tensor)
model/aggregation_zeropad.py:219
Method
forward
(self, x)
model/regressor.py:20
Method
forward
(self, x)
model/activations.py:25
Method
forward
(self, x)
model/activations.py:42
Method
forward
(self, x)
model/activations.py:56
Method
forward
(self, x)
model/activations.py:70
Method
forward
(self, x)
model/activations.py:84
Method
forward
(self, x)
model/activations.py:100
Method
forward
(self, x)
model/activations.py:120
Method
forward
(self, x)
model/transformer.py:46
Method
forward
(self, x)
model/transformer.py:72
Method
forward
Arguments: x: Tensor, shape ``[seq_len, batch_size, embedding_dim]``
model/transformer.py:93
Method
forward
(self, x)
model/cotLayer.py:53
Method
fuse
Fuse PyTorch Conv2d and BatchNorm2d layers.
model/backbone.py:191
Function
get_act_fn
Activation Function Factory Fetching activation fns by name with this function allows export or torch script friendly functions to be returne
model/create_act.py:90
Function
get_individual_augmentations
()
utils/augment.py:282
Function
hard_mish_me
(x, inplace: bool = False)
model/activations_me.py:196
Function
hard_sigmoid_me
(x, inplace: bool = False)
model/activations_me.py:119
Function
hard_swish_me
(x, inplace=False)
model/activations_me.py:156
Method
load
Transfers parameters with matching names and shapes from 'weights' to model.
model/backbone.py:179
Function
load_inference_source
Loads an inference source for object detection and applies necessary transformations. Args: source (str, Path, Tensor, PIL.Image
utils/utils.py:64
Function
mish_me
(x, inplace=False)
model/activations_me.py:84
Function
mosaic
Implement mosaic augmentation image_file_list: list of 4 images (only name of image, not path), [img_1.jpg, img_2.jpg, img_3.png, i
utils/augment.py:52
Function
preprocess
Prepares input image before inference. Args: im (torch.Tensor | List(np.ndarray)): (N, 3, h, w) for tensor, [(h, w, 3) x N] for list.
utils/utils.py:36
Method
reset_weights
Resets the model modules parameters to randomly initialized values, losing all training information.
model/backbone.py:166
Function
sigmoid
(x, inplace: bool = False)
model/activations.py:46
Function
swish_me
(x, inplace=False)
model/activations_me.py:45
Function
tanh
(x, inplace: bool = False)
model/activations.py:60
← previous
101–163 of 163, ranked by callers