MCPcopy Create free account

hub / github.com/Lasagne/Recipes / functions

Functions96 in github.com/Lasagne/Recipes

↓ 41 callersFunctionbn_conv
(input_layer, **kwargs)
modelzoo/inception_v3.py:35
↓ 12 callersFunctionresidual_block
(l, increase_dim=False, projection=True, first=False)
papers/preactivation_and_wide_resnet/models.py:28
↓ 9 callersFunctionbuild_inception_module
(name, input_layer, nfilters)
modelzoo/googlenet.py:22
↓ 8 callersFunctionbuild_residual_block
Creates two-branch residual block Parameters: ---------- incoming_layer : instance of Lasagne layer Parent layer ratio_n_fil
modelzoo/resnet50.py:81
↓ 6 callersFunctionresidual_bottleneck_block
(l, increase_dim=False, first=False)
papers/preactivation_and_wide_resnet/models.py:107
↓ 5 callersFunctionbuild_simple_block
Creates stacked Lasagne layers ConvLayer -> BN -> (ReLu) Parameters: ---------- incoming_layer : instance of Lasagne layer Parent
modelzoo/resnet50.py:20
↓ 5 callersFunctionresidual_block
(l, increase_dim=False, projection=False)
papers/deep_residual_learning/Deep_Residual_Learning_CIFAR-10.py:96
↓ 4 callersFunctioninceptionC
(input_layer, nfilt)
modelzoo/inception_v3.py:72
↓ 3 callersFunctionbatch_generator
(data, target, BATCH_SIZE, shuffle=False)
examples/UNet/generators.py:5
↓ 3 callersFunctionget_image_array
(X, index, shp=(28,28), channels=1)
examples/variational_autoencoder/variational_autoencoder.py:56
↓ 3 callersFunctioninceptionA
(input_layer, nfilt)
modelzoo/inception_v3.py:41
↓ 3 callersFunctioniterate_minibatches
(inputs, targets, batchsize, shuffle=False, augment=False)
papers/deep_residual_learning/Deep_Residual_Learning_CIFAR-10.py:157
↓ 3 callersFunctioniterate_minibatches
(inputs, batchsize, shuffle=False)
examples/variational_autoencoder/variational_autoencoder.py:76
↓ 3 callersFunctionload_data
(folder)
examples/UNet/massachusetts_road_dataset_utils.py:75
↓ 2 callersFunctionaffine_relu_conv
(network, channels, filter_size, dropout, name_prefix)
papers/densenet/densenet_fast.py:131
↓ 2 callersFunctionbn_relu_conv
(network, channels, filter_size, dropout, name_prefix)
papers/densenet/densenet.py:122
↓ 2 callersFunctionbuild_loss
(deterministic)
examples/variational_autoencoder/variational_autoencoder.py:205
↓ 2 callersFunctiongen_data
This function produces a semi-redundant batch of training samples from the location 'p' in the provided string (data). For instance, assuming
examples/lstm_text_generation.py:81
↓ 2 callersFunctionget_network_str
Returns a string representation of the entire network contained under this layer. Parameters ---------- layer : Layer or lis
utils/network_repr.py:6
↓ 2 callersFunctioninceptionE
(input_layer, nfilt, pool_mode)
modelzoo/inception_v3.py:108
↓ 2 callersFunctionload_mnist_images
(filename)
examples/variational_autoencoder/variational_autoencoder.py:40
↓ 2 callersFunctionprepare_dataset
()
examples/UNet/massachusetts_road_dataset_utils.py:92
↓ 2 callersFunctionrandom_crop_generator
yields a random crop of size crop_size
examples/UNet/generators.py:51
↓ 2 callersFunctionthreaded_generator
(generator, num_cached=10)
examples/UNet/generators.py:68
↓ 2 callersFunctionunpickle
(file)
papers/deep_residual_learning/Deep_Residual_Learning_CIFAR-10.py:31
↓ 1 callersFunction_get_adjacency_lists
Returns adjacency lists for each layer (node) in network. Warning: Assumes repr is unique to a layer instance, else this entire approach WILL
utils/network_repr.py:88
↓ 1 callersFunction_get_table_str
Pretty print a table provided as a list of lists.
utils/network_repr.py:112
↓ 1 callersFunction_insert_header
Insert the header (first two lines) in the representation.
utils/network_repr.py:67
↓ 1 callersFunctionbatch_iterator_train_crop_flip
Data augmentation batch iterator for feeding images into CNN. Pads each image with 4 pixels on every side. Randomly crops image with orig
papers/preactivation_and_wide_resnet/utils.py:79
↓ 1 callersFunctionbatch_iterator_valid
Batch iterator for fine tuning network, no augmentation.
papers/preactivation_and_wide_resnet/utils.py:127
↓ 1 callersFunctionbuild_UNet
(n_input_channels=1, BATCH_SIZE=None, num_output_classes=2, pad='same', nonlinearity=lasagne.nonlinearities.el
modelzoo/Unet.py:13
↓ 1 callersFunctionbuild_cnn
(input_var=None, n=5)
papers/deep_residual_learning/Deep_Residual_Learning_CIFAR-10.py:93
↓ 1 callersFunctionbuild_model
()
modelzoo/caffe_reference.py:13
↓ 1 callersFunctionbuild_vae
(inputvar, L=2, binary=True, imgshape=(28,28), channels=1, z_dim=2, n_hid=1024)
examples/variational_autoencoder/variational_autoencoder.py:115
↓ 1 callersFunctioncenter_crop_generator
yields center crop of size output_size (may be 1d or 2d) from data and seg
examples/UNet/generators.py:35
↓ 1 callersFunctiondense_block
(network, num_layers, growth_rate, dropout, name_prefix)
papers/densenet/densenet.py:101
↓ 1 callersFunctiondense_block
(network, num_layers, growth_rate, dropout, name_prefix)
papers/densenet/densenet_fast.py:106
↓ 1 callersFunctiondownload
(filename, source='http://yann.lecun.com/exdb/mnist/')
examples/variational_autoencoder/variational_autoencoder.py:35
↓ 1 callersFunctiondownload_dataset
Downloads and extracts the dataset, if needed.
papers/densenet/cifar10.py:15
↓ 1 callersFunctiondownload_dataset
(all_tasks, num_workers=4)
examples/UNet/massachusetts_road_dataset_utils.py:65
↓ 1 callersFunctionexample1
Sequential network, no branches or cycles
utils/network_repr.py:122
↓ 1 callersFunctionexample2
Two branches
utils/network_repr.py:134
↓ 1 callersFunctiongenerate_in_background
Runs a generator in a background thread, caching up to `num_cached` items.
papers/densenet/train_test.py:58
↓ 1 callersFunctionget_image_pair
(X, Xpr, channels=1, idx=-1)
examples/variational_autoencoder/variational_autoencoder.py:63
↓ 1 callersFunctioninceptionB
(input_layer, nfilt)
modelzoo/inception_v3.py:59
↓ 1 callersFunctioninceptionD
(input_layer, nfilt)
modelzoo/inception_v3.py:93
↓ 1 callersFunctionload_caffe
Loads the parameters for the caffe reference model. Also checks to make sure the two models produce equivalent results. The ouput model i
modelzoo/caffe_reference.py:133
↓ 1 callersFunctionload_data
()
papers/deep_residual_learning/Deep_Residual_Learning_CIFAR-10.py:38
↓ 1 callersFunctionload_dataset
()
examples/variational_autoencoder/variational_autoencoder.py:29
↓ 1 callersFunctionload_pickle_data_cv
()
papers/preactivation_and_wide_resnet/utils.py:18
↓ 1 callersFunctionload_pickle_data_test
()
papers/preactivation_and_wide_resnet/utils.py:64
↓ 1 callersFunctionlog_likelihood
(tgt, mu, ls)
examples/variational_autoencoder/variational_autoencoder.py:188
↓ 1 callersFunctionmain
()
utils/network_repr.py:155
↓ 1 callersFunctionmain
(n=5, num_epochs=82, model=None)
papers/deep_residual_learning/Deep_Residual_Learning_CIFAR-10.py:184
↓ 1 callersFunctionmain
()
papers/densenet/train_test.py:223
↓ 1 callersFunctionmain
(num_epochs=NUM_EPOCHS)
examples/lstm_text_generation.py:112
↓ 1 callersFunctionmain
(L=2, z_dim=2, n_hid=1024, num_epochs=300, binary=True)
examples/variational_autoencoder/variational_autoencoder.py:192
↓ 1 callersFunctionmain
()
examples/UNet/massachusetts_road_segm.py:39
↓ 1 callersFunctionopts_parser
()
papers/densenet/train_test.py:16
↓ 1 callersFunctionplot_some_results
(pred_fn, test_generator, n_images=10)
examples/UNet/massachusetts_road_segm.py:18
↓ 1 callersFunctionprep_folders
()
examples/UNet/massachusetts_road_dataset_utils.py:11
↓ 1 callersFunctionprep_urls
()
examples/UNet/massachusetts_road_dataset_utils.py:35
↓ 1 callersFunctionrgb2caffe
Converts an RGB image to caffe format and downscales it as needed by C3D Parameters ---------- im numpy array an RGB image
modelzoo/c3d.py:131
↓ 1 callersFunctiontrain_test
(depth, growth_rate, dropout, augment, validate, epochs, eta, save_weights, save_errors, batchs
papers/densenet/train_test.py:85
↓ 1 callersFunctiontransition
(network, dropout, name_prefix)
papers/densenet/densenet.py:112
↓ 1 callersFunctiontransition
(network, dropout, name_prefix)
papers/densenet/densenet_fast.py:119
↓ 1 callersFunctiontry_it_out
This function uses the user-provided string "generation_phrase" and current state of the RNN generate text. The function works in thr
examples/lstm_text_generation.py:169
FunctionResNet_BottleNeck_FullPreActivation
Adapted from https://github.com/Lasagne/Recipes/tree/master/papers/deep_residual_learning. Tweaked to be consistent with 'Identity Mappings i
papers/preactivation_and_wide_resnet/models.py:95
FunctionResNet_FullPreActivation
Adapted from https://github.com/Lasagne/Recipes/tree/master/papers/deep_residual_learning. Tweaked to be consistent with 'Identity Mappings i
papers/preactivation_and_wide_resnet/models.py:20
FunctionResNet_FullPre_Wide
Adapted from https://github.com/Lasagne/Recipes/tree/master/papers/deep_residual_learning. Tweaked to be consistent with 'Identity Mappings
papers/preactivation_and_wide_resnet/models.py:185
Method__init__
(self, mu, logsigma, rng=None, **kwargs)
examples/variational_autoencoder/variational_autoencoder.py:93
Functionaugment_minibatches
Randomly augments images by horizontal flipping with a probability of `flip` and random translation of up to `trans` pixels in both direction
papers/densenet/cifar10.py:91
Functionbatch_generator_old
just a simple batch iterator, no cropping, no rotation, no anything
examples/UNet/generators.py:15
Functionbuild_densenet
Creates a DenseNet model in Lasagne. Parameters ---------- input_shape : tuple The shape of the input layer, as ``(batchsize
papers/densenet/densenet.py:27
Functionbuild_densenet
Creates a DenseNet model in Lasagne. Parameters ---------- input_shape : tuple The shape of the input layer, as ``(batchsize
papers/densenet/densenet_fast.py:30
Functionbuild_model
()
modelzoo/resnet50.py:152
Functionbuild_model
Builds C3D model Returns ------- dict A dictionary containing the network layers, where the output layer is at key 'prob'
modelzoo/c3d.py:23
Functionbuild_model
()
modelzoo/vgg16.py:18
Functionbuild_model
()
modelzoo/cifar10_nin.py:13
Functionbuild_model
()
modelzoo/vgg_cnn_s.py:20
Functionbuild_model
()
modelzoo/vgg19.py:18
Functionbuild_model
()
modelzoo/googlenet.py:51
Functionbuild_network
()
modelzoo/inception_v3.py:129
Functionconvert_back
Converts a Caffe format image back to the standard format, so that it can be plotted. Parameters ---------- raw_im numpy array
modelzoo/c3d.py:160
Methodget_output_for
(self, inputs, deterministic=False, **kwargs)
examples/variational_autoencoder/variational_autoencoder.py:100
Methodget_output_shape_for
(self, input_shapes)
examples/variational_autoencoder/variational_autoencoder.py:97
Functionget_snips
Converts a list of images to a 5d tensor that serves as input to C3D Parameters ---------- images: 4d numpy array or list of 3d numpy
modelzoo/c3d.py:90
Functioniterate_minibatches
Generates one epoch of batches of inputs and targets, optionally shuffled.
papers/densenet/cifar10.py:75
Functionload_dataset
(path)
papers/densenet/cifar10.py:41
Functionpreprocess
(im)
modelzoo/inception_v3.py:22
Functionproducer
()
papers/densenet/train_test.py:67
Functionproducer
()
examples/UNet/generators.py:76
Functionprogress
Returns a generator over `items`, printing the number and percentage of items processed and the estimated remaining processing time before yi
papers/densenet/progress.py:16
Methodsample
(self, shape)
papers/densenet/densenet.py:142
Functionset_weights
Sets the parameters of the model using the weights stored in model_file Parameters ---------- net: a Lasagne layer model_file: s
modelzoo/c3d.py:66
Functionurlretrieve_star
(args)
examples/UNet/massachusetts_road_dataset_utils.py:66