Skip to main content

自动提取神经网络的中间层特征 并生成热力图 支持 GPU 加速(可选) 支持 .mat 格式(用于进一步分析) 支持 .png 输出(用于可视化) 可直接 import 在 Python 代码或 Jupyter Notebook 里使用

pip install heatmap_generator

快速开始 from heatmap_generator import HeatmapGenerator

初始化热力图生成器(加载模型)

heatmap_gen = HeatmapGenerator(model_name="rpcanetma9",model_path="/Users/yourname/My_mission/API/RPCANet_Code/heatmap_package/heatmap_generator/result/20240519T07-24-39_rpcanetma9_nudt/best.pkl", use_cuda=True)

生成热力图,保存为 .mat 和 .png

heatmap = heatmap_gen.generate_heatmap( img_path="/Users/yourname/My_mission/API/RPCANet_Code/datasets/NUDT-SIRST/test/images/001101.png", data_name="NUDT-SIRST_test_images_001101", output_mat="/Users/yourname/My_mission/API/RPCANet_Code/heatmap_test_2.20/mat", output_png="/Users/yourname/My_mission/API/RPCANet_Code/heatmap_test_2.20/png" )

Metadata

Release files for heatmap-generator 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heatmap-generator 0.1.2
File Size Uploaded Provenance Actions
heatmap_generator-0.1.2.tar.gz 4.0 kB Without provenance Details for heatmap_generator-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for heatmap-generator 0.1.2
File Interpreter ABI Platform Actions
heatmap_generator-0.1.2-py3-none-any.whl Python 3 none any Details for heatmap_generator-0.1.2-py3-none-any.whl

Total release size: 8.9 kB

Release files / heatmap_generator-0.1.2.tar.gz

Download URL heatmap_generator-0.1.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1c92251ec40c7ce1c65806439c7ff3354b567d9c8133a9706dfd3da92d1f19fa
BLAKE2b-256 checksum
How to use checksums
4b598bfd7a5a79d4d63e3b051cd0dd88c643a7fb2042647b1cef089d1d96b5b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.20

Release files / heatmap_generator-0.1.2-py3-none-any.whl

Download URL heatmap_generator-0.1.2-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3d61e9eff62c91393a02c5626524a72732f0e57cd8f518e74833ba2bec67cf9
BLAKE2b-256 checksum
How to use checksums
fb7073c511aa1bfe1531f27a468b6cd3d42cc59127c7e95d7d6ae19ab090602c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.20

Security for heatmap-generator 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page