ai-forever / ai-forever/Real-ESRGAN

Crash due to breaking change in huggingface

未关闭
#35 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
654
派生
223
PR 合并指标
30 天内没有已合并 PR

描述

from RealESRGAN import RealESRGAN
File "/usr/local/lib/python3.11/dist-packages/RealESRGAN/__init__.py", line 1, in
from .model import RealESRGAN
File "/usr/local/lib/python3.11/dist-packages/RealESRGAN/model.py", line 7, in
from huggingface_hub import hf_hub_url, cached_download
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/usr/local/lib/python3.11/dist-packages/huggingface_hub/__init__.py)

The solution is to add version to the `requirements.txt`:
```
huggingface-hub==0.25.2
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。