文件列表 diffusers_xl_canny_full.safetensors diffusers_xl_canny_mid.safetensors diffusers_xl_canny_small.safetensors diffusers_xl_depth_full.safetensors diffusers_xl_depth_mid.safetensors diffusers_xl_depth_small.safetensors diffusers_xl_canny_full.safetensors (2386.23M) 下载反馈...
diffusers_name = diffusers_name.replace("emb.layers","time_emb_proj")# 针对 SDXL 特定的转换if"emb"indiffusers_nameand"time.emb.proj"notindiffusers_name:# 使用正则表达式移除最后一个数字pattern =r"\.\d+(?=\D*$)"diffusers_name = re.sub(pattern,"", diffusers_name, count=1)if".in."...
跳过ifattention_paths_to_splitisnotNoneandnew_pathinattention_paths_to_split:continue# 执行全局重命名new_path = new_path.replace("middle_block.0","mid_block.resnets.0")
fromdiffusersimportStableDiffusionControlNetImg2ImgPipeline,ControlNetModel,UniPCMultistepSchedulerimporttorchcontrolnet=ControlNetModel.from_pretrained("lllyasviel/control_v11f1p_sd15_depth",torch_dtype=torch.float16,use_safetensors=True)pipe=StableDiffusionControlNetImg2ImgPipeline.from_pretrained("runwaym...
from safetensors import safe_open import comfy.model_management @@ -43,16 +45,17 @@ def INPUT_TYPES(cls): "width_sdxl": ("INT", {"default": 1024, "min": 64, "max": 4096, "step": 8}), "height_sdxl": ("INT", {"default": 1024, "min": 64, "max": 4096, "step":...
2023.03.29 发布 0.14.0 版本,新增LoRA、ControlNet,支持训练与推理;模型加载升级,可直接加载HF Diffusers的权重(safetensors和pt)或 SD等原库的Lightning权重进行推理,支持加载Civitai社区的LoRA权重; 支持xformers 训练与推理;新增用于超高分辨率生成的VAE tiling;新增Instruct Pix2Pix、Semantic guidance、Depth2...
v0.28.0: Marigold, PixArt Sigma, AnimateDiff SDXL, InstantStyle, VQGAN Training Script, and more Diffusion models are known for their abilities in the space of generative modeling. This release ofdiffusersintroduces the first official pipeline (Marigold) for discriminative tasks such as depth ...
sdxl_minimal_inference.py sdxl_train.py sdxl_train_control_net_lllite.py sdxl_train_control_net_lllite_old.py sdxl_train_network.py sdxl_train_textual_inversion.py setup.py train_controlnet.py train_db.py train_network.py train_textual_inversion.py ...
from safetensors import safe_open import comfy.model_management @@ -43,16 +45,17 @@ def INPUT_TYPES(cls): "width_sdxl": ("INT", {"default": 1024, "min": 64, "max": 4096, "step": 8}), "height_sdxl": ("INT", {"default": 1024, "min": 64, "max": 4096, "step": ...
{network_weight}") if model_util.is_safetensors(network_weight) and args.network_show_meta: from safetensors.torch import safe_open with safe_open(network_weight, framework="pt") as f: metadata = f.metadata() if metadata is not None: logger.info(f"metadata for: {network_w...