Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Spark预训练权重加载错误! #1889

Open
WWork1 opened this issue Apr 16, 2024 · 0 comments
Open

[Bug] Spark预训练权重加载错误! #1889

WWork1 opened this issue Apr 16, 2024 · 0 comments

Comments

@WWork1
Copy link

WWork1 commented Apr 16, 2024

分支

main 分支 (mmpretrain 版本)

描述该错误

我按照文档,用下列代码加载Spark预训练权重。

from mmpretrain import get_model
model = get_model('spark_sparse-resnet50_800e_in1k', pretrained=True)

代码报错,提示了以下错误。

downsample_raito = H // SparseHelper._cur_active.shape[-1]
AttributeError: 'NoneType' object has no attribute 'shape'

image

环境信息

python xxx.py

其他信息

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant