fix crash with FSR
This commit is contained in:
Binary file not shown.
@@ -314,7 +314,7 @@ class Handler:
|
|||||||
|
|
||||||
time.sleep( 2 );
|
time.sleep( 2 );
|
||||||
try:
|
try:
|
||||||
os.mkdir( f'{tmppath}sh' )
|
os.mkdir( f'{tmppath}sc' )
|
||||||
except FileExistsError:
|
except FileExistsError:
|
||||||
pass
|
pass
|
||||||
# Locate Images and assemble FSR-Command
|
# Locate Images and assemble FSR-Command
|
||||||
@@ -326,9 +326,9 @@ class Handler:
|
|||||||
for self.file in self.filelist:
|
for self.file in self.filelist:
|
||||||
self.number += 1
|
self.number += 1
|
||||||
if ( self.os_type == 'win32' ):
|
if ( self.os_type == 'win32' ):
|
||||||
self.file_list.append( f"{self.pathSharpening}\\{self.file} {tmppath}sh\\ig{str(self.number).zfill(8)}.{ filetype } " );
|
self.file_list.append( f"{self.pathSharpening}\\{self.file} {tmppath}sc\\ig{str(self.number).zfill(8)}.{ filetype } " );
|
||||||
else:
|
else:
|
||||||
self.file_list.append( f"{self.pathSharpening}/{self.file} {tmppath}sh/ig{str(self.number).zfill(8)}.{ filetype } " );
|
self.file_list.append( f"{self.pathSharpening}/{self.file} {tmppath}sc/ig{str(self.number).zfill(8)}.{ filetype } " );
|
||||||
|
|
||||||
if ( self.os_type == 'win32' ):
|
if ( self.os_type == 'win32' ):
|
||||||
self.maxlength = 8000
|
self.maxlength = 8000
|
||||||
@@ -374,7 +374,7 @@ def upscalerEngine ( files, fsrpath, quality_setting, number, maxlength, os_type
|
|||||||
while files[maxlength - pos:maxlength - pos + 1] != ' ':
|
while files[maxlength - pos:maxlength - pos + 1] != ' ':
|
||||||
pos += 1
|
pos += 1
|
||||||
file_processing = files[:maxlength - pos]
|
file_processing = files[:maxlength - pos]
|
||||||
if file_processing[len(file_processing) - 14:len(file_processing) - 12] == 'ex':
|
if file_processing[len(file_processing) - 14:len(file_processing) - 12] == 'ig':
|
||||||
pos += 5
|
pos += 5
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
@@ -394,7 +394,7 @@ def upscalerEngine ( files, fsrpath, quality_setting, number, maxlength, os_type
|
|||||||
while files[posy - pos:posy - pos + 1] != ' ':
|
while files[posy - pos:posy - pos + 1] != ' ':
|
||||||
pos += 1
|
pos += 1
|
||||||
file_processing = files[posx:posy - pos]
|
file_processing = files[posx:posy - pos]
|
||||||
if file_processing[len(file_processing) - 14:len(file_processing) - 12] == 'ex':
|
if file_processing[len(file_processing) - 14:len(file_processing) - 12] == 'ig':
|
||||||
pos += 5
|
pos += 5
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
@@ -443,7 +443,7 @@ def sharpeningEngine ( files, fsrpath, number, maxlength, os_type, sharpening ):
|
|||||||
while files[maxlength - pos:maxlength - pos + 1] != ' ':
|
while files[maxlength - pos:maxlength - pos + 1] != ' ':
|
||||||
pos += 1
|
pos += 1
|
||||||
file_processing = files[:maxlength - pos]
|
file_processing = files[:maxlength - pos]
|
||||||
if file_processing[len(file_processing) - 14:len(file_processing) - 12] == 'ex':
|
if file_processing[len(file_processing) - 14:len(file_processing) - 12] == 'ig':
|
||||||
pos += 5
|
pos += 5
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
@@ -463,7 +463,7 @@ def sharpeningEngine ( files, fsrpath, number, maxlength, os_type, sharpening ):
|
|||||||
while files[posy - pos:posy - pos + 1] != ' ':
|
while files[posy - pos:posy - pos + 1] != ' ':
|
||||||
pos += 1
|
pos += 1
|
||||||
file_processing = files[posx:posy - pos]
|
file_processing = files[posx:posy - pos]
|
||||||
if file_processing[len(file_processing) - 14:len(file_processing) - 12] == 'ex':
|
if file_processing[len(file_processing) - 14:len(file_processing) - 12] == 'ig':
|
||||||
pos += 5
|
pos += 5
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user