It downloaded models but where to save when I run this code:
It downloaded models but where to save when I run this code:
text_encoder/config.json: 100%|███████████████████████████████████████████████████████████████| 560/560 [00:00<?, ?B/s]
scheduler/scheduler_config.json: 100%|█████████████████████████████████████████████████| 497/497 [00:00<00:00, 495kB/s]
tokenizer/special_tokens_map.json: 100%|██████████████████████████████████████████████████████| 586/586 [00:00<?, ?B/s]
tokenizer/tokenizer_config.json: 100%|████████████████████████████████████████████████████████| 704/704 [00:00<?, ?B/s]
text_encoder_2/config.json: 100%|█████████████████████████████████████████████████████████████| 570/570 [00:00<?, ?B/s]
tokenizer_2/special_tokens_map.json: 100%|████████████████████████████████████████████████████| 460/460 [00:00<?, ?B/s]
tokenizer/merges.txt: 100%|██████████████████████████████████████████████████████████| 525k/525k [00:00<00:00, 772kB/s]
tokenizer_2/tokenizer_config.json: 100%|██████████████████████████████████████████████████████| 855/855 [00:00<?, ?B/s]
unet/config.json: 100%|███████████████████████████████████████████████████████████| 1.78k/1.78k [00:00<00:00, 1.78MB/s]
tokenizer/vocab.json: 100%|███████████████████████████████████████████████████████| 1.06M/1.06M [00:01<00:00, 1.02MB/s]
vae/config.json: 100%|█████████████████████████████████████████████████████████████████| 746/746 [00:00<00:00, 747kB/s]
tokenizer_2/merges.txt: 100%|████████████████████████████████████████████████████████| 525k/525k [00:00<00:00, 838kB/s]
tokenizer_2/vocab.json: 100%|█████████████████████████████████████████████████████| 1.06M/1.06M [00:00<00:00, 1.11MB/s]
(…)diffusion_pytorch_model.fp16.safetensors: 100%|███████████████████████████████████| 167M/167M [05:14<00:00, 532kB/s]
text_encoder/model.fp16.safetensors: 100%|███████████████████████████████████████████| 246M/246M [08:01<00:00, 511kB/s]
Fetching 18 files: 22%|██████████████ | 4/18 [08:05<33:16, 142.61s/it]]
(…)diffusion_pytorch_model.fp16.safetensors: 5%|█▋ | 262M/5.14G [07:52<2:14:40, 603kB/s]
(…)diffusion_pytorch_model.fp16.safetensors: 26%|███████▊ | 1.34G/5.14G [31:39<1:01:01, 1.04MB/s]
text_encoder_2/model.fp16.safetensors: 17%|██████▋ | 231M/1.39G [07:56<31:26, 614kB/s]
text_encoder_2/model.fp16.safetensors: 97%|████████████████████████████████████▋ | 1.34G/1.39G [31:41<00:45, 1.04MB/s]
from diffusers import DiffusionPipeline
import torch
pipe = DiffusionPipeline.from_pretrained(
"playgroundai/playground-v2.5-1024px-aesthetic",
torch_dtype=torch.float16,
variant="fp16",
).to("cuda")
# Optional: Use DPM++ 2M Karras scheduler for crisper fine details
from diffusers import EDMDPMSolverMultistepScheduler
pipe.scheduler = EDMDPMSolverMultistepScheduler()
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt=prompt, num_inference_steps=50, guidance_scale=3).images[0]
Can not run the code with below errors.
Loading pipeline components...: 29%|██████████████▊ | 2/7 [00:00<00:01, 3.67it/s]
Traceback (most recent call last):
File "D:\AI\stable-diffusion-webui-forge\myscripts\myplayground.py", line 4, in
pipe = DiffusionPipeline.from_pretrained(
File "D:\AI\stable-diffusion-webui-forge\venv\lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
File "D:\AI\stable-diffusion-webui-forge\venv\lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 1263, in from_pretrained
loaded_sub_model = load_sub_model(
File "D:\AI\stable-diffusion-webui-forge\venv\lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 443, in load_sub_model
class_obj, class_candidates = get_class_obj_and_candidates(
File "D:\AI\stable-diffusion-webui-forge\venv\lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 347, in get_class_obj_and_candidates
class_obj = getattr(library, class_name)
File "D:\AI\stable-diffusion-webui-forge\venv\lib\site-packages\diffusers\utils\import_utils.py", line 697, in getattr
raise AttributeError(f"module {self.name} has no attribute {name}")
AttributeError: module diffusers has no attribute EDMDPMSolverMultistepScheduler. Did you mean: 'DPMSolverMultistepScheduler'?
you'll need a newer version of diffusers that has EDMDPMSolverMultistepScheduler
. try installing diffusers>=0.27.0
first