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

本站现有博文322篇,共被浏览791906

本站已经建立2488天!

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