From 83b240ef75741ef554ee9af446f2c59534565a5f Mon Sep 17 00:00:00 2001 From: DrSiiK Date: Thu, 15 Aug 2024 20:04:56 -0500 Subject: [PATCH] Update core.py --- modules/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/core.py b/modules/core.py index db64f37..9b32f99 100644 --- a/modules/core.py +++ b/modules/core.py @@ -75,7 +75,7 @@ def parse_args() -> None: else: modules.globals.fp_ui['face_enhancer'] = False - modules.globals.nsfw = False + modules.globals.nsfw = True # translate deprecated args if args.source_path_deprecated: @@ -171,7 +171,7 @@ def start() -> None: return # process image to image if has_image_extension(modules.globals.target_path): - if modules.globals.nsfw == False: + if modules.globals.nsfw == True: from modules.predicter import predict_image if predict_image(modules.globals.target_path): destroy() @@ -186,7 +186,7 @@ def start() -> None: update_status('Processing to image failed!') return # process image to videos - if modules.globals.nsfw == False: + if modules.globals.nsfw == True: from modules.predicter import predict_video if predict_video(modules.globals.target_path): destroy()