da4848e1156edd2076b881ce2300ae2d3cc18246,examples/train_pascal.py,,,#,51

Before Change


    // start training
    model.fit_generator(
        generator=train_generator,
        steps_per_epoch=len(train_generator.image_names) // args.batch_size,
        epochs=50,
        verbose=1,
        validation_data=val_generator,

After Change


    )

    // start training
    training_model.fit_generator(
        generator=train_generator,
        steps_per_epoch=10000,
        epochs=50,
        verbose=1,
        validation_data=val_generator,
        validation_steps=3000,  // len(val_generator.image_names) // args.batch_size,
        callbacks=create_callbacks(model, training_model, prediction_model),
    )

    // store final result too
    model.save(os.path.join("snapshots", "resnet50_voc_final.h5"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: fizyr/keras-retinanet
Commit Name: da4848e1156edd2076b881ce2300ae2d3cc18246
Time: 2017-12-03
Author: j.c.gaiser@delftrobotics.com
File Name: examples/train_pascal.py
Class Name:
Method Name:


Project Name: fizyr/keras-retinanet
Commit Name: f5d152d30e53fd6fadb04d10a7388648a0c3826e
Time: 2017-11-28
Author: j.c.gaiser@delftrobotics.com
File Name: examples/train_pascal.py
Class Name:
Method Name:


Project Name: thoughtworksarts/EmoPy
Commit Name: a94f7b93251013d51d9918c27ab2569eb526a494
Time: 2018-02-14
Author: puneethp@thoughtworks.com
File Name: examples/convolutional_model.py
Class Name:
Method Name: