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

本站现有博文309篇,共被浏览730465

本站已经建立2367天!

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