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

本站现有博文324篇,共被浏览809052

本站已经建立2511天!

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