reluce / szurubooru-toolkit

Python package and script collection to manage your szurubooru image board.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix Deepbooru related imports if it's not being used

reluce opened this issue · comments

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).

Fixed in 98b8b5b and 93141f2.