huggingface / huggingface/diffusers
scheduler文件无法识别
- 主要言語
- Python
- スター
- 34.5k
- フォーク
- 7.3k
- 平均マージ
- 3日 3時間
- マージ済み PR(30日)
- 91
説明
### 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?
莉莉娅
コントリビューションガイド
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, pytorch
- 領域
- machine-learning
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100