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

本站现有博文323篇,共被浏览795367

本站已经建立2493天!

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