jactorch.models.vision.vgg#

Functions to build VGG models.

Classes

VGG

Functions

make_vgg(cfg_id, batch_norm, pretrained, url_id)

make_vgg_contructor(cfg_id, url_id[, batch_norm])

reset_vgg_parameters(m[, fc_std, bfc_std])

Class VGG

class VGG[source]#

Bases: Module

__init__(cfg, batch_norm=False, incl_p5=True, incl_fcs=True, num_classes=1000)[source]#

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(x)[source]#

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

static make_layers(cfg, batch_norm=False)[source]#
reset_parameters()[source]#

Functions

make_vgg(cfg_id, batch_norm, pretrained, url_id, incl_fcs=True, num_classes=1000)[source]#
make_vgg_contructor(cfg_id, url_id, batch_norm=False)[source]#
reset_vgg_parameters(m, fc_std=0.01, bfc_std=0.001)[source]#