9f200d963b9646fb50326f7cf6788021ddfe955d,kraken/lib/models.py,,load_any,#,172

Before Change


                    seq = load_pyrnn(fname)
                    seq.kind = "pyrnn"
                    return seq
                except Exception as e:
                    raise
            else:
                raise

def load_clstm(fname):

After Change


    nn = None
    kind = ""
    fname = abspath(expandvars(expanduser(fname)))
    try:
        nn = TorchVGSLModel.load_model(fname)
        kind = "vgsl"
    except:
        nn = TorchVGSLModel.load_clstm_model(fname)
        kind = "clstm"
    if not nn:
        raise KrakenInvalidModelException("File {} not loadable by any parser.".format(fname))
    seq = TorchSeqRecognizer(nn)
    seq.kind = kind
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: mittagessen/kraken
Commit Name: 9f200d963b9646fb50326f7cf6788021ddfe955d
Time: 2018-04-08
Author: mittagessen@l.unchti.me
File Name: kraken/lib/models.py
Class Name:
Method Name: load_any


Project Name: regel/loudml
Commit Name: e7e01290997f66471c08848ee0a968e2526b4b9b
Time: 2019-09-29
Author: sebastien.regel@gmail.com
File Name: loudml/loudml/_version.py
Class Name:
Method Name:


Project Name: jonas-koehler/s2cnn
Commit Name: d750d66fb998a44316000908f213ae73c53de97f
Time: 2018-03-03
Author: geiger.mario@gmail.com
File Name: examples/shrec17/dataset.py
Class Name: CacheNPY
Method Name: __call__