mirror of
https://github.com/Deepshift/DeepCreamPy.git
synced 2024-12-01 04:00:21 +00:00
Added --autoclose argument
This commit is contained in:
parent
8996c4204c
commit
238b02185e
@ -29,6 +29,9 @@ def get_args():
|
||||
parser.add_argument('--mask_color', dest='mask_color', default=[0,255,0], type=str2floatarr, help='rgb color of the mask, comma seperated.')
|
||||
parser.add_argument('--is_mosaic', dest='is_mosaic', default='False', type=str2bool, help='true if image has mosaic censoring, false otherwise')
|
||||
|
||||
#Misc settings
|
||||
parser.add_argument('--autoclose', dest='autoclose', default='False', type=str2bool, help='true will close the program when it finishes')
|
||||
|
||||
args = parser.parse_args()
|
||||
return args
|
||||
|
||||
|
@ -95,6 +95,7 @@ class Decensor:
|
||||
print("--------------------------------------------------------------------------")
|
||||
if(self.files_removed is not None):
|
||||
file.error_messages(None, self.files_removed)
|
||||
if(self.args.autoclose == False):
|
||||
input("\nPress anything to end...")
|
||||
|
||||
#decensors one image at a time
|
||||
|
Loading…
Reference in New Issue
Block a user