We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f369a01 + 49cd0d1 commit 447e5ddCopy full SHA for 447e5dd
perth/perth_net/__init__.py
@@ -1,4 +1,4 @@
1
-from pkg_resources import resource_filename
2
-PREPACKAGED_MODELS_DIR = resource_filename(__name__, "pretrained")
+from importlib.resources import files
3
4
-from .perth_net_implicit.perth_watermarker import PerthImplicitWatermarker
+PREPACKAGED_MODELS_DIR = files(__name__).joinpath("pretrained")
+from .perth_net_implicit.perth_watermarker import PerthImplicitWatermarker # noqa: E402, F401
0 commit comments