286a864220a00732d382a75051e11877acf13c3f,deeppavlov/core/models/keras_model.py,KerasModel,load,#KerasModel#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,141

Before Change


        
        if self.ser_path.is_dir():
            opt_path = "{}/{}_opt.json".format(self.ser_path, self._ser_file)
            weights_path = "{}/{}.h5".format(self.ser_path, self._ser_file)
        else:
            opt_path = "{}_opt.json".format(self.ser_path)
            weights_path = "{}.h5".format(self.ser_path)

        if Path(opt_path).exists() and Path(weights_path).exists():

            print("___Initializing model from saved___"
                  "\nModel weights file is %s.h5"

After Change



            if opt_path.exists() and weights_path.exists():

                print("___Initializing model from saved___"
                      "\nModel weights file is {}"
                      "\nNetwork parameters are from {}".format(weights_path.name, opt_path.name))

                self.opt = read_json(opt_path)

                model_func = getattr(self, model_name, None)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 286a864220a00732d382a75051e11877acf13c3f
Time: 2018-01-24
Author: ol.gure@gmail.com
File Name: deeppavlov/core/models/keras_model.py
Class Name: KerasModel
Method Name: load


Project Name: deepmipt/DeepPavlov
Commit Name: b0502b1b0c2059f314968e30596d9aca8838f266
Time: 2018-12-11
Author: yoptar@gmail.com
File Name: deeppavlov/settings.py
Class Name:
Method Name: main


Project Name: AlexEMG/DeepLabCut
Commit Name: 812f374c34087af0aa90ac3cd2b37158b1ad0372
Time: 2019-07-02
Author: amathis@fas.harvard.edu
File Name: deeplabcut/post_processing/analyze_skeleton.py
Class Name:
Method Name: analyzeskeleton