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

more specific dependencies #10

Open
RuiGao7 opened this issue Sep 3, 2023 · 1 comment
Open

more specific dependencies #10

RuiGao7 opened this issue Sep 3, 2023 · 1 comment

Comments

@RuiGao7
Copy link

RuiGao7 commented Sep 3, 2023

When I run PVTV2_ After TEM. py, the following error occurred:

Traceback (most recent call last):
File "/media/estar/Data1/gr/SLT-Net-master/lib/pvtv2_afterTEM.py", line 280, in
net = Network(pvtv2_pretrained=False).cuda()
File "/media/estar/Data1/gr/SLT-Net-master/lib/pvtv2_afterTEM.py", line 269, in init
self.feat_net = FeatureExtraction(self.channel, self.pvtv2_pretrained, self.imgsize)
File "/media/estar/Data1/gr/SLT-Net-master/lib/pvtv2_afterTEM.py", line 173, in init
self.pvtv2_en = create_model('pvt_v2_b5',
File "/home/estar/anaconda3/envs/STL-Net/lib/python3.8/site-packages/timm/models/factory.py", line 71, in create_model
model = create_fn(pretrained=pretrained, pretrained_cfg=pretrained_cfg, **kwargs)
File "/media/estar/Data1/gr/SLT-Net-master/lib/pvt_v2.py", line 387, in pvt_v2_b5
model = PyramidVisionTransformerV2(
TypeError: init() got an unexpected keyword argument 'pretrained_cfg'

I guess this may be caused by a mismatch in the version of timm, so can you provide more specific dependencies.

@alessandriniluca
Copy link

I am facing the same problem. Have you found a solution for that?

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

2 participants