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

本站现有博文337篇,共被浏览961414次

本站已经建立2673天!

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