Machine Learning for Artists
ml4a is a Python library for making art with machine learning. It features:
- an API wrapping popular deep learning models with creative applications, including StyleGAN2, SPADE, Neural Style Transfer, DeepDream, and many others.
- a collection of Jupyter notebooks explaining the basics of deep learning for beginners, and providing recipes for using the materials creatively.
Example
ml4a bundles the source code of various open source repositories as git submodules and contains wrappers to streamline and simplify them. For example, to generate sample images with StyleGAN2:
from ml4a import image
from ml4a.models import stylegan
network_pkl = stylegan.get_pretrained_model('ffhq')
stylegan.load_model(network_pkl)
samples = stylegan.random_sample(3, labels=None, truncation=1.0)
image.display(samples)
Every model in ml4a.models, including the stylegan module above, imports all of the original repository's code into its namespace, allowing low-level access.
Support ml4a
Become a sponsor
You can support ml4a by donating through GitHub sponsors.
How to contribute
Start by joining the Slack or following us on Twitter. Contribute to the codebase, or help write tutorials.
License
ml4a itself is licensed MIT, but you are also bound to the licenses of any models you use.
Metadata
Release files for ml4a 0.1.3
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 |
|---|---|---|---|---|
| ml4a-0.1.3.tar.gz | 860.5 kB | Without provenance | Details for ml4a-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ml4a-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for ml4a-0.1.3-py3-none-any.whl |
Total release size: 2.0 MB
Release files / ml4a-0.1.3.tar.gz
| Download URL | ml4a-0.1.3.tar.gz |
|---|---|
| Size | 860.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6079a353083754fd4d6634211d613cbcd18b2e5a91c9deffd7c8213ce11a73c0
|
|
BLAKE2b-256 checksum How to use checksums |
801a7452b2ec23b55f8ad283d99c0ba57ecbcc332262bb2ca74837b78e446622
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9
|
Release files / ml4a-0.1.3-py3-none-any.whl
| Download URL | ml4a-0.1.3-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a182d5c82fe75d4e0a148cfe63500fb8c75896b505447a3a25730f322a0c4c6
|
|
BLAKE2b-256 checksum How to use checksums |
e9b56c673fd7c69508841c297c57d8a71711c44afda8116bc42c4f80881b2289
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9
|
Security for ml4a 0.1.3
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.