2313fbdad72507c0af7daaf43d1887fc95453762,src/pytorch_fid/fid_score.py,,_compute_statistics_of_path,#Any#Any#Any#Any#Any#,220

Before Change


        f.close()
    else:
        path = pathlib.Path(path)
        files = list(path.glob("*.jpg")) + list(path.glob("*.png"))
        m, s = calculate_activation_statistics(files, model, batch_size,
                                               dims, device)

    return m, s

After Change


    else:
        path = pathlib.Path(path)
        files = [file for ext in IMAGE_EXTENSIONS
                 for file in path.glob("*.{}".format(ext))]
        m, s = calculate_activation_statistics(files, model, batch_size,
                                               dims, device)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: mseitzer/pytorch-fid
Commit Name: 2313fbdad72507c0af7daaf43d1887fc95453762
Time: 2020-11-30
Author: 16725193+mseitzer@users.noreply.github.com
File Name: src/pytorch_fid/fid_score.py
Class Name:
Method Name: _compute_statistics_of_path


Project Name: pantsbuild/pants
Commit Name: dfd7f7381323b1c66f1f8705a6196c5bae0197c8
Time: 2018-07-17
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: tests/python/pants_test/backend/python/tasks/test_ctypes_integration.py
Class Name: CTypesIntegrationTest
Method Name: test_binary


Project Name: mozilla/TTS
Commit Name: 278c7a91b77448236af73d6942da425a5d5a2e34
Time: 2019-04-28
Author: egolge@mozilla.com
File Name: datasets/preprocess.py
Class Name:
Method Name: mozilla