fix fsr sharpening regardless of cli option
This commit is contained in:
Binary file not shown.
@@ -254,12 +254,29 @@ class Handler:
|
|||||||
self.filelist.pop(0)
|
self.filelist.pop(0)
|
||||||
self.filelist.sort()
|
self.filelist.sort()
|
||||||
self.number = 0
|
self.number = 0
|
||||||
for self.file in self.filelist:
|
if sharpening != '' and sharpening != None:
|
||||||
self.number += 1
|
for self.file in self.filelist:
|
||||||
if ( self.os_type == 'win32' ):
|
self.number += 1
|
||||||
self.file_list.append( f"{tmppath}{self.file} {tmppath}us\\ig{str(self.number).zfill(8)}.{ filetype } " );
|
if ( self.os_type == 'win32' ):
|
||||||
else:
|
self.file_list.append( f"{tmppath}{self.file} {tmppath}us\\ig{str(self.number).zfill(8)}.{ filetype } " );
|
||||||
self.file_list.append( f"{tmppath}{self.file} {tmppath}us/ig{str(self.number).zfill(8)}.{ filetype } " );
|
else:
|
||||||
|
self.file_list.append( f"{tmppath}{self.file} {tmppath}us/ig{str(self.number).zfill(8)}.{ filetype } " );
|
||||||
|
try:
|
||||||
|
os.mkdir( f'{tmppath}us' )
|
||||||
|
except FileExistsError:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
for self.file in self.filelist:
|
||||||
|
self.number += 1
|
||||||
|
if ( self.os_type == 'win32' ):
|
||||||
|
self.file_list.append( f"{tmppath}{self.file} {tmppath}sc\\ig{str(self.number).zfill(8)}.{ filetype } " );
|
||||||
|
else:
|
||||||
|
self.file_list.append( f"{tmppath}{self.file} {tmppath}sc/ig{str(self.number).zfill(8)}.{ filetype } " );
|
||||||
|
|
||||||
|
try:
|
||||||
|
os.mkdir( f'{tmppath}sc' )
|
||||||
|
except FileExistsError:
|
||||||
|
pass
|
||||||
|
|
||||||
if ( self.os_type == 'win32' ):
|
if ( self.os_type == 'win32' ):
|
||||||
self.maxlength = 8000
|
self.maxlength = 8000
|
||||||
@@ -267,11 +284,6 @@ class Handler:
|
|||||||
self.maxlength = 31900
|
self.maxlength = 31900
|
||||||
self.pos = 1
|
self.pos = 1
|
||||||
|
|
||||||
try:
|
|
||||||
os.mkdir( f'{tmppath}us' )
|
|
||||||
except FileExistsError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
############################################
|
############################################
|
||||||
#
|
#
|
||||||
# Thread optimisation: Divide workload up into different threads & upscale using helper function
|
# Thread optimisation: Divide workload up into different threads & upscale using helper function
|
||||||
@@ -303,7 +315,7 @@ class Handler:
|
|||||||
self.pool.close();
|
self.pool.close();
|
||||||
self.pool.join();
|
self.pool.join();
|
||||||
|
|
||||||
if sharpening != '':
|
if sharpening != '' and sharpening != None:
|
||||||
print( f'\n\n\n==> Sharpening using { self.threads } threads <==\n\n' );
|
print( f'\n\n\n==> Sharpening using { self.threads } threads <==\n\n' );
|
||||||
time.sleep( 2 );
|
time.sleep( 2 );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user