mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
dep(diffusers): upgrade diffusers to 0.20
Removed `is_safetensors_available` as safetensors is now a required dependency of diffusers.
This commit is contained in:
parent
832335998f
commit
4267132926
@ -5,7 +5,6 @@ from typing import Optional
|
|||||||
|
|
||||||
import safetensors
|
import safetensors
|
||||||
import torch
|
import torch
|
||||||
from diffusers.utils import is_safetensors_available
|
|
||||||
from omegaconf import OmegaConf
|
from omegaconf import OmegaConf
|
||||||
|
|
||||||
from invokeai.app.services.config import InvokeAIAppConfig
|
from invokeai.app.services.config import InvokeAIAppConfig
|
||||||
@ -175,5 +174,5 @@ def _convert_vae_ckpt_and_cache(
|
|||||||
vae_config=config,
|
vae_config=config,
|
||||||
image_size=image_size,
|
image_size=image_size,
|
||||||
)
|
)
|
||||||
vae_model.save_pretrained(output_path, safe_serialization=is_safetensors_available())
|
vae_model.save_pretrained(output_path, safe_serialization=True)
|
||||||
return output_path
|
return output_path
|
||||||
|
@ -40,7 +40,7 @@ dependencies = [
|
|||||||
"controlnet-aux>=0.0.6",
|
"controlnet-aux>=0.0.6",
|
||||||
"timm==0.6.13", # needed to override timm latest in controlnet_aux, see https://github.com/isl-org/ZoeDepth/issues/26
|
"timm==0.6.13", # needed to override timm latest in controlnet_aux, see https://github.com/isl-org/ZoeDepth/issues/26
|
||||||
"datasets",
|
"datasets",
|
||||||
"diffusers[torch]~=0.19.3",
|
"diffusers[torch]~=0.20.0",
|
||||||
"dnspython~=2.4.0",
|
"dnspython~=2.4.0",
|
||||||
"dynamicprompts",
|
"dynamicprompts",
|
||||||
"easing-functions",
|
"easing-functions",
|
||||||
@ -49,7 +49,7 @@ dependencies = [
|
|||||||
"fastapi==0.88.0",
|
"fastapi==0.88.0",
|
||||||
"fastapi-events==0.8.0",
|
"fastapi-events==0.8.0",
|
||||||
"fastapi-socketio==0.0.10",
|
"fastapi-socketio==0.0.10",
|
||||||
"huggingface-hub>=0.11.1",
|
"huggingface-hub~=0.16.4",
|
||||||
"invisible-watermark~=0.2.0", # needed to install SDXL base and refiner using their repo_ids
|
"invisible-watermark~=0.2.0", # needed to install SDXL base and refiner using their repo_ids
|
||||||
"matplotlib", # needed for plotting of Penner easing functions
|
"matplotlib", # needed for plotting of Penner easing functions
|
||||||
"mediapipe", # needed for "mediapipeface" controlnet model
|
"mediapipe", # needed for "mediapipeface" controlnet model
|
||||||
|
Loading…
Reference in New Issue
Block a user