try importing torch, then shapely, then tensorflow

This commit is contained in:
kba 2025-11-06 13:10:35 +01:00
parent 44037bc05d
commit f902756ce1
3 changed files with 32 additions and 22 deletions

View file

@ -6,6 +6,8 @@ from typing import Union
import click
# NOTE: For debugging/predictable order of imports
from .eynollah_imports import imported_libs
from .model_zoo import EynollahModelZoo
from .cli_models import models_cli

View file

@ -0,0 +1,8 @@
"""
Load libraries with possible race conditions once. This must be imported as the first module of eynollah.
"""
from torch import *
import tensorflow.keras
from shapely import *
imported_libs = True
__all__ = ['imported_libs']