torchreid/engine/engine.py
def two_stepped_transfer_learning(self, epoch, fixbase_epoch, open_layers, model=None):
        """Two-stepped transfer learning.

        The idea is to freeze base layers for a certain number of epochs
        and then open all layers for training.

        Reference: https://arxiv.org/abs/1611.05244
        """
        model = self.model if model is None else model
        if model is None:
            return

        if (epoch + 1) <= fixbase_epoch and open_layers is not None:
            print('* Only train {} (epoch: {}/{})'.format(open_layers, epoch + 1, fixbase_epoch))
            open_specified_layers(model, open_layers)
        else:
            open_all_layers(model)
Two-stepped transfer learning.

        The idea is to freeze base layers for a certain number of epochs
        and then open all layers for training.

        Reference: https://arxiv.org/abs/1611.05244
        
Two-stepped transfer learning.
The idea is to freeze base layers for a certain number of epochs
and then open all layers for training.


Two - stepped transfer learning . The idea is to freeze base layers for a certain number of epochs and then open all layers for training .
def two_stepped_transfer_learning(self, epoch, fixbase_epoch, open_layers, model=None):
        model = self.model if model is None else model
        if model is None:
            return
        if (epoch + 1) <= fixbase_epoch and open_layers is not None:
            print('* Only train {} (epoch: {}/{})'.format(open_layers, epoch + 1, fixbase_epoch))
            open_specified_layers(model, open_layers)
        else:
            open_all_layers(model)
def two_stepped_transfer_learning ( self , epoch , fixbase_epoch , open_layers , model = None ) : model = self . model if model is None else model if model is None : return if ( epoch + 1 ) <= fixbase_epoch and open_layers is not None : print ( '* Only train {} (epoch: {}/{})' . format ( open_layers , epoch + 1 , fixbase_epoch ) ) open_specified_layers ( model , open_layers ) else : open_all_layers ( model )
Two-stepped transfer learning.
Two - stepped transfer learning .
"""Two-stepped transfer learning.

        The idea is to freeze base layers for a certain number of epochs
        and then open all layers for training.

        Reference: https://arxiv.org/abs/1611.05244
        """
self
epoch
fixbase_epoch
open_layers
model