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

本站现有博文332篇,共被浏览897935

本站已经建立2598天!

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