We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when I first step to run the model.py, An error occurred:
The size of tensor a (196) must match the size of tensor b (256) at non-singleton dimension 1
The text was updated successfully, but these errors were encountered:
Hi, Thanks for comments ! You need to use same size of resolution parameters.
def ResNet50(num_classes=1000, resolution=(224, 224)): return ResNet(Bottleneck, [3, 4, 6, 3], num_classes=num_classes, resolution=resolution) def main(): model = ResNet50() x = torch.randn([2, 3, 224, 224]) print(model(x).size()) print(get_n_params(model))
Sorry, something went wrong.
No branches or pull requests
when I first step to run the model.py, An error occurred:
The size of tensor a (196) must match the size of tensor b (256) at non-singleton dimension 1
The text was updated successfully, but these errors were encountered: