StableDiffusion3Pipeline.from_single_file problem
#135
by
tianyer
- opened
I haved download sd3_medium_incl_clips_t5xxlfp8.safetensors to local path "/workspace/models/hub/AI-ModelScope/stable-diffusion-3-medium/", but when i infer without set config="/workspace/models/hub/AI-ModelScope/stable-diffusion-3-medium"
,It's need to download files from the hugggging hub,
when i set config="/workspace/models/hub/AI-ModelScope/stable-diffusion-3-medium"
, It's reportno file named model_index.json
andError no file named scheduler_config.json found in directory /workspace/models/hub/AI-ModelScope/stable-diffusion-3-medium.
import torch
from diffusers import StableDiffusion3Pipeline
import pdb;pdb.set_trace()
pipe = StableDiffusion3Pipeline.from_single_file(
"/workspace/models/hub/AI-ModelScope/stable-diffusion-3-medium/sd3_medium_incl_clips_t5xxlfp8.safetensors",
torch_dtype=torch.float16,
local_files_only=False,
#config="/workspace/models/hub/AI-ModelScope/stable-diffusion-3-medium",
cache_dir = "/workspace/models/hub/AI-ModelScope/stable-diffusion-3-medium",
)
pipe.enable_model_cpu_offload()
image = pipe("a picture of a cat holding a sign that says hello world").images[0]
image.save('sd3-single-file.png')
Same problem here
Same problem here
switch to AI-ModelScope/stable-diffusion-3-medium-diffusers