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

本站现有博文333篇,共被浏览916307

本站已经建立2621天!

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