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

本站现有博文321篇,共被浏览775325

本站已经建立2466天!

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