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

关于ghostnetv2模型参数大小的疑问 #286

Open
uu274 opened this issue Jan 13, 2025 · 0 comments
Open

关于ghostnetv2模型参数大小的疑问 #286

uu274 opened this issue Jan 13, 2025 · 0 comments

Comments

@uu274
Copy link

uu274 commented Jan 13, 2025

请问为什么我在您提供的ghostnetv2的源码中使用summary方法测量模型大小得到的params是19.51m 我使用的代码是
model = ghostnetv2(num_classes=1, width=1.0, dropout=0.2, args=None)
# 模拟输入数据 (batch_size=1, channels=3, height=224, width=224)
input_tensor = torch.randn(1, 3, 224, 224)

# 使用 torchinfo 来打印模型摘要
summary(model, input_data=input_tensor)
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