INC NET#

Classes#

class models.slca_utils.inc_net.BaseNet(feature_extractor_type, pretrained)[source]#

Bases: Module

copy()[source]#
extract_vector(x)[source]#
property feature_dim#
forward(x)[source]#
freeze()[source]#
generate_fc(in_dim, out_dim)[source]#
update_fc(nb_classes)[source]#
class models.slca_utils.inc_net.FinetuneIncrementalNet(feature_extractor_type, pretrained, fc_with_ln=False)[source]#

Bases: BaseNet

forward(x, bcb_no_grad=False, fc_only=False)[source]#
generate_fc(in_dim, out_dim)[source]#
save_old_fc()[source]#
update_fc(nb_classes, freeze_old=True)[source]#

Functions#

models.slca_utils.inc_net.get_convnet(feature_extractor_type, pretrained=False)[source]#