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

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

本站已经建立2662天!

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