torchcam

Class activation maps for your PyTorch models (CAM, Grad-CAM, Grad-CAM++, Smooth Grad-CAM++, Score-CAM, SS-CAM, IS-CAM, XGrad-CAM, Layer-CAM)

https://github.com/frgfm/torch-cam

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.1%) to scientific vocabulary

Keywords

activation-maps class-activation-map cnn deep-learning grad-cam gradcam gradcam-plus-plus interpretability interpretable-deep-learning python pytorch saliency-map score-cam smoothgrad

Keywords from Contributors

interactive mesh distribution sequences generic projection optim hacking network-simulation
Last synced: 6 months ago · JSON representation ·

Repository

Class activation maps for your PyTorch models (CAM, Grad-CAM, Grad-CAM++, Smooth Grad-CAM++, Score-CAM, SS-CAM, IS-CAM, XGrad-CAM, Layer-CAM)

Basic Info
Statistics
  • Stars: 2,216
  • Watchers: 11
  • Forks: 221
  • Open Issues: 9
  • Releases: 8
Topics
activation-maps class-activation-map cnn deep-learning grad-cam gradcam gradcam-plus-plus interpretability interpretable-deep-learning python pytorch saliency-map score-cam smoothgrad
Created almost 6 years ago · Last pushed 8 months ago
Metadata Files
Readme Contributing Funding License Code of conduct Citation

README.md

TorchCAM: class activation explorer

CI Status ruff ruff Test coverage percentage

PyPi Version Conda Version pyversions License

Huggingface Spaces Open in Colab

Documentation Status

Simple way to leverage the class-specific activation of convolutional layers in PyTorch.

Source: image from woopets (activation maps created with a pretrained Resnet-18)

Quick Tour

Setting your CAM

TorchCAM leverages PyTorch hooking mechanisms to seamlessly retrieve all required information to produce the class activation without additional efforts from the user. Each CAM object acts as a wrapper around your model.

You can find the exhaustive list of supported CAM methods in the documentation, then use it as follows:

```python

Define your model

from torchvision.models import resnet18 model = resnet18(pretrained=True).eval()

Set your CAM extractor

from torchcam.methods import SmoothGradCAMpp cam_extractor = SmoothGradCAMpp(model) ```

Please note that by default, the layer at which the CAM is retrieved is set to the last non-reduced convolutional layer. If you wish to investigate a specific layer, use the target_layer argument in the constructor.

Retrieving the class activation map

Once your CAM extractor is set, you only need to use your model to infer on your data as usual. If any additional information is required, the extractor will get it for you automatically.

```python from torchvision.io.image import readimage from torchvision.transforms.functional import normalize, resize, topil_image from torchvision.models import resnet18 from torchcam.methods import SmoothGradCAMpp

model = resnet18(pretrained=True).eval()

Get your input

img = read_image("path/to/your/image.png")

Preprocess it for your chosen model

input_tensor = normalize(resize(img, (224, 224)) / 255., [0.485, 0.456, 0.406], [0.229, 0.224, 0.225])

with SmoothGradCAMpp(model) as camextractor: # Preprocess your data and feed it to the model out = model(inputtensor.unsqueeze(0)) # Retrieve the CAM by passing the class index and the model output activationmap = camextractor(out.squeeze(0).argmax().item(), out) ```

If you want to visualize your heatmap, you only need to cast the CAM to a numpy ndarray:

```python import matplotlib.pyplot as plt

Visualize the raw CAM

plt.imshow(activationmap[0].squeeze(0).numpy()); plt.axis('off'); plt.tightlayout(); plt.show() ```

raw_heatmap

Or if you wish to overlay it on your input image:

```python import matplotlib.pyplot as plt from torchcam.utils import overlay_mask

Resize the CAM and overlay it

result = overlaymask(topilimage(img), topilimage(activationmap[0].squeeze(0), mode='F'), alpha=0.5)

Display it

plt.imshow(result); plt.axis('off'); plt.tight_layout(); plt.show() ```

overlayed_heatmap

Setup

Python 3.9 (or higher) and uv/conda are required to install TorchCAM.

Stable release

You can install the last stable release of the package using pypi as follows:

