model_stats(model: nn.Module, input_shape: Tuple[int, int, int, int]=(1, 3, 640, 640)) -> Tuple[int, Dict[str, str]]Compute parameter count and (when `calflops` is installed) FLOPs/MACs.
| 名称 | 类型 | 默认值 |
|---|---|---|
model | nn.Module | — |
input_shape | Tuple[int, int, int, int] | (1, 3, 640, 640) |