EADST

Check Torch Model Structure, Flops, and Params

Check Torch Model Structure, Flops, and Params

from torchinfo import summary
images.tensors.size() # (3, 640, 640)
summary(torch_model, images.tensors.size())

from thop import profile
flops, params = profile(torch_model, inputs=[images], verbose=False)

from ptflops import get_model_complexity_info
flops, params = get_model_complexity_info(torch_model, (3, 640, 640), as_strings=True, print_per_layer_stat=True)
flops, params = get_model_complexity_info(torch_model, [images.tensors.size()], as_strings=True, print_per_layer_stat=True)
相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
Permission CLAP 飞书 Food Paper Agent Statistics tqdm 多进程 算法题 Datetime OpenCV CAM printf 版权 Anaconda CTC Git Qwen Pickle Heatmap Domain Clash 顶会 Hotel 搞笑 tar 报税 NLP 音频 Math YOLO Tiktoken torchinfo OpenAI Baidu Zip 净利润 Pandas 强化学习 ms-swift Quantization SPIE C++ Shortcut Michelin Breakpoint ChatGPT Python Hilton PyTorch BTC LLM GPTQ 阿里云 IndexTTS2 BeautifulSoup API Bipartite Video QWEN v0.dev Conda JSON UNIX Interview PIP ONNX uwsgi 腾讯云 Llama Jetson VGG-16 DeepStream MD5 Claude Bin CV Input VSCode LLAMA PDF Docker Random Vim Tracking 关于博主 Pytorch XGBoost Markdown 论文速读 FlashAttention Algorithm Tensor TSV Use Distillation Card 签证 Qwen2 Github Land NLTK LaTeX Knowledge Data 递归学习法 Qwen2.5 Image2Text Plotly Windows uWSGI FP16 EXCEL mmap 证件照 Ubuntu Color GPT4 PyCharm 公式 FP8 RAR BF16 AI Review WebCrawler DeepSeek Nginx Template scipy 论文 Bert Streamlit llama.cpp Website TensorFlow Rebuttal LeetCode Password GoogLeNet ModelScope Animate TensorRT CC Quantize NameSilo 图标 OCR Base64 v2ray UI Proxy XML Linux Gemma Cloudreve Disk Magnet GGML Dataset SQLite Paddle LoRA git-lfs Django Hungarian RGB HuggingFace Ptyhon WAN git SQL Diagram 云服务器 RL News 图形思考法 Attention 域名 PDB Freesound GIT diffusers 第一性原理 Logo Plate Web Sklearn CSV 继承 InvalidArgumentError Crawler Translation logger FP64 SVR TTS COCO HaggingFace VPN SAM CUDA Excel FP32 Transformers Vmess Miniforge Mixtral FastAPI Safetensors CEIR Jupyter Augmentation ResNet-50 transformers icon Bitcoin Firewall Search 多线程 Pillow 财报 Numpy Google hf
站点统计

本站现有博文332篇,共被浏览875516

本站已经建立2583天!

热门文章
文章归档
回到顶部