diff --git a/Project.toml b/Project.toml index 147e2a7ae545eaabe60e7d32f8a03d90a322c741..fdc60516a6c954f6d98de405298f9e4f81be9993 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "TaggingBackends" uuid = "e551f703-3b82-4335-b341-d497b48d519b" authors = ["François Laurent", "Institut Pasteur"] -version = "0.18.1" +version = "0.18.2" [deps] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" diff --git a/pyproject.toml b/pyproject.toml index aba7c5410192513bc6ebdccc8940f631a1a9d5ce..0a496d08f08f6b019f18ec1fd05bed8570701937 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "TaggingBackends" -version = "0.18.1" +version = "0.18.2" description = "Backbone for LarvaTagger.jl tagging backends" authors = ["François Laurent"] diff --git a/src/taggingbackends/explorer.py b/src/taggingbackends/explorer.py index ff726b88eaafd022ab9225649c93fa1ac31bc5fd..40644c839ee66ecd13b5d5aeea409fd236224085 100644 --- a/src/taggingbackends/explorer.py +++ b/src/taggingbackends/explorer.py @@ -11,22 +11,26 @@ import tempfile from collections import defaultdict JULIA_PROJECT = os.environ.get('JULIA_PROJECT', '') +DISABLE_JULIA = os.environ.get('DISABLE_JULIA', '') try: from julia import Julia except: - logging.warning(f"PyCall not found in JULIA_PROJECT={JULIA_PROJECT}; \ + if not DISABLE_JULIA: + logging.warning(f"PyCall not found in JULIA_PROJECT={JULIA_PROJECT}; \ please see https://gitlab.pasteur.fr/nyx/TaggingBackends#recommended-installation") else: try: Julia(compiled_modules=False) except: - logging.warning("Failed to set PyCall with compiled_modules=False") + if not DISABLE_JULIA: + logging.warning("Failed to set PyCall with compiled_modules=False") try: from julia import TaggingBackends from julia import PlanarLarvae - except ImportError: - logging.warning(f"TaggingBackends not found in JULIA_PROJECT={JULIA_PROJECT}; \ + except: + if not DISABLE_JULIA: + logging.warning(f"TaggingBackends not found in JULIA_PROJECT={JULIA_PROJECT}; \ please see https://gitlab.pasteur.fr/nyx/TaggingBackends#recommended-installation") def getlogger(name): @@ -213,6 +217,10 @@ Cannot find any Python package in project root directory: # typically follows: # UserWarning: CUDA initialization: CUDA unknown error print(line) + elif line == ' return F.conv2d(input, weight, bias, self.stride,': + # typically follows: + # UserWarning: Plan failed with a cudnnException: CUDNN_BACKEND_EXECUTION_PLAN_DESCRIPTOR: cudnnFinalize Descriptor Failed cudnn_status: CUDNN_STATUS_NOT_SUPPORTED ... + print(line) # tensorflow logs elif 26 < len(line): # assume line[:26] to be e.g.: 2022-05-17 18:48:15.120981