shell pip install torchcam

or using conda:

shell conda install -c frgfm torchcam

Developer installation

Alternatively, if you wish to use the latest features of the project that haven't made their way to a release yet, you can install the package from source:

shell git clone https://github.com/frgfm/torch-cam.git pip install -e torch-cam/.

CAM Zoo

This project is developed and maintained by the repo owner, but the implementation was based on the following research papers:

  • Learning Deep Features for Discriminative Localization: the original CAM paper
  • Grad-CAM: GradCAM paper, generalizing CAM to models without global average pooling.
  • Grad-CAM++: improvement of GradCAM++ for more accurate pixel-level contribution to the activation.
  • Smooth Grad-CAM++: SmoothGrad mechanism coupled with GradCAM.
  • Score-CAM: score-weighting of class activation for better interpretability.
  • SS-CAM: SmoothGrad mechanism coupled with Score-CAM.
  • IS-CAM: integration-based variant of Score-CAM.
  • XGrad-CAM: improved version of Grad-CAM in terms of sensitivity and conservation.
  • Layer-CAM: Grad-CAM alternative leveraging pixel-wise contribution of the gradient to the activation.

Source: YouTube video (activation maps created by Layer-CAM with a pretrained ResNet-18)

What else

Documentation

The full package documentation is available here for detailed specifications.

Demo app

A minimal demo app is provided for you to play with the supported CAM methods! Feel free to check out the live demo on Hugging Face Spaces

If you prefer running the demo by yourself, you will need an extra dependency (Streamlit) for the app to run:

pip install -e ".[demo]"

You can then easily run your app in your default browser by running:

streamlit run demo/app.py

torchcam_demo

Example script

An example script is provided for you to benchmark the heatmaps produced by multiple CAM approaches on the same image:

shell python scripts/cam_example.py --arch resnet18 --class-idx 232 --rows 2

gradcam_sample

All script arguments can be checked using python scripts/cam_example.py --help

Latency benchmark

You crave for beautiful activation maps, but you don't know whether it fits your needs in terms of latency?

In the table below, you will find a latency benchmark (forward pass not included) for all CAM methods:

| CAM method | Arch | GPU mean (std) | CPU mean (std) | | ------------------------------------------------------------ | ------------------ | ------------------ | -------------------- | | CAM | resnet18 | 0.11ms (0.02ms) | 0.14ms (0.03ms) | | GradCAM | resnet18 | 3.71ms (1.11ms) | 40.66ms (1.82ms) | | GradCAMpp | resnet18 | 5.21ms (1.22ms) | 41.61ms (3.24ms) | | SmoothGradCAMpp | resnet18 | 33.67ms (2.51ms) | 239.27ms (7.85ms) | | ScoreCAM | resnet18 | 304.74ms (11.54ms) | 6796.89ms (415.14ms) | | SSCAM | resnet18 | | | | ISCAM | resnet18 | | | | XGradCAM | resnet18 | 3.78ms (0.96ms) | 40.63ms (2.03ms) | | LayerCAM | resnet18 | 3.65ms (1.04ms) | 40.91ms (1.79ms) | | CAM | mobilenetv3large | N/A* | N/A* | | GradCAM | mobilenetv3large | 8.61ms (1.04ms) | 26.64ms (3.46ms) | | GradCAMpp | mobilenetv3large | 8.83ms (1.29ms) | 25.50ms (3.10ms) | | SmoothGradCAMpp | mobilenetv3large | 77.38ms (3.83ms) | 156.25ms (4.89ms) | | ScoreCAM | mobilenetv3large | 35.19ms (2.11ms) | 679.16ms (55.04ms) | | SSCAM | mobilenetv3large | | | | ISCAM | mobilenetv3large | | | | XGradCAM | mobilenetv3large | 8.41ms (0.98ms) | 24.21ms (2.94ms) | | LayerCAM | mobilenetv3large | 8.02ms (0.95ms) | 25.14ms (3.17ms) |

*The base CAM method cannot work with architectures that have multiple fully-connected layers

