Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 2.53 KB

README.md

File metadata and controls

51 lines (35 loc) · 2.53 KB


ml4a
Machine Learning for Artists

ml4a is a Python library for making art with machine learning. It features:

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 stylegan2

network_pkl = stylegan2.get_pretrained_model('ffhq')
stylegan2.load_model(network_pkl)

samples, _ = stylegan2.random_sample(3, labels=None, truncation=1.0)
image.display(samples)

Every model in ml4a.models, including the stylegan2 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

Join the Slack. Contribute to the code.

License

ml4a itself is licensed MIT, but you are also bound to the licenses of any models you use.