3b825a18923f298067ac8ece781d01e83ab84016,neural_style/neural_style.py,,train,#,19

Before Change


    print("CONTENT WEIGHT:", args.content_weight)
    print("STYLE WEIGHT:", args.style_weight)
    print("DATASET:", args.dataset)
    print("CHECKPOINT DIR:", args.checkpoint_dir)
    print("VALIDATION:", args.validation)
    print("VAL DIR:", args.val_dir)
    print("STYLE SIZE:", args.style_size)
    print("=====================\n")

After Change


    // save model
    transformer.eval()
    transformer.cpu()
    save_model_filename = "epoch_" + str(args.epochs) + "_" + str(time.ctime()).replace(" ", "_") + "_" + str(
        args.content_weight) + "_" + str(args.style_weight) + ".model"
    save_model_path = os.path.join(args.save_model_dir, save_model_filename)
    torch.save(transformer, save_model_path)

    print("\nDone :)")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: abhiskk/fast-neural-style
Commit Name: 3b825a18923f298067ac8ece781d01e83ab84016
Time: 2017-04-03
Author: abhishekkadiyan@gmail.com
File Name: neural_style/neural_style.py
Class Name:
Method Name: train


Project Name: 13o-bbr-bbq/machine_learning_security
Commit Name: 03073dd14c70c9f0858f55d41a0d5b5a16c30933
Time: 2018-07-05
Author: takaesu235@gmail.com
File Name: DeepExploit/deep_plugin/classifier_signature/Classifier_signature.py
Class Name: ClassifierSignature
Method Name: __init__


Project Name: shibing624/pycorrector
Commit Name: da4fb19182efba7523c70c8051d9dee1038b09e7
Time: 2018-03-12
Author: 507153809@qq.com
File Name: pycorrector/corrector.py
Class Name:
Method Name: