peal-xai-rae
Non-commercial use only (CC BY-NC 4.0).
The optional companion of peal-xai that
enables PEAL's RAE generators (RAEDiffusionAutoencoder, the ImageNet and
CelebA representation-autoencoder counterfactual generators). It contains a
modified copy of RAEv2 by Singh, Zheng,
Wu, Zhang, Shechtman and Xie, which is licensed CC BY-NC 4.0, so this package is
too. peal-xai itself is LGPL-3.0-or-later and does not need this package for
anything else.
Install
pip install "peal-xai[rae]" # from PyPI
pip install ./packages/peal-xai-rae # from a clone of the PEAL repository
# the clip:ViT-L/14 encoder needs OpenAI CLIP, which is not on PyPI:
pip install "clip @ git+https://github.com/openai/CLIP.git"
# only for retraining stage 1 / stage 2:
pip install "peal-xai-rae[train]"
Weights
The pretrained ImageNet weights (decoder.pt 1.66 GB, stats.pt,
stage2_ema.pt 4.96 GB) are too large for a wheel. They live at
https://huggingface.co/sidney1505/peal-rae-clip-imagenet (also CC BY-NC 4.0)
and are downloaded on first use by any generator config with
weights: hf://sidney1505/peal-rae-clip-imagenet, for example
configs/web_demo/imagenet_rae_clip_hf.yaml. They are cached under
$PEAL_HF_WEIGHTS_DIR, default $PEAL_RUNS/hf_weights.
How PEAL finds it
PEAL looks for RAEv2 in this order: $PEAL_RAEV2_DIR, this installed package
(peal_rae.raev2_dir()), the in-repository copy under
packages/peal-xai-rae/peal_rae/RAEv2, and finally external/RAEv2.
Licence
LICENSE (CC BY-NC 4.0 with the RAEv2 copyright notice). What was changed
relative to upstream is listed in peal_rae/RAEv2/MODIFICATIONS.md.
Metadata
Release files for peal-xai-rae 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| peal_xai_rae-0.1.0.tar.gz | 195.9 kB | Without provenance | Details for peal_xai_rae-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| peal_xai_rae-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for peal_xai_rae-0.1.0-py3-none-any.whl |
Total release size: 455.0 kB
Release files / peal_xai_rae-0.1.0.tar.gz
| Download URL | peal_xai_rae-0.1.0.tar.gz |
|---|---|
| Size | 195.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b54ed5fec14028d025ec5e5d98976cfdd32fcc8caa751c29b519a472085c91cd
|
|
BLAKE2b-256 checksum How to use checksums |
ddabdb7fda625ebfeefdf8bf6d56c11bc046834c1cc3590aeadc687786649063
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / peal_xai_rae-0.1.0-py3-none-any.whl
| Download URL | peal_xai_rae-0.1.0-py3-none-any.whl |
|---|---|
| Size | 259.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c219c4896d1f2760f6aa7e3256a00eb9398f3df30991e0576287b5539caf0c2f
|
|
BLAKE2b-256 checksum How to use checksums |
dbabc8b5b8fe2ad3362db316e5042598939a8c24d4432d3a0215ac98edc1b7b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for peal-xai-rae 0.1.0
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.