41ef0bf4ece3daf13a02b14c79eb7ddebb42bc0c,facegen/generate.py,,generate_from_yaml,#,418

Before Change



    gen = model.predict(inputs, batch_size=batch_size)

    print("Writing to "{}"...".format(output_dir))

    for i in range(0, gen.shape[0]):
        if K.image_dim_ordering() == "th":

After Change



    print("Generating images...")

    num_images = inputs["identity"].shape[0]
    count = 0

    for idx in tqdm(range(0, num_images, batch_size)):

        batch = {
            "identity":    inputs["identity"]   [idx:idx+batch_size,:],
            "emotion":     inputs["emotion"]    [idx:idx+batch_size,:],
            "orientation": inputs["orientation"][idx:idx+batch_size,:],
        }

        gen = model.predict_on_batch(batch)

        for i in range(0, gen.shape[0]):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: zo7/deconvfaces
Commit Name: 41ef0bf4ece3daf13a02b14c79eb7ddebb42bc0c
Time: 2016-09-04
Author: zo7.flynn@gmail.com
File Name: facegen/generate.py
Class Name:
Method Name: generate_from_yaml


Project Name: bukun/TorCMS
Commit Name: d9858e310969497677ed6066566ef7df10311799
Time: 2018-09-10
Author: lihy@g4
File Name: torcms/handlers/entity_handler.py
Class Name: EntityHandler
Method Name: add_pic


Project Name: bukun/TorCMS
Commit Name: d9858e310969497677ed6066566ef7df10311799
Time: 2018-09-10
Author: lihy@g4
File Name: torcms/handlers/entity_handler.py
Class Name: EntityHandler
Method Name: add_pdf