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):
"""Will search in training folder for folders "flow_noc" or "flow_occ" and "colored_0" (KITTI 2012) or "image_2" (KITTI 2015) """
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
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: deepinsight/insightface
Commit Name: fd10b74b45692e53047149cb4d526067845b4a7d
Time: 2020-11-06
Author: guojia@gmail.com
File Name: deploy/test.py
Class Name:
Method Name:
Project Name: idealo/image-super-resolution
Commit Name: 677467e2ae6a25911428540620b5e992cd64f482
Time: 2018-12-20
Author: testadicardi@gmail.com
File Name: src/predict/predict.py
Class Name: Predictor
Method Name: forward_pass