mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
install filetype only if needed
This commit is contained in:
parent
13df575465
commit
e86c2a4b4d
@ -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)
|
||||
|
@ -32,4 +32,3 @@ torchdiffeq
|
||||
torchsde
|
||||
transformers==4.30.2
|
||||
pillow-avif-plugin==1.4.3
|
||||
filetype
|
||||
|
@ -33,4 +33,3 @@ torchsde==0.2.6
|
||||
transformers==4.30.2
|
||||
httpx==0.24.1
|
||||
pillow-avif-plugin==1.4.3
|
||||
filetype
|
||||
|
Loading…
Reference in New Issue
Block a user