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

Bottleneck问题 #95

Open
Albertchamberlain opened this issue Oct 16, 2023 · 2 comments
Open

Bottleneck问题 #95

Albertchamberlain opened this issue Oct 16, 2023 · 2 comments

Comments

@Albertchamberlain
Copy link

由Basicblock切换成Bottleneck运行模型报错

@Albertchamberlain
Copy link
Author

直接切换运行即可复现

@TosaSato2
Copy link

I changed the block to "BottleNeck" to change the backbone to a ResNet-50, and it worked, however I had to make the following modifications to some custom data LSTR scripts:

  1. In the config/LSTR.json script I changed:
  • res_layers by those of ResNet-50 to [3, 4, 6, 3]
  • res_dims by those of ResNet-50 to [64, 128, 256, 512]
  1. In the script models/py_utils/kp.py on line 151:

self.input_proj = nn.Conv2d(res_dims[-1], hidden_dim, kernel_size=1) # the same as channel of self.layer4

I changed the res_dims[-1] to 2048 which is the same as channel of self.layer4 for ResNet-50.

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