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

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

本站已经建立2583天!

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