giantmusictransformer


Namegiantmusictransformer JSON
Version 24.12.14 PyPI version JSON
download
home_pagehttps://github.com/asigalov61/giantmusictransformer
SummaryFast multi-instrumental music transformer with true full MIDI instruments range, efficient encoding, octo-velocity and outro tokens
upload_time2024-12-07 17:10:51
maintainerNone
docs_urlNone
authorAlex Lev
requires_python>=3.6
licenseApache Software License 2.0
keywords midi music music ai music transformer artificial instelligence
VCS
bugtrack_url
requirements tqdm pillow numpy matplotlib scipy networkx scikit-learn torch einops cupy-cuda12x torch-summary
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Giant Music Transformer
## [Giant Music Transformer](https://github.com/asigalov61/Giant-Music-Transformer) as a PyPi package

![Giant-Music-Transformer-Artwork (10)](https://github.com/user-attachments/assets/e532fed2-4aee-44ba-bd72-e3ad3a2a4e1b)

***

## Install

```sh
pip install giantmusictransformer
```

#### (Optional) [FluidSynth](https://github.com/FluidSynth/fluidsynth/wiki/Download) for MIDI to Audio functinality

##### Ubuntu or Debian

```sh
sudo apt-get install fluidsynth
```

##### Windows (with [Chocolatey](https://github.com/chocolatey/choco))

```sh
choco install fluidsynth
```

***

## Quick-start use example

```python
import giantmusictransformer as gmt

# Load desired Giant Music Transformer model
# There are several to choose from...
model = gmt.load_model('medium')

# Get sample seed MIDI path
sample_midi_path = gmt.get_sample_midi_files()[6][1]

# Load seed MIDI
input_tokens = gmt.midi_to_tokens(sample_midi_path)

# Generate seed MIDI continuation
output_tokens = gmt.generate(model, input_tokens, 600, return_prime=True)

# Save output to MIDI
gmt.tokens_to_midi(output_tokens[0])
```

***

### Project Los Angeles
### Tegridy Code 2024

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/asigalov61/giantmusictransformer",
    "name": "giantmusictransformer",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "Alex Lev <alexlev61@proton.me>",
    "keywords": "MIDI, music, music ai, music transformer, artificial instelligence",
    "author": "Alex Lev",
    "author_email": "Alex Lev <alexlev61@proton.me>",
    "download_url": "https://files.pythonhosted.org/packages/e1/da/4e42536f92272958c0bea1d0f620d8254e9af918568062b35d44dc7a15dc/giantmusictransformer-24.12.14.tar.gz",
    "platform": null,
    "description": "# Giant Music Transformer\r\n## [Giant Music Transformer](https://github.com/asigalov61/Giant-Music-Transformer) as a PyPi package\r\n\r\n![Giant-Music-Transformer-Artwork (10)](https://github.com/user-attachments/assets/e532fed2-4aee-44ba-bd72-e3ad3a2a4e1b)\r\n\r\n***\r\n\r\n## Install\r\n\r\n```sh\r\npip install giantmusictransformer\r\n```\r\n\r\n#### (Optional) [FluidSynth](https://github.com/FluidSynth/fluidsynth/wiki/Download) for MIDI to Audio functinality\r\n\r\n##### Ubuntu or Debian\r\n\r\n```sh\r\nsudo apt-get install fluidsynth\r\n```\r\n\r\n##### Windows (with [Chocolatey](https://github.com/chocolatey/choco))\r\n\r\n```sh\r\nchoco install fluidsynth\r\n```\r\n\r\n***\r\n\r\n## Quick-start use example\r\n\r\n```python\r\nimport giantmusictransformer as gmt\r\n\r\n# Load desired Giant Music Transformer model\r\n# There are several to choose from...\r\nmodel = gmt.load_model('medium')\r\n\r\n# Get sample seed MIDI path\r\nsample_midi_path = gmt.get_sample_midi_files()[6][1]\r\n\r\n# Load seed MIDI\r\ninput_tokens = gmt.midi_to_tokens(sample_midi_path)\r\n\r\n# Generate seed MIDI continuation\r\noutput_tokens = gmt.generate(model, input_tokens, 600, return_prime=True)\r\n\r\n# Save output to MIDI\r\ngmt.tokens_to_midi(output_tokens[0])\r\n```\r\n\r\n***\r\n\r\n### Project Los Angeles\r\n### Tegridy Code 2024\r\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "Fast multi-instrumental music transformer with true full MIDI instruments range, efficient encoding, octo-velocity and outro tokens",
    "version": "24.12.14",
    "project_urls": {
        "Demo": "https://huggingface.co/spaces/asigalov61/Giant-Music-Transformer",
        "Discussions": "https://github.com/asigalov61/giantmusictransformer/discussions",
        "Documentation": "https://github.com/asigalov61/giantmusictransformer/docs",
        "Examples": "https://github.com/asigalov61/tegridymidi/giantmusictransformer/examples",
        "Homepage": "https://github.com/asigalov61/giantmusictransformer",
        "Issues": "https://github.com/asigalov61/giantmusictransformer/issues",
        "Models": "https://huggingface.co/asigalov61/Giant-Music-Transformer",
        "Repository": "https://github.com/asigalov61/Giant-Music-Transformer"
    },
    "split_keywords": [
        "midi",
        " music",
        " music ai",
        " music transformer",
        " artificial instelligence"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7569b1591c51fcf4736b91f988e287849aa46074060dd3d9c405201506e10dfd",
                "md5": "ec428b9902e98ae85ef99d1c996d0b08",
                "sha256": "6fcf972594073d05a14f247eab3be2f27a2f92eb165ed92ec83d226048086239"
            },
            "downloads": -1,
            "filename": "giantmusictransformer-24.12.14-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ec428b9902e98ae85ef99d1c996d0b08",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 176519,
            "upload_time": "2024-12-07T17:10:48",
            "upload_time_iso_8601": "2024-12-07T17:10:48.662126Z",
            "url": "https://files.pythonhosted.org/packages/75/69/b1591c51fcf4736b91f988e287849aa46074060dd3d9c405201506e10dfd/giantmusictransformer-24.12.14-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e1da4e42536f92272958c0bea1d0f620d8254e9af918568062b35d44dc7a15dc",
                "md5": "c93f2213e4cf70f77d7631b9ca12d9ea",
                "sha256": "e1383ca53637768348558e0ac67fd20a4eed96945f3cc21e1e80fe60e207f52c"
            },
            "downloads": -1,
            "filename": "giantmusictransformer-24.12.14.tar.gz",
            "has_sig": false,
            "md5_digest": "c93f2213e4cf70f77d7631b9ca12d9ea",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 168454,
            "upload_time": "2024-12-07T17:10:51",
            "upload_time_iso_8601": "2024-12-07T17:10:51.341285Z",
            "url": "https://files.pythonhosted.org/packages/e1/da/4e42536f92272958c0bea1d0f620d8254e9af918568062b35d44dc7a15dc/giantmusictransformer-24.12.14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-07 17:10:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "asigalov61",
    "github_project": "giantmusictransformer",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "tqdm",
            "specs": []
        },
        {
            "name": "pillow",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "matplotlib",
            "specs": []
        },
        {
            "name": "scipy",
            "specs": []
        },
        {
            "name": "networkx",
            "specs": []
        },
        {
            "name": "scikit-learn",
            "specs": []
        },
        {
            "name": "torch",
            "specs": []
        },
        {
            "name": "einops",
            "specs": []
        },
        {
            "name": "cupy-cuda12x",
            "specs": []
        },
        {
            "name": "torch-summary",
            "specs": []
        }
    ],
    "lcname": "giantmusictransformer"
}
        
Elapsed time: 0.40877s