This benchmark was performed over 100 iterations on (224, 224) inputs, on a laptop to better reflect performances that can be expected by common users. The hardware setup includes an Intel(R) Core(TM) i7-10750H for the CPU, and a NVIDIA GeForce RTX 2070 with Max-Q Design for the GPU.

You can run this latency benchmark for any CAM method on your hardware as follows:

bash python scripts/eval_latency.py SmoothGradCAMpp

All script arguments can be checked using python scripts/eval_latency.py --help

Example notebooks

Looking for more illustrations of TorchCAM features? You might want to check the Jupyter notebooks designed to give you a broader overview.

Citation

If you wish to cite this project, feel free to use this BibTeX reference:

bibtex @misc{torcham2020, title={TorchCAM: class activation explorer}, author={François-Guillaume Fernandez}, year={2020}, month={March}, publisher = {GitHub}, howpublished = {\url{https://github.com/frgfm/torch-cam}} }

Contributing

Feeling like extending the range of possibilities of CAM? Or perhaps submitting a paper implementation? Any sort of contribution is greatly appreciated!

You can find a short guide in CONTRIBUTING to help grow this project!

License

Distributed under the Apache 2.0 License. See LICENSE for more information.

FOSSA Status

Owner

  • Name: F-G Fernandez
  • Login: frgfm
  • Kind: user
  • Location: Paris, FR
  • Company: @relaycli @pyronear

Deep Learning Engineer by day, Open Source contributor by night :bat:

Citation (CITATION.cff)

cff-version: 1.2.0
type: software
message: "If you use this software in your work, please cite it as below."
authors:
- family-names: "Fernandez"
  given-names: "François-Guillaume"
title: "TorchCAM: class activation explorer"
date-released: 2020-05-24
url: "https://github.com/frgfm/torch-cam"
preferred-citation:
  type: conference-paper
  authors:
  - family-names: "Fernandez"
    given-names: "François-Guillaume"
  title: "TorchCAM: class activation explorer"
  year: 2021
  publisher: "PyTorch Developer Day 2021"
  url: "https://s3.amazonaws.com/assets.pytorch.org/ptdd2021/posters/B5.png"
  address: "Online"

GitHub Events

Total
  • Watch event: 241
  • Delete event: 48
  • Issue comment event: 129
  • Push event: 40
  • Pull request review event: 17
  • Pull request review comment event: 6
  • Pull request event: 104
  • Fork event: 12
  • Create event: 51
Last Year
  • Watch event: 241
  • Delete event: 48
  • Issue comment event: 129
  • Push event: 40
  • Pull request review event: 17
  • Pull request review comment event: 6
  • Pull request event: 104
  • Fork event: 12
  • Create event: 51

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 176
  • Total Committers: 4
  • Avg Commits per committer: 44.0
  • Development Distribution Score (DDS): 0.136
Past Year
  • Commits: 26
  • Committers: 2
  • Avg Commits per committer: 13.0
  • Development Distribution Score (DDS): 0.231
Top Committers
Name Email Commits
F-G Fernandez f****3@h****r 152
dependabot[bot] 4****] 22
Prathamesh Mandke 4****e 1
Alexandros Stergiou a****5@g****m 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 42
  • Total pull requests: 200
  • Average time to close issues: about 2 months
  • Average time to close pull requests: 5 days
  • Total issue authors: 30
  • Total pull request authors: 4
  • Average comments per issue: 3.83
  • Average comments per pull request: 1.6
  • Merged pull requests: 110
  • Bot issues: 1
  • Bot pull requests: 113
Past Year
  • Issues: 1
  • Pull requests: 97
  • Average time to close issues: 4 days
  • Average time to close pull requests: 8 days
  • Issue authors: 1
  • Pull request authors: 3
  • Average comments per issue: 3.0
  • Average comments per pull request: 2.16
  • Merged pull requests: 23
  • Bot issues: 1
  • Bot pull requests: 89
Top Authors
Issue Authors
  • frgfm (9)
  • noobgrow (3)
  • lars-nieradzik (2)
  • dependabot[bot] (2)
  • sugatoray (2)
  • almeidava93 (1)
  • anassnouri (1)
  • dayunyan (1)
  • Ethan-Chen-plus (1)
  • long123524 (1)
  • ChordXy (1)
  • wwdok (1)
  • ReIDkj (1)
  • icedpanda (1)
  • neeleshbisht99 (1)
Pull Request Authors
  • dependabot[bot] (158)
  • frgfm (98)
  • DmitriyValetov (2)
  • TommyZihao (1)
Top Labels
Issue Labels
module: methods (24) type: bug (14) question (9) type: enhancement (6) type: new feature (4) ext: scripts (3) awaiting response (3) topic: 3d (3) dependencies (2) topic: ci (2) ext: demo (2) topic: build (2) module: metrics (2) topic: documentation (1) good first issue (1) wontfix (1) help wanted (1) type: improvement (1) topic: docs (1) ext: tests (1) module: utils (1) ext: docs (1) topic: style (1) type: breaking change (1) python (1) github_actions (1)
Pull Request Labels
dependencies (160) topic: build (159) python (136) topic: ci (102) module: methods (89) ext: docs (85) ext: tests (83) ext: scripts (83) topic: style (81) ext: demo (81) module: metrics (76) module: utils (76) topic: docs (74) type: misc (51) type: enhancement (44) topic: documentation (40) type: bug (22) github_actions (22) type: code quality (8) type: new feature (7) type: feat (2) awaiting response (1) type: breaking change (1) type: improvement (1)

Packages

  • Total packages: 3
  • Total downloads:
    • pypi 26,530 last-month
  • Total docker downloads: 14
  • Total dependent packages: 3
    (may contain duplicates)
  • Total dependent repositories: 9
    (may contain duplicates)
  • Total versions: 19
  • Total maintainers: 1
pypi.org: torchcam

Class activation maps for your PyTorch CNN models

  • Documentation: https://torchcam.readthedocs.io/
  • License: Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
  • Latest release: 0.4.0
    published over 2 years ago
  • Versions: 9
  • Dependent Packages: 3
  • Dependent Repositories: 9
  • Downloads: 26,530 Last month
  • Docker Downloads: 14
Rankings
Docker downloads count: 3.7%
Average: 4.5%
Downloads: 4.7%
Dependent packages count: 4.8%
Dependent repos count: 4.9%
Maintainers (1)
Last synced: 7 months ago
proxy.golang.org: github.com/frgfm/torch-cam
  • Versions: 8
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.5%
Average: 5.7%
Dependent repos count: 5.8%
Last synced: 7 months ago
conda-forge.org: torchcam

Simple way to leverage the class-specific activation of convolutional layers in PyTorch.

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Stargazers count: 11.0%
Forks count: 15.4%
Average: 27.9%
Dependent repos count: 34.0%
Dependent packages count: 51.2%
Last synced: 6 months ago

Dependencies

.github/workflows/builds.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/setup-python v1 composite
.github/workflows/demo.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/setup-python v1 composite
.github/workflows/doc-status.yml actions
  • actions/setup-python v1 composite
.github/workflows/docs.yaml actions
  • JamesIves/github-pages-deploy-action 3.7.1 composite
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/setup-python v1 composite
  • webfactory/ssh-agent v0.4.1 composite
.github/workflows/pr-labels.yml actions
  • actions/checkout v2 composite
  • actions/github-script 0.3.0 composite
  • actions/setup-python v2 composite
.github/workflows/pull_requests.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/labeler v4 composite
  • actions/setup-python v2 composite
.github/workflows/scripts.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/setup-python v1 composite
.github/workflows/style.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/setup-python v1 composite
  • actions/setup-python v2 composite
.github/workflows/tests.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/download-artifact v2 composite
  • actions/setup-python v1 composite
  • actions/upload-artifact v2 composite
  • codecov/codecov-action v1 composite
  • frgfm/validate-python-headers main composite
scripts/requirements.txt pypi
  • requests >=2.20.0,<3.0.0
  • torchvision >=0.4.0,<1.0.0
.github/workflows/publish.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • conda-incubator/setup-miniconda v3 composite
pyproject.toml pypi
  • Pillow >=8.4.0,!=9.2.0
  • matplotlib >=3.7.0,<4.0.0
  • numpy >=1.17.2,<2.0.0
  • torch >=2.0.0,<3.0.0
setup.py pypi