【求助帖】25.2.21-文生图相关练习-林方老师\Stable Diffusion微调项目微调报错 #587

Open
opened 2025-02-27 21:42:48 +08:00 by wangjo · 4 comments

numpy已重装到1.24.4
报如下numpy错误:可见截图
RuntimeError: Failed to import transformers.models.clip.modeling_clip because of the following error (look up to see its traceback):
module 'numpy' has no attribute 'dtypes'
是否其它包版本有问题 ,麻烦老师看一下
最好给到一份完全的微调时的依赖包版本清单requirement.txt

numpy已重装到1.24.4 报如下numpy错误:可见截图 RuntimeError: Failed to import transformers.models.clip.modeling_clip because of the following error (look up to see its traceback): module 'numpy' has no attribute 'dtypes' 是否其它包版本有问题 ,麻烦老师看一下 最好给到一份完全的微调时的依赖包版本清单requirement.txt

尝试再降低一下numpy版本 pip install numpy==1.23

尝试再降低一下numpy版本 pip install numpy==1.23
Author

换了1.23的numpy依然不行尼,同样的错误,如图。
老师这边能不能在你可执行的环境里,导出一份requirement.txt给我对照一下

换了1.23的numpy依然不行尼,同样的错误,如图。 老师这边能不能在你可执行的环境里,导出一份requirement.txt给我对照一下

同样的问题,请老师回答

同样的问题,请老师回答

stable diffusion微调的环境问题,因为jupyter下载依赖默认下载每个依赖的最新版本,不会考虑依赖包之间的兼容,因此需要改成基于pip install -r requirements.txt下载,请大家去百度网盘重新下载FinetuningStableDiffusion.ipynb和requirements.txt,然后再尝试一下

stable diffusion微调的环境问题,因为jupyter下载依赖默认下载每个依赖的最新版本,不会考虑依赖包之间的兼容,因此需要改成基于pip install -r requirements.txt下载,请大家去百度网盘重新下载FinetuningStableDiffusion.ipynb和requirements.txt,然后再尝试一下
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HswOAuth/llm_course#587
No description provided.