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

本站现有博文320篇,共被浏览756662

本站已经建立2420天!

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