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

本站现有博文327篇,共被浏览833159

本站已经建立2538天!

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