pyanomaly/core/engine/abstract/base_engine.py
def save(self, current_step, best=False, flag='inter'):
        """Save method.
        The method is used to save the model or checkpoint. The following attributes are related to this function.
            self.saved_stuff(dict): the dictionary of saving things, such as model, optimizer, loss, step. 
        Args:
            current_step(int): The current step. 
            best(bool): indicate whether is the best model

        """
        if best:
            # result_dict = engine_save(self.config, self.kwargs['config_name'], self.saved_stuff, current_step, self.kwargs['time_stamp'], self.accuarcy, flag='best', verbose=(self.kwargs['model_type'] + '#' + self.verbose), best=True, save_model=True)
            result_dict = engine_save(self.saved_stuff, current_step, self.accuarcy, save_cfg=self.save_cfg, flag=flag, verbose=(self.kwargs['model_type'] + '#' + self.verbose), best=True, save_model=True)
            self.result_path = result_dict['model_file']
        else:
            # result_dict = engine_save(self.config, self.kwargs['config_name'], self.saved_stuff, current_step, self.kwargs['time_stamp'], self.accuarcy, flag='best', verbose=(self.kwargs['model_type'] + '#' + self.verbose), best=False, save_model=False)
            result_dict = engine_save(self.saved_stuff, current_step, self.accuarcy, save_cfg=self.save_cfg, flag=flag, verbose=(self.kwargs['model_type'] + '#' + self.verbose), best=False, save_model=False)
Save method.
        The method is used to save the model or checkpoint. The following attributes are related to this function.
            self.saved_stuff(dict): the dictionary of saving things, such as model, optimizer, loss, step. 
        Args:
            current_step(int): The current step. 
            best(bool): indicate whether is the best model

        
Save method.
The method is used to save the model or checkpoint. The following attributes are related to this function.
self.saved_stuff(dict): the dictionary of saving things, such as model, optimizer, loss, step.
Save method . The method is used to save the model or checkpoint . The following attributes are related to this function . self . saved_stuff ( dict ) : the dictionary of saving things such as model optimizer loss step .
def save(self, current_step, best=False, flag='inter'):
        if best:
            result_dict = engine_save(self.saved_stuff, current_step, self.accuarcy, save_cfg=self.save_cfg, flag=flag, verbose=(self.kwargs['model_type'] + '#' + self.verbose), best=True, save_model=True)
            self.result_path = result_dict['model_file']
        else:
            result_dict = engine_save(self.saved_stuff, current_step, self.accuarcy, save_cfg=self.save_cfg, flag=flag, verbose=(self.kwargs['model_type'] + '#' + self.verbose), best=False, save_model=False)
def save ( self , current_step , best = False , flag = 'inter' ) : if best : result_dict = engine_save ( self . saved_stuff , current_step , self . accuarcy , save_cfg = self . save_cfg , flag = flag , verbose = ( self . kwargs [ 'model_type' ] + '#' + self . verbose ) , best = True , save_model = True ) self . result_path = result_dict [ 'model_file' ] else : result_dict = engine_save ( self . saved_stuff , current_step , self . accuarcy , save_cfg = self . save_cfg , flag = flag , verbose = ( self . kwargs [ 'model_type' ] + '#' + self . verbose ) , best = False , save_model = False )
Save method.
Save method .
"""Save method.
        The method is used to save the model or checkpoint. The following attributes are related to this function.
            self.saved_stuff(dict): the dictionary of saving things, such as model, optimizer, loss, step. 
        Args:
            current_step(int): The current step. 
            best(bool): indicate whether is the best model

        """ # result_dict = engine_save(self.config, self.kwargs['config_name'], self.saved_stuff, current_step, self.kwargs['time_stamp'], self.accuarcy, flag='best', verbose=(self.kwargs['model_type'] + '#' + self.verbose), best=True, save_model=True)
 # result_dict = engine_save(self.config, self.kwargs['config_name'], self.saved_stuff, current_step, self.kwargs['time_stamp'], self.accuarcy, flag='best', verbose=(self.kwargs['model_type'] + '#' + self.verbose), best=False, save_model=False)

self
current_step
The current step.
The current step .
best
indicate whether is the best model
indicate whether is the best model
flag