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

无法引入ppim #3

Open
hanknewbird opened this issue Nov 30, 2021 · 0 comments
Open

无法引入ppim #3

hanknewbird opened this issue Nov 30, 2021 · 0 comments

Comments

@hanknewbird
Copy link


AttributeError Traceback (most recent call last)
in
1 import paddle
----> 2 from ppim import rednet_26
3
4 # 使用 PPIM whl 包加载模型
5 model, val_transforms = rednet_26(pretrained=True, return_transforms=True)

~.conda\envs\paddle\lib\site-packages\ppim_init_.py in
----> 1 import ppim.models as models
2
3 from ppim.models import *
4 from inspect import isfunction, isclass
5

~.conda\envs\paddle\lib\site-packages\ppim\models_init_.py in
3 from ppim.models.tnt import tnt_s, TNT
4 from ppim.models.t2t import t2t_vit_7, t2t_vit_10, t2t_vit_12, t2t_vit_14, t2t_vit_19, t2t_vit_24, t2t_vit_t_14, t2t_vit_t_19, t2t_vit_t_24, t2t_vit_14_384, t2t_vit_24_token_labeling
----> 5 from ppim.models.pvt import pvt_ti, pvt_s, pvt_m, pvt_l, PyramidVisionTransformer
6 from ppim.models.pit import pit_ti, pit_s, pit_xs, pit_b, pit_ti_distilled, pit_s_distilled, pit_xs_distilled, pit_b_distilled, PoolingTransformer, DistilledPoolingTransformer
7 from ppim.models.coat import coat_ti, coat_m, coat_lite_ti, coat_lite_m, CoaT

~.conda\envs\paddle\lib\site-packages\ppim\models\pvt.py in
5 import paddle.vision.transforms as T
6
----> 7 import ppim.models.vit as vit
8
9 from ppim.models.common import add_parameter, load_model

AttributeError: module 'ppim' has no attribute 'models'

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