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

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

本站已经建立2578天!

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