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)
After Change
f.close()
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)
return m, s
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: analysiscenter/batchflow
Commit Name: 05cddc81531e62b41f328a69d292b723aa8df6df
Time: 2019-08-05
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/tests/notebooks_test.py
Class Name:
Method Name:
Project Name: PyMVPA/PyMVPA
Commit Name: 75a815a236dde2780bd4b09805dd7a0f5fd2d664
Time: 2009-01-27
Author: michael.hanke@gmail.com
File Name: setup.py
Class Name:
Method Name: