🔮 Neural Network Parameter Count Estimator
Estimate the parameter count of fully-connected and convolutional layers from layer widths, kernel sizes and channel counts. Useful for model sizing and memory budgeting.
📐 計算公式 / 原理
全連線引數 = in × out + out(偏置);3×3 卷積引數 = in × out × 9 + out;視訊記憶體 MB = 引數 × 4 / 1024 / 1024
按層的權重矩陣規模累加估算引數量,再按每引數 4 位元組(FP32)折算視訊記憶體。這只是推理權重的下限,訓練還要額外放梯度、最佳化器狀態(Adam 再翻 2 倍)與啟用值,實際佔用通常是權重的 4–6 倍。
📐 計算公式與說明
全連線:params = in × out + out(bias)
卷積 3×3:params = in × out × 9 + out
卷積 3×3:params = in × out × 9 + out
用於快速估算模型規模。