MCPcopy Create free account

hub / github.com/Vermeille/Torchelie / types & classes

Types & classes261 in github.com/Vermeille/Torchelie

↓ 32 callersClassCondSeq
An extension to torch's Sequential that allows conditioning either as a second forward argument or `condition()`
torchelie/nn/condseq.py:5
↓ 14 callersClassMBConv
torchelie/models/efficient.py:8
↓ 13 callersClassParameterizedImg
A convenient wrapper around `PixelImage` and `SpectralImage` and `CorrelateColors` to make a learnable image. Args: *shape (int)
torchelie/data_learning.py:178
↓ 12 callersClassResidualDiscriminator
torchelie/models/snres_discr.py:9
↓ 10 callersClassRecipe
Basic recipe that iterates mutiple epochs over a dataset. That loop is instrumented through several configurable callbacks. Callbacks can han
torchelie/recipes/recipebase.py:207
↓ 9 callersClassAverageMeter
Computes and stores the average and current value
wip/imagenet.py:430
↓ 9 callersClassConvBlock
A packed block with Conv-BatchNorm-ReLU and various operations to alter it. Args: in_channels (int): input channels out_chan
torchelie/nn/conv.py:47
↓ 8 callersClassClassificationHead
A one layer classification head, turning activations / features into class log probabilities. It initially contains an avgpool-flatten-l
torchelie/models/classifier.py:10
↓ 7 callersClassResBlk
torchelie/models/pixcnn.py:63
↓ 7 callersClassStupidDataset
tests/test_datasets.py:4
↓ 6 callersClassResNet
torchelie/models/resnet.py:112
↓ 6 callersClassUnlabeledImages
Serve all the images contained in a directory and subdirectories without any labels and structure constraint. Args: root (str):
torchelie/datasets/pix2pix.py:12
↓ 6 callersClassVQ
Quantization layer from *Neural Discrete Representation Learning* Args: embedding_dim (int): number of features along which to quant
torchelie/nn/vq.py:10
↓ 5 callersClassAdaBelief
r"""Implements AdaBelief algorithm. AdaBelief from `AdaBelief Optimizer: Adapting Stepsizes by the Belief in Observed Gradients <https://arxi
torchelie/optim.py:109
↓ 5 callersClassInterpolateBilinear2d
A wrapper around :func:`pytorch.nn.functional.interpolate` with bilinear mode.
torchelie/nn/interpolate.py:43
↓ 5 callersClassPatchDiscriminator
torchelie/models/patchgan.py:8
↓ 5 callersClassRunningAvg
Average by keeping the whole sum and number of elements of the data logged. Useful when the metrics come per batch and an accurate number for
torchelie/callbacks/avg.py:9
↓ 4 callersClassAutoGAN
Generator discovered in AutoGAN: Neural Architecture Search for Generative Adversarial Networks. Args: arch (list): architecture
torchelie/models/autogan.py:12
↓ 4 callersClassBinomialFilter2d
torchelie/transforms/differentiable.py:123
↓ 4 callersClassLookahead
Implements Lookahead from `Lookahead Optimizer: k steps forward, 1 step back` (Zhang et al, 2019) Args: base_optimizer (Optimize
torchelie/optim.py:316
↓ 4 callersClassMlpMixer
torchelie/models/mlpmixer.py:56
↓ 4 callersClassMultiBranch
Transform an image with multiple transforms Args: transforms (list of transforms): the parallel set of transforms
torchelie/transforms/__init__.py:99
↓ 4 callersClassRAdamW
r"""Implements RAdamW algorithm. RAdam from `On the Variance of the Adaptive Learning Rate and Beyond <https://arxiv.org/abs/1908.03265v1>`_
torchelie/optim.py:204
↓ 4 callersClassSEBlock
A Squeeze-And-Excite block Args: in_ch (int): input channels reduction (int): channels reduction factor for the hidden numbe
torchelie/nn/resblock.py:12
↓ 4 callersClassVGG
Construct a VGG-like model. The architecture is composed of either the number of channels or 'M' for a maxpool operation. This creates a
torchelie/models/vgg.py:10
↓ 3 callersClassAttentionBlock
torchelie/models/attention.py:60
↓ 3 callersClassAutoGANGenBlock
A block of the generator discovered by AutoGAN. Args: in_ch (int): number of input channels out_ch (int): number of output c
torchelie/nn/blocks.py:100
↓ 3 callersClassCachedDataset
Wrap a dataset. Lazily caches *in RAM* elements returned by the underlying dataset. Args: ds (Dataset): A dataset transf
torchelie/datasets/__init__.py:383
↓ 3 callersClassConvNeXt
torchelie/models/convnext.py:35
↓ 3 callersClassDeepDreamOptim
r"""Optimizer used by Deep Dream. It rescales the gradient by the average of the absolute values of the gradient. :math:`\theta_i := \theta_i
torchelie/optim.py:7
↓ 3 callersClassFakeImg
tests/test_recipes.py:25
↓ 3 callersClassImageNetInputNorm
Normalize images channels as torchvision models expects, in a differentiable way
torchelie/nn/imagenetinputnorm.py:5
↓ 3 callersClassMultiScaleDiscriminator
torchelie/models/pix2pixhd.py:169
↓ 3 callersClassNeuralStyleLoss
Style Transfer loss by Leon Gatys https://arxiv.org/abs/1508.06576 set the style and content before performing a forward pass.
torchelie/loss/neuralstyleloss.py:15
↓ 3 callersClassPerceptualNet
Make a VGG16 with appropriately named layers that records intermediate activations. Args: layers (list of str): the names of the
torchelie/models/perceptualnet.py:9
↓ 3 callersClassPix2PixGenerator
UNet generator from Pix2Pix. Dropout layers have been substitued with Noise injections from StyleGAN2. Args: arch (List[int]): t
torchelie/models/pix2pix.py:10
↓ 3 callersClassPix2PixHDGlobalGenerator
Residual generator used in `Pix2PixHD <https://arxiv.org/abs/1711.11585>`_ . :code:`arch` is a list of strings representing blocks.
torchelie/models/pix2pixhd.py:11
↓ 3 callersClassPixelImage
A learnable image parameterized by its pixel values Args: shape (tuple of int): a tuple like (channels, height, width) sd (f
torchelie/data_learning.py:29
↓ 3 callersClassSpectralImage
A learnable image parameterized by its Fourier representation. See https://distill.pub/2018/differentiable-parameterizations/ Implement
torchelie/data_learning.py:66
↓ 3 callersClassWindowAvg
Average a window containing the `k` previous logged values Args: k (int): the window's length
torchelie/callbacks/avg.py:40
↓ 2 callersClassAdaIN2d
Adaptive InstanceNormalization from `*Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization* (Huang et al, 2017) <ht
torchelie/nn/adain.py:8
↓ 2 callersClassAdaptPad
Pad an input image so that it reaches size `size` Args: sz ((int, int)): target size padding_mode (str): one of the modes of
torchelie/transforms/__init__.py:62
↓ 2 callersClassAlexNet
torchelie/models/alexnet.py:11
↓ 2 callersClassAlgorithm
Define a customizable sequence of code blocks.
torchelie/recipes/algorithm.py:6
↓ 2 callersClassCorrelateColors
Takes an learnable image and applies the inverse color decorrelation from ImageNet (ie, it correlates the color like ImageNet to ease optimiz
torchelie/data_learning.py:130
↓ 2 callersClassDataset
wip/adain.py:94
↓ 2 callersClassDeepDream
Deep Dream recipe First instantiate the recipe then call `recipe(n_iter, img)` Args: model (nn.Module): the trained model to us
torchelie/recipes/deepdream.py:29
↓ 2 callersClassDeepDreamLoss
The Deep Dream loss Args: model (nn.Module): a pretrained network on which to compute the activations dream_laye
torchelie/loss/deepdreamloss.py:8
↓ 2 callersClassExponentialAvg
r""" Keep an exponentially decaying average of the values according to :math:`y := \beta y + (1 - \beta) x` Args: beta (float):
torchelie/callbacks/avg.py:69
↓ 2 callersClassFeatureVis
Feature viz First instantiate the recipe then call `recipe(n_iter, img)` Args: model (nn.Module): the trained model to use
torchelie/recipes/feature_vis.py:21
↓ 2 callersClassHourglass
Hourglass model from Deep Image Prior.
torchelie/models/hourglass.py:8
↓ 2 callersClassLinearReLU
torchelie/models/stylegan2.py:14
↓ 2 callersClassMaskedConv2d
A masked 2D convolution for PixelCNN Args: in_chan (int): number of input channels out_chan (int): number of output channels
torchelie/nn/maskedconv.py:8
↓ 2 callersClassMixUpDataset
Linearly mixes two samples and labels from a dataset according to the MixUp algorithm https://arxiv.org/abs/1905.02249 Args:
torchelie/datasets/__init__.py:167
↓ 2 callersClassModulatedConv
torchelie/nn/layers.py:35
↓ 2 callersClassNeuralStyle
Neural Style Recipe First instantiate the recipe then call `recipe(n_iter, img)` Args: device (device): where to run the comput
torchelie/recipes/neural_style.py:18
↓ 2 callersClassNoLim
torchelie/recipes/gan.py:49
↓ 2 callersClassNoise
Add gaussian noise to the input, with a per channel or global learnable std. Args: ch (int): number of input channels for a differen
torchelie/nn/noise.py:6
↓ 2 callersClassPixelCNN
A PixelCNN model with 6 blocks Args: hid (int): the number of hidden channels in the blocks sz ((int, int)): the size of the
torchelie/models/pixcnn.py:147
↓ 2 callersClassPixelPredictor
torchelie/models/pixcnn.py:52
↓ 2 callersClassProgressMeter
wip/imagenet.py:458
↓ 2 callersClassResNetInput
torchelie/models/resnet.py:16
↓ 2 callersClassRotate90
wip/adain.py:126
↓ 2 callersClassSampledParams
torchelie/hyper.py:235
↓ 2 callersClassSpadeResBlock
A Spade ResBlock from `Semantic Image Synthesis with Spatially-Adaptive Normalization` https://arxiv.org/abs/1903.07291
torchelie/nn/blocks.py:74
↓ 2 callersClassSubsample
Randomly subsample images. Args: p (float): the transform is applied with probability p max_ratio (int): maximum subscaling
torchelie/transforms/augments.py:163
↓ 2 callersClassTrueOrFakeLabelDataset
examples/conditional.py:33
↓ 2 callersClassUNet
U-Net from `U-Net: Convolutional Networks for Biomedical Image Segmentation <https://arxiv.org/abs/1505.04597>`_. This net has architectural
torchelie/models/unet.py:11
↓ 2 callersClassUniformSampler
Uniform sampler. Args: low (float): lower bound high (float): higher bound
torchelie/hyper.py:39
↓ 2 callersClassZFNet
torchelie/models/alexnet.py:50
↓ 1 callersClassADATF
torchelie/recipes/stylegan2.py:17
↓ 1 callersClassAdaIN
wip/adain.py:16
↓ 1 callersClassAddSign
r"""AddSign optimizer from Neural Optimiser search with Reinforcment learning (Bello et al, 2017) :math:`\theta_i := \theta_i - \text{lr}(1+\
torchelie/optim.py:54
↓ 1 callersClassAttenNorm2d
From https://arxiv.org/abs/1908.01259
torchelie/nn/batchnorm.py:204
↓ 1 callersClassAttention56Bone
Attention56 bone Args: in_ch (int): number of channels in the images
torchelie/models/attention.py:102
↓ 1 callersClassCallbacksRunner
torchelie/recipes/recipebase.py:6
↓ 1 callersClassCanny
Run Canny edge detector over an image. Requires OpenCV to be installed Args: thresh_low (int): lower threshold (default: 100)
torchelie/transforms/augments.py:253
↓ 1 callersClassCatedLists
torchelie/datasets/concat.py:31
↓ 1 callersClassCatedSamples
torchelie/datasets/concat.py:10
↓ 1 callersClassChannelMlpBlock
torchelie/models/mlpmixer.py:25
↓ 1 callersClassColoredColumns
A dataset of precedurally generated images of columns randomly colorized. Args: *size (int): size of images transform (trans
torchelie/datasets/debug.py:14
↓ 1 callersClassColoredRows
A dataset of precedurally generated images of rows randomly colorized. Args: *size (int): size of images transform (transfor
torchelie/datasets/debug.py:39
↓ 1 callersClassContinuousCEWithLogits
Cross Entropy loss accepting continuous target values See :func:`torchelie.loss.continuous_cross_entropy` for details.
torchelie/loss/__init__.py:36
↓ 1 callersClassConvNeXtBlock
torchelie/models/convnext.py:20
↓ 1 callersClassCosineDecay
Allow to pre-specify learning rate and momentum changes Args: optimizer (torch.optim.Optimizer): the optimizer to schedule. Currentl
torchelie/lr_scheduler.py:95
↓ 1 callersClassCurriculumScheduler
Allow to pre-specify learning rate and momentum changes Args: optimizer (torch.optim.Optimizer): the optimizer to schedule. Currentl
torchelie/lr_scheduler.py:10
↓ 1 callersClassCutout
Applies a random Cutout filter erasing at most :code:`max_size*100`% of the picture. Args: max_size (float): the maximum ratio t
torchelie/transforms/augments.py:73
↓ 1 callersClassDataset
tests/test_tensorboard_callback.py:16
↓ 1 callersClassDebug
An pass-through layer that prints some debug info during forward pass. It prints its name, the input's shape, mean of channels means, mean,
torchelie/nn/debug.py:7
↓ 1 callersClassDetachedModule
Wrap a module to eval model, can't be turned back to training mode, and make it invisible to recursive calls on `nn.Module`s Args:
torchelie/utils.py:443
↓ 1 callersClassFakeData
tests/test_recipes.py:15
↓ 1 callersClassFiLM2d
Feature-wise Linear Modulation from https://distill.pub/2018/feature-wise-transformations/ The difference with AdaIN is that FiLM does no
torchelie/nn/adain.py:72
↓ 1 callersClassFocalLoss
The focal loss https://arxiv.org/abs/1708.02002 See :func:`torchelie.loss.focal_loss` for details.
torchelie/loss/focal.py:6
↓ 1 callersClassFrozenModule
Wrap a module to eval model, can't be turned back to training mode Args: m (nn.Module): a module
torchelie/utils.py:423
↓ 1 callersClassGaussianSelector
torchelie/hyper.py:179
↓ 1 callersClassGradientPenalty
torchelie/recipes/unpaired.py:225
↓ 1 callersClassGradientPenalty
torchelie/recipes/cut.py:251
↓ 1 callersClassGradientPenalty
torchelie/recipes/stylegan2.py:95
↓ 1 callersClassGradientPenalty
torchelie/recipes/pix2pix.py:94
↓ 1 callersClassGradientPenaltyM
torchelie/recipes/cut.py:22
next →1–100 of 261, ranked by callers