6c3a117b9b39fd7f993c85091f7a1a0d96d10d08,datasets/KITTI.py,,load_flow_from_png,#Any#,16
Before Change
def load_flow_from_png(png_path):
return(imread(png_path)[:,:,0:2].astype(float) - 128)
def make_dataset(dir, split, occ=True):
After Change
def load_flow_from_png(png_path):
flo_file = cv2.imread(png_path,cv2.IMREAD_UNCHANGED)
flo_img = flo_file[:,:,1::-1].astype(np.float32)
invalid = (flo_file[:,:,2] == 0)
flo_img = flo_img - 32768
flo_img = flo_img / 64
flo_img[invalid, :] = np.NaN
return(flo_img)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: ClementPinard/FlowNetPytorch
Commit Name: 6c3a117b9b39fd7f993c85091f7a1a0d96d10d08
Time: 2018-01-29
Author: clement.pinard@parrot.com
File Name: datasets/KITTI.py
Class Name:
Method Name: load_flow_from_png
Project Name: deepfakes/faceswap
Commit Name: 16cfc4a0427c16c10dad2d3bfbd05a7302b1aded
Time: 2018-02-26
Author: leftler+github@gmail.com
File Name: scripts/extract.py
Class Name: ExtractTrainingData
Method Name: process
Project Name: TheAlgorithms/Python
Commit Name: beafe3656fed73a0adff4cd9ad3dfd5c0b1d294b
Time: 2018-11-05
Author: r.gc@hotmail.es
File Name: analysis/compression_analysis/psnr.py
Class Name:
Method Name: main
Project Name: mseitzer/pytorch-fid
Commit Name: 8cab14aa67b78402bb395546ca66e2b927cac222
Time: 2019-01-31
Author: maya6282@gmail.com
File Name: fid_score.py
Class Name:
Method Name: get_activations