Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vermeille/Torchelie
/ functions
Functions
1,230 in github.com/Vermeille/Torchelie
⨍
Functions
1,230
◇
Types & classes
261
↓ 2 callers
Method
up
(self, in_ch, out_ch, ks)
torchelie/models/hourglass.py:60
↓ 2 callers
Function
validate
(val_loader, model, criterion, args, epoch, viz)
wip/imagenet.py:386
↓ 2 callers
Method
vectorize
(self, samples)
torchelie/hyper.py:168
↓ 2 callers
Function
vgg11
(num_classes: int)
torchelie/models/vgg.py:66
↓ 2 callers
Function
vgg19
(num_classes: int)
torchelie/models/vgg.py:87
↓ 2 callers
Function
weight_lambda
Apply :code:`function()` to :code:`getattr(module, name)` on each forward pass. Allows to implement things such as weight normalization,
torchelie/nn/utils.py:79
↓ 2 callers
Function
weight_scale
Multiply :code:`getattr(module, name)` by :code:`scale` on forward pass as a hook. Used to implement equalized LR for StyleGAN
torchelie/nn/utils.py:134
↓ 2 callers
Method
wide
(self, divisor: int = 2)
torchelie/nn/resblock.py:434
↓ 2 callers
Method
zero_grad
(self)
torchelie/optim.py:352
↓ 1 callers
Function
D_fun
(batch)
torchelie/recipes/cut.py:275
↓ 1 callers
Method
D_step
(self, src: torch.Tensor, dst: torch.Tensor)
torchelie/recipes/pix2pix.py:191
↓ 1 callers
Function
G_fun
(batch)
torchelie/recipes/cut.py:231
↓ 1 callers
Method
G_step
(self, src: torch.Tensor, dst: torch.Tensor)
torchelie/recipes/pix2pix.py:188
↓ 1 callers
Function
MConvBNReLU
A packed block with Masked Conv-BN-ReLU Args: in_ch (int): input channels out_ch (int): output channels ks (int): ke
torchelie/nn/blocks.py:57
↓ 1 callers
Function
MConvNormReLU
A packed block with Masked Conv-Norm-ReLU Args: in_ch (int): input channels out_ch (int): output channels ks (int):
torchelie/nn/blocks.py:26
↓ 1 callers
Function
MixupClassification
A Classification recipe with a default froward training / testing pass using cross entropy and mixup, and extended with AdaBelief and Red
torchelie/recipes/classification.py:290
↓ 1 callers
Function
StyleGAN2Discriminator
Build the discriminator for StyleGAN2 Args: input_sz (int): image size max_ch (int): maximum number of chann
torchelie/models/stylegan2.py:196
↓ 1 callers
Function
StyleGAN2Recipe
StyleGAN2 Recipe distributed with DistributedDataParallel Args: G (nn.Module): a Generator. D (nn.Module): a Discriminator.
torchelie/recipes/stylegan2.py:117
↓ 1 callers
Method
__getstate__
(self)
torchelie/datasets/__init__.py:160
↓ 1 callers
Method
__init__
(self, ch: int)
wip/adain.py:21
↓ 1 callers
Method
__init__
(self, fun, *args, tmp_file=None, **kwargs)
torchelie/utils.py:623
↓ 1 callers
Method
__init__
(self, low, high)
torchelie/hyper.py:72
↓ 1 callers
Method
__init__
(self, G: nn.Module, D: nn.Module, l1_gain: float)
torchelie/recipes/pix2pix.py:215
↓ 1 callers
Method
__init__
(self, B: int, init: Optional[torch.Tensor] = None)
torchelie/transforms/differentiable.py:284
↓ 1 callers
Method
__init__
(self, dim, base=10000)
torchelie/nn/llm.py:12
↓ 1 callers
Method
__init__
(self, channels: int, cond_channels: int)
torchelie/nn/adain.py:88
↓ 1 callers
Method
__init__
(self, in_chan, out_chan, ks, center, stride=1, bias=(1, 1))
torchelie/nn/maskedconv.py:23
↓ 1 callers
Method
__init__
(self, d_model, num_heads)
torchelie/nn/transformer.py:99
↓ 1 callers
Method
__init__
(self, mode: str, size: Optional[List[int]] = None, scale_f
torchelie/nn/interpolate.py:11
↓ 1 callers
Method
__init__
(self, in_channels: int, hidden_channels: int, inner: nn.Module)
torchelie/nn/encdec.py:66
↓ 1 callers
Method
__init__
(self, in_channels: int, num_classes: int)
torchelie/models/classifier.py:160
↓ 1 callers
Method
__init__
(self, in_ch: int, out_ch: int, ks: int, s
torchelie/models/efficient.py:10
↓ 1 callers
Method
__init__
(self, num_classes)
torchelie/models/alexnet.py:52
↓ 1 callers
Method
__init__
(self, base_model: nn.Module, n_scales=3)
torchelie/models/pix2pixhd.py:170
↓ 1 callers
Method
__init__
(self, dim: int, num_classes: int, fixed: bool = False,
torchelie/loss/face_rec.py:67
↓ 1 callers
Method
__setstate__
(self, state)
torchelie/datasets/__init__.py:163
↓ 1 callers
Method
_add_noise
(self)
torchelie/models/pix2pix.py:39
↓ 1 callers
Method
_cache_key
(self, device)
torchelie/nn/llm.py:19
↓ 1 callers
Method
_check_integrity
(self, path)
torchelie/datasets/debug.py:98
↓ 1 callers
Method
_check_integrity
(self, path)
torchelie/datasets/debug.py:136
↓ 1 callers
Method
_check_integrity
(self, path)
torchelie/datasets/pix2pix.py:153
↓ 1 callers
Method
_concat
(self, x: torch.Tensor)
torchelie/datasets/pix2pix.py:107
↓ 1 callers
Method
_get_batch_fmtstr
(self, num_batches)
wip/imagenet.py:478
↓ 1 callers
Method
_get_image_size
(img)
torchelie/transforms/__init__.py:149
↓ 1 callers
Method
_make_block
(self, block_type: str, in_ch: int, out_ch: int, stride: int)
torchelie/models/resnet.py:128
↓ 1 callers
Function
_mblur_kernel
()
torchelie/transforms/differentiable.py:116
↓ 1 callers
Function
_rec
(m)
scripts/stylevgg.py:48
↓ 1 callers
Function
_rfft2d_freqs
(h, w)
torchelie/data_learning.py:8
↓ 1 callers
Method
_split
(self, x)
torchelie/datasets/pix2pix.py:111
↓ 1 callers
Method
_str
(self, x)
torchelie/hyper.py:298
↓ 1 callers
Method
add_callback
(self, cb)
torchelie/recipes/recipebase.py:57
↓ 1 callers
Method
add_colors
(self)
torchelie/transforms/randaugment.py:68
↓ 1 callers
Method
add_epilogue
(self, cb)
torchelie/recipes/recipebase.py:60
↓ 1 callers
Method
add_geometric
(self)
torchelie/transforms/randaugment.py:81
↓ 1 callers
Method
add_greyscale
(self)
torchelie/transforms/randaugment.py:140
↓ 1 callers
Method
add_jpeg
(self)
torchelie/transforms/randaugment.py:152
↓ 1 callers
Method
add_minibatch_stddev
(self)
torchelie/models/snres_discr.py:81
↓ 1 callers
Method
add_perspective
(self)
torchelie/transforms/randaugment.py:168
↓ 1 callers
Method
add_prologue
(self, cb)
torchelie/recipes/recipebase.py:54
↓ 1 callers
Method
add_scale
(self)
torchelie/transforms/randaugment.py:132
↓ 1 callers
Method
add_subsampling
(self)
torchelie/transforms/randaugment.py:143
↓ 1 callers
Method
add_upsampling
Add a bilinear upsampling layer before the conv that doubles the spatial size
torchelie/nn/conv.py:158
↓ 1 callers
Function
adjust_learning_rate
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
wip/imagenet.py:484
↓ 1 callers
Method
apply
(self, x: torch.Tensor)
torchelie/transforms/differentiable.py:263
↓ 1 callers
Method
apply
Applies transforms on x Args: x (torch.Tensor): input Returns: transformed x
torchelie/transforms/differentiable.py:328
↓ 1 callers
Method
apply
(module, hook_name: str, name: str, function)
torchelie/nn/utils.py:51
↓ 1 callers
Method
apply_rotary_pos_emb
( self, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, cos: torch.
torchelie/nn/llm.py:57
↓ 1 callers
Function
as_multiclass_shape
Manipulate an array of logit predictions so that binary prediction is not a special case anymore. Outputs `preds` as (Batch size, Num classes
torchelie/utils.py:547
↓ 1 callers
Function
attention56
Build a attention56 network Args: num_classes (int): number of classes in_ch (int): number of channels in the images
torchelie/models/attention.py:132
↓ 1 callers
Method
barlow
(self, src, proj)
torchelie/recipes/unpaired.py:33
↓ 1 callers
Method
barlow
(self, f1, f2)
torchelie/recipes/cut.py:88
↓ 1 callers
Function
big_patch34
Patch Discriminator from pix2pix
torchelie/recipes/unpaired.py:131
↓ 1 callers
Method
brightness
Change brightness by a factor alpha Args: alpha (float): scale factor
torchelie/transforms/differentiable.py:296
↓ 1 callers
Function
build_transforms
(train_im_size, test_im_size)
examples/imagenet.py:34
↓ 1 callers
Function
build_transforms
()
examples/cifar.py:35
↓ 1 callers
Method
cache
(x, y, id)
torchelie/hyper.py:203
↓ 1 callers
Function
celeba
(path, train: bool, tfm=None)
torchelie/recipes/unpaired.py:112
↓ 1 callers
Function
celeba
(path, train: bool, tfm=None)
torchelie/recipes/cut.py:156
↓ 1 callers
Method
clear_cache
(id)
torchelie/hyper.py:214
↓ 1 callers
Method
cls_to_val
(self, cls: torch.Tensor)
torchelie/models/pixcnn.py:48
↓ 1 callers
Method
compute_fid
(self, feat_real: np.ndarray, feat_fake: np.ndarray,
torchelie/callbacks/callbacks.py:1183
↓ 1 callers
Method
compute_ids
(self, feat_real: np.ndarray, feat_fake: np.ndarray)
torchelie/callbacks/callbacks.py:1173
↓ 1 callers
Method
compute_image
(self, x)
torchelie/callbacks/callbacks.py:676
↓ 1 callers
Method
compute_indices
(inputs_orig, codebook)
torchelie/nn/functional/vq.py:8
↓ 1 callers
Method
compute_kid
(self, feat_real: np.ndarray, feat_fake: np.ndarray,
torchelie/callbacks/callbacks.py:1198
↓ 1 callers
Method
compute_ppl
(self, model, z)
torchelie/recipes/stylegan2.py:66
↓ 1 callers
Method
condition
(self, s)
wip/adain.py:144
↓ 1 callers
Method
condition
(self, z: torch.Tensor)
torchelie/nn/resblock.py:82
↓ 1 callers
Method
condition
(self, z: torch.Tensor)
torchelie/nn/resblock.py:299
↓ 1 callers
Method
condition
(self, z: torch.Tensor)
torchelie/nn/resblock.py:381
↓ 1 callers
Method
condition
(self, z: torch.Tensor)
torchelie/nn/layers.py:57
↓ 1 callers
Method
condition
Conditions the layer before the forward pass if z will not be present when calling forward Args: z (2D tensor, o
torchelie/nn/adain.py:60
↓ 1 callers
Method
condition
Conditions the layer before the forward pass if z will not be present when calling forward Args: z (2D tensor, o
torchelie/nn/adain.py:126
↓ 1 callers
Method
condition
Conditions the layer before the forward pass if z will not be present when calling forward Args: z (2D tensor, o
torchelie/nn/adain.py:139
↓ 1 callers
Method
condition
(self, z)
torchelie/nn/batchnorm.py:145
↓ 1 callers
Method
contrast
Scale contrast by factor alpha Args: alpha (float): scale factor
torchelie/transforms/differentiable.py:312
↓ 1 callers
Method
detach_save
(self)
torchelie/callbacks/callbacks.py:730
↓ 1 callers
Function
dist_setup
initialize a NCCL process group with default port / address. For internal use.
torchelie/utils.py:607
↓ 1 callers
Method
do
(self, model, fake_dst, src, real_dst, objective_norm: float)
torchelie/recipes/cut.py:29
↓ 1 callers
Function
drop_path
(x, drop_prob=0.0, training=False)
torchelie/nn/functional/__init__.py:89
← previous
next →
201–300 of 1,230, ranked by callers