29ab5e1965503be3ffe87462e973edf1d457af6e,codes/scripts/extract_subimgs_single.py,,worker,#,38
Before Change
for GT_path in GT_paths:
base_name = os.path.basename(GT_path)
print(base_name, os.getpid())
img_GT = cv2.imread(GT_path, cv2.IMREAD_UNCHANGED)
n_channels = len(img_GT.shape)
if n_channels == 2:
After Change
cv2.imwrite(
os.path.join(save_folder, img_name.replace(".png", "_s{:03d}.png".format(index))),
crop_img, [cv2.IMWRITE_PNG_COMPRESSION, compression_level])
return "Processing {:s} ...".format(img_name)
if __name__ == "__main__":
main()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: xinntao/BasicSR
Commit Name: 29ab5e1965503be3ffe87462e973edf1d457af6e
Time: 2018-09-06
Author: wxt1994@126.com
File Name: codes/scripts/extract_subimgs_single.py
Class Name:
Method Name: worker
Project Name: xinntao/BasicSR
Commit Name: 29ab5e1965503be3ffe87462e973edf1d457af6e
Time: 2018-09-06
Author: wxt1994@126.com
File Name: codes/scripts/extract_subimgs_single.py
Class Name:
Method Name: main
Project Name: xinntao/BasicSR
Commit Name: 09f89a438d11b7ddb81bdd560c4de5d6a860fd3e
Time: 2018-09-06
Author: wxt1994@126.com
File Name: codes/scripts/color2gray.py
Class Name:
Method Name: worker