{"id":13446404,"url":"https://github.com/magenta/magenta","last_synced_at":"2025-05-13T15:04:44.395Z","repository":{"id":37453418,"uuid":"58157629","full_name":"magenta/magenta","owner":"magenta","description":"Magenta: Music and Art Generation with Machine Intelligence","archived":false,"fork":false,"pushed_at":"2025-04-22T16:44:35.000Z","size":37844,"stargazers_count":19470,"open_issues_count":425,"forks_count":3780,"subscribers_count":742,"default_branch":"main","last_synced_at":"2025-05-05T22:41:49.923Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magenta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-05-05T20:10:40.000Z","updated_at":"2025-05-05T16:12:33.000Z","dependencies_parsed_at":"2023-02-10T18:15:52.552Z","dependency_job_id":"e6a8893f-4fe5-444e-9c5f-7e48d25e4075","html_url":"https://github.com/magenta/magenta","commit_stats":null,"previous_names":["tensorflow/magenta"],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magenta%2Fmagenta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magenta%2Fmagenta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magenta%2Fmagenta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magenta%2Fmagenta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magenta","download_url":"https://codeload.github.com/magenta/magenta/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253210666,"owners_count":21871858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T05:00:52.763Z","updated_at":"2025-05-13T15:04:39.385Z","avatar_url":"https://github.com/magenta.png","language":"Python","funding_links":[],"categories":["Python","🎨 Generative AI Evaluation","音频处理","Python (144)","Miscellaneous","Natural Language Processing","\u003cspan id=\"music\"\u003eMusic\u003c/span\u003e","杂项","Image Segmentation","GitHub projects","Music Generation","Miscellaneous [🔝](#readme)","资源列表","📦 Legacy \u0026 Inactive Projects","Music Generation \u0026 AI"],"sub_categories":["Speech \u0026 Audio","\u003cspan id=\"tool\"\u003eLLM (LLM \u0026 Tool)\u003c/span\u003e","Creative Uses of Generative AI Image Synthesis Tools","杂项","Text-to-Speech"],"readme":"# Status\n\nThis repository is currently inactive and serves only as a supplement some of our papers. We have transitioned to using individual repositories for new projects. For our current work, see the [Magenta website](https://g.co/magenta) and [Magenta GitHub Organization](https://github.com/magenta).\n\n# Magenta\n\n\u003cimg src=\"magenta-logo-bg.png\" height=\"75\"\u003e\n\n[![Build Status](https://github.com/magenta/magenta/workflows/build/badge.svg)](https://github.com/magenta/magenta/actions?query=workflow%3Abuild)\n [![PyPI version](https://badge.fury.io/py/magenta.svg)](https://badge.fury.io/py/magenta)\n\n**Magenta** is a research project exploring the role of machine learning\nin the process of creating art and music.  Primarily this\ninvolves developing new deep learning and reinforcement learning\nalgorithms for generating songs, images, drawings, and other materials. But it's also\nan exploration in building smart tools and interfaces that allow\nartists and musicians to extend (not replace!) their processes using\nthese models.  Magenta was started by some researchers and engineers\nfrom the [Google Brain team](https://research.google.com/teams/brain/),\nbut many others have contributed significantly to the project. We use\n[TensorFlow](https://www.tensorflow.org) and release our models and\ntools in open source on this GitHub.  If you’d like to learn more\nabout Magenta, check out our [blog](https://magenta.tensorflow.org),\nwhere we post technical details.  You can also join our [discussion\ngroup](https://groups.google.com/a/tensorflow.org/forum/#!forum/magenta-discuss).\n\nThis is the home for our Python TensorFlow library. To use our models in the browser with [TensorFlow.js](https://js.tensorflow.org/), head to the [Magenta.js](https://github.com/tensorflow/magenta-js) repository.\n\n## Getting Started\n\nTake a look at our [colab notebooks](https://magenta.tensorflow.org/demos/colab/) for various models, including one on [getting started](https://colab.research.google.com/notebooks/magenta/hello_magenta/hello_magenta.ipynb).\n[Magenta.js](https://github.com/tensorflow/magenta-js) is also a good resource for models and [demos](https://magenta.tensorflow.org/demos/web/) that run in the browser.\nThis and more, including [blog posts](https://magenta.tensorflow.org/blog) and [Ableton Live plugins](https://magenta.tensorflow.org/demos/native/), can be found at [https://magenta.tensorflow.org](https://magenta.tensorflow.org).\n\n## Magenta Repo\n\n* [Installation](#installation)\n* [Using Magenta](#using-magenta)\n* [Development Environment (Advanced)](#development-environment)\n\n## Installation\n\nMagenta maintains a [pip package](https://pypi.python.org/pypi/magenta) for easy\ninstallation. We recommend using Anaconda to install it, but it can work in any\nstandard Python environment. We support Python 3 (\u003e= 3.5). These instructions\nwill assume you are using Anaconda.\n\n### Automated Install (w/ Anaconda)\n\nIf you are running Mac OS X or Ubuntu, you can try using our automated\ninstallation script. Just paste the following command into your terminal.\n\n```bash\ncurl https://raw.githubusercontent.com/tensorflow/magenta/main/magenta/tools/magenta-install.sh \u003e /tmp/magenta-install.sh\nbash /tmp/magenta-install.sh\n```\n\nAfter the script completes, open a new terminal window so the environment\nvariable changes take effect.\n\nThe Magenta libraries are now available for use within Python programs and\nJupyter notebooks, and the Magenta scripts are installed in your path!\n\nNote that you will need to run `source activate magenta` to use Magenta every\ntime you open a new terminal window.\n\n### Manual Install (w/o Anaconda)\n\nIf the automated script fails for any reason, or you'd prefer to install by\nhand, do the following steps.\n\nInstall the Magenta pip package:\n\n```bash\npip install magenta\n```\n\n**NOTE**: In order to install the `rtmidi` package that we depend on, you may need to install headers for some sound libraries. On Ubuntu Linux, this command should install the necessary packages:\n\n```bash\nsudo apt-get install build-essential libasound2-dev libjack-dev portaudio19-dev\n```\nOn Fedora Linux, use\n```bash\nsudo dnf group install \"C Development Tools and Libraries\"\nsudo dnf install SAASound-devel jack-audio-connection-kit-devel portaudio-devel\n```\n\n\nThe Magenta libraries are now available for use within Python programs and\nJupyter notebooks, and the Magenta scripts are installed in your path!\n\n## Using Magenta\n\nYou can now train our various models and use them to generate music, audio, and images. You can\nfind instructions for each of the models by exploring the [models directory](magenta/models).\n\n## Development Environment\nIf you want to develop on Magenta, you'll need to set up the full Development Environment.\n\nFirst, clone this repository:\n\n```bash\ngit clone https://github.com/tensorflow/magenta.git\n```\n\nNext, install the dependencies by changing to the base directory and executing the setup command:\n\n```bash\npip install -e .\n```\n\nYou can now edit the files and run scripts by calling Python as usual. For example, this is how you would run the `melody_rnn_generate` script from the base directory:\n\n```bash\npython magenta/models/melody_rnn/melody_rnn_generate --config=...\n```\n\nYou can also install the (potentially modified) package with:\n\n```bash\npip install .\n```\n\nBefore creating a pull request, please also test your changes with:\n\n```bash\npip install pytest-pylint\npytest\n```\n\n## PIP Release\n\nTo build a new version for pip, bump the version and then run:\n\n```bash\npython setup.py test\npython setup.py bdist_wheel --universal\ntwine upload dist/magenta-N.N.N-py2.py3-none-any.whl\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagenta%2Fmagenta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagenta%2Fmagenta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagenta%2Fmagenta/lists"}