From 1a47d99278f6cb4e3527c5434b6783bd3cd599be Mon Sep 17 00:00:00 2001 From: iperov Date: Sat, 24 Jul 2021 10:47:46 +0400 Subject: [PATCH] clean unused comments --- main.py | 45 +-------------------------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/main.py b/main.py index c0c2ea6..9244b1d 100644 --- a/main.py +++ b/main.py @@ -43,51 +43,8 @@ class fixPathAction(argparse.Action): def __call__(self, parser, namespace, values, option_string=None): setattr(namespace, self.dest, os.path.abspath(os.path.expanduser(values))) - -# from xlib import time as lib_time -# import numpy as np -# import cv2 -# import cupy as cp -# import cupyx.scipy.ndimage -# import scipy -# import scipy.ndimage - -# from typing import Union, Tuple - -# from xlib.image import ImageProcessor - -# mat = def_mat = np.array([[ 8.5966533e-01, 8.3356246e-02, 1.9525000e+02 ],# -# [-8.3356142e-02, 8.5966533e-01, 8.8052826e+01 ]], np.float32)# - -# is_cp = False -# while True: -# print('is_cp : ', is_cp) -# img = cv2.imread(r'D:\DevelopPython\test\00000.png') -# if is_cp: -# img = cp.asarray(img) -# is_cp = not is_cp - -# ip = ImageProcessor(img) -# ip.sharpen(factor=10.0) -# #ip.degrade_resize( np.random.rand() ) - - -# #ip.erode_blur(50, 50, fade_to_border=False) -# #ip.resize( (500,500) ) -# #ip.warpAffine(mat, 1920, 1080) -# x = ip.get_image('HWC') - -# x = cp.asnumpy(x) -# cv2.imshow('', x ) -# cv2.waitKey(0) -# import code -# code.interact(local=dict(globals(), **locals())) - - - if __name__ == '__main__': main() - - + # import code # code.interact(local=dict(globals(), **locals()))