giantmusictransformer


Namegiantmusictransformer JSON
Version 24.12.23 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-22 05:06:32
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 ipywidgets matplotlib numpy scikit-learn torch einops torch-summary hf-transfer huggingface_hub
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/25/72/806da54b18544fec708156c4cb7cd6b9a1370fd763135ef14f5b09f758aa/giantmusictransformer-24.12.23.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.23",
    "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": "50033945a81558362e2fd18f2e0753eb30c6952fcd2869bec1ad6f9f9b877326",
                "md5": "dac91a99d675715c81a74feadebcd02b",
                "sha256": "650450fd74e5d18666b78a1eb7b542ed138c6bb1074464f677414fc7a8a70af7"
            },
            "downloads": -1,
            "filename": "giantmusictransformer-24.12.23-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dac91a99d675715c81a74feadebcd02b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 177529,
            "upload_time": "2024-12-22T05:06:29",
            "upload_time_iso_8601": "2024-12-22T05:06:29.680536Z",
            "url": "https://files.pythonhosted.org/packages/50/03/3945a81558362e2fd18f2e0753eb30c6952fcd2869bec1ad6f9f9b877326/giantmusictransformer-24.12.23-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2572806da54b18544fec708156c4cb7cd6b9a1370fd763135ef14f5b09f758aa",
                "md5": "a3360af747ff25050d34ea32564d3e54",
                "sha256": "21e705f33ebfb2b2c41cabfd6b043acc7204ea0d9c9f25634cd525d2b9a812eb"
            },
            "downloads": -1,
            "filename": "giantmusictransformer-24.12.23.tar.gz",
            "has_sig": false,
            "md5_digest": "a3360af747ff25050d34ea32564d3e54",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 169280,
            "upload_time": "2024-12-22T05:06:32",
            "upload_time_iso_8601": "2024-12-22T05:06:32.276980Z",
            "url": "https://files.pythonhosted.org/packages/25/72/806da54b18544fec708156c4cb7cd6b9a1370fd763135ef14f5b09f758aa/giantmusictransformer-24.12.23.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-22 05:06:32",
    "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": "ipywidgets",
            "specs": []
        },
        {
            "name": "matplotlib",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "scikit-learn",
            "specs": []
        },
        {
            "name": "torch",
            "specs": []
        },
        {
            "name": "einops",
            "specs": []
        },
        {
            "name": "torch-summary",
            "specs": []
        },
        {
            "name": "hf-transfer",
            "specs": []
        },
        {
            "name": "huggingface_hub",
            "specs": []
        }
    ],
    "lcname": "giantmusictransformer"
}
        
Elapsed time: 0.60932s