Skip to content
/ ml4a Public
forked from ml4a/ml4a

practical guides, tutorials, and code samples for ml4a

License

Notifications You must be signed in to change notification settings

jakobfp/ml4a

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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.

About

practical guides, tutorials, and code samples for ml4a

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%