File size: 2,230 Bytes
9c5c0db a6f23b9 3724aff a6f23b9 87b67b3 a6f23b9 90d0b38 a6f23b9 c551342 87b67b3 c551342 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
---
language:
- en
license: mit
datasets:
- aligned_bach_chorales
tags:
- gan
- music-generation
- pytorch
model-index:
- name: Experimental GAN for Bach-like Textures
results:
- task:
name: Music Generation
type: music-generation
dataset:
name: Aligned Bach Chorales Dataset
type: aligned_bach_chorales
metrics:
- name: Quality of Generated Music
type: subjective
value: Experimental
---
# Experimental GAN for Bach-like Textures
## Description
This repository contains an experimental Generative Adversarial Network (GAN) model designed to generate Bach-like textures. The model is based on the Aligned Bach Chorales Dataset, which can be found [here](https://github.com/measure-map/aligned_bach_chorales).
## License
This project is licensed under the MIT License.
## Model Overview
The GAN consists of two parts: a generator and a discriminator. Both models were trained on the Aligned Bach Chorales Dataset, which represents Bach chorales in a binary matrix format.
## Installation and Requirements
To use this model, you need to have PyTorch version 2.1.0+cu121 installed. The dataset loader, model structure, and training scripts are all included in the torch_binary2_v1 notebook.
## Usage
1. **Clone the Repository**:
```
git clone https://huggingface.co/Egorp/j_s_gan
```
2. **Load the Models**:
- Use torch_binary2_v1 notebook to load the provided state dictionaries for both the generator and the discriminator.
3. **Convert Binary Matrices to MIDI**:
- Utilize the `binary_to_midi` notebook included in this repository to convert the binary matrices generated by the GAN into MIDI format.
## Dataset
The dataset used for training this model can be found in the folder named "np_convert". This folder contains binary representations of Bach chorales.
## Contributing
Contributions to this project are welcome. Please feel free to submit issues and pull requests.
## Contact
For any queries or discussions regarding this project, please open an issue in this repository.
## Acknowledgements
Special thanks to the creators and maintainers of the Aligned Bach Chorales Dataset for providing the data used to train this model.
|