diff --git a/modules/launch_utils.py b/modules/launch_utils.py index d8309efa0..a2cdc3738 100644 --- a/modules/launch_utils.py +++ b/modules/launch_utils.py @@ -403,6 +403,10 @@ def prepare_environment(): run_pip("install ngrok", "ngrok") startup_timer.record("install ngrok") + if not is_installed('filetype') and args.use_mime_file_filtering_for_batch_from_dir: + run_pip("install filetype") + startup_timer.record("install filetype") + os.makedirs(os.path.join(script_path, dir_repos), exist_ok=True) git_clone(assets_repo, repo_dir('stable-diffusion-webui-assets'), "assets", assets_commit_hash) diff --git a/requirements.txt b/requirements.txt index 56e6112c1..59a0f7c54 100644 --- a/requirements.txt +++ b/requirements.txt @@ -32,4 +32,3 @@ torchdiffeq torchsde transformers==4.30.2 pillow-avif-plugin==1.4.3 -filetype diff --git a/requirements_versions.txt b/requirements_versions.txt index 3560f3cfc..0306ce94f 100644 --- a/requirements_versions.txt +++ b/requirements_versions.txt @@ -33,4 +33,3 @@ torchsde==0.2.6 transformers==4.30.2 httpx==0.24.1 pillow-avif-plugin==1.4.3 -filetype