From e5e972f5380eb840f5424098f1ffedd9f1d43d5e Mon Sep 17 00:00:00 2001 From: krishna katyal Date: Thu, 5 May 2022 22:49:11 +0530 Subject: [PATCH] Dev 1.0changes added in the opereator file Signed-off-by: krishna katyal --- animegan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/animegan.py b/animegan.py index da3e055..0982a80 100644 --- a/animegan.py +++ b/animegan.py @@ -20,8 +20,8 @@ class Animegan(Operator): super().__init__() if framework == 'pytorch': import importlib.util - path = os.path.join(str(Path("__file__").parent), 'pytorch', 'model.py') - opname = os.path.basename(str(Path("__file__"))).split('.')[0] + path = os.path.join(str(Path(__file__).parent), 'pytorch', 'model.py') + opname = os.path.basename(str(Path(__file__))).split('.')[0] spec = importlib.util.spec_from_file_location(opname, path) module = importlib.util.module_from_spec(spec) spec.loader.exec_module(module)