Fix Deepbooru related imports if it's not being used
reluce opened this issue · comments
reluce commented
Currently, even if deepbooru_enabled
in config.toml
is set to false
, __init__.py
tries to import the deepbooru module and its Tensorflow dependencies.
And even if the Tensorflow package is installed and deepbooru_enabled
is set to false
, the scripts might fail in case the hosts processor doesn't have the AVX instruction set (common for NAS systems).