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

本站现有博文328篇,共被浏览850611

本站已经建立2557天!

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