huggingface / huggingface/diffusers

scheduler文件无法识别

Ouverte
#8,323 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug stale
Langage dominant
Python
Étoiles
34.5k
Forks
7.3k
Merge moyen
3 j 3 h
PR mergées (30 j)
91

Description

### Describe the bug

发生异常: ValueError
Pipeline expected {'tokenizer', 'text_encoder', 'unet', 'vae', 'feature_extractor', 'safety_checker', 'scheduler'}, but only {'tokenizer', 'text_encoder', 'unet', 'vae', 'feature_extractor', 'safety_checker'} were passed.
File "D:\local_gradio\app.py", line 25, in
pipe = DiffusionPipeline.from_pretrained("LCM_Dreamshaper_v7_4k.safetensors")
ValueError: Pipeline expected {'tokenizer', 'text_encoder', 'unet', 'vae', 'feature_extractor', 'safety_checker', 'scheduler'}, but only {'tokenizer', 'text_encoder', 'unet', 'vae', 'feature_extractor', 'safety_checker'} were passed.

### Reproduction

我非常确定文件是存在的,然而总是报错无法识别

### Logs

```shell
日志五任何提示
```

### System Info

(D:\conda_envs\lcm_env) D:\>diffusers-cli env

Copy-and-paste the text below in your GitHub issue and FILL OUT the two last points.

- 🤗 Diffusers version: 0.28.0
- Platform: Windows-10-10.0.19044-SP0
- Running on a notebook?: No
- Running on Google Colab?: No
- Python version: 3.8.19
- PyTorch version (GPU?): 2.3.0+cpu (False)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Huggingface_hub version: 0.23.2
- Transformers version: 4.41.1
- Accelerate version: 0.30.1
- PEFT version: not installed
- Bitsandbytes version: not installed
- Safetensors version: 0.4.3
- xFormers version: not installed
- Accelerator: NVIDIA GeForce GTX 1080 Ti, 11264 MiB VRAM
- Using GPU in script?:
- Using distributed or parallel set-up in script?:

### Who can help?

莉莉娅

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start with app.py line 25 and the DiffusionPipeline.from_pretrained invocation, using the listed Diffusers, Transformers, PyTorch, and Python versions to reproduce the ValueError. Compare the pipeline components expected in the error with those passed from LCM_Dreamshaper_v7_4k.safetensors; done means the pipeline loads without the missing-scheduler error.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python, pytorch
Domaine
machine-learning
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.