{"id":16200410,"url":"https://github.com/andfanilo/ddsp-streamlit-ui","last_synced_at":"2025-07-02T09:35:38.631Z","repository":{"id":99876085,"uuid":"235349964","full_name":"andfanilo/ddsp-streamlit-ui","owner":"andfanilo","description":"Streamlit version for the DDSP timbre transfer demo.","archived":false,"fork":false,"pushed_at":"2020-01-21T14:20:51.000Z","size":178,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T23:51:16.659Z","etag":null,"topics":["ddsp","python","streamlit","tensorflow"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andfanilo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-21T13:33:14.000Z","updated_at":"2024-05-13T14:58:38.000Z","dependencies_parsed_at":"2023-05-10T21:15:47.627Z","dependency_job_id":null,"html_url":"https://github.com/andfanilo/ddsp-streamlit-ui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andfanilo/ddsp-streamlit-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andfanilo%2Fddsp-streamlit-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andfanilo%2Fddsp-streamlit-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andfanilo%2Fddsp-streamlit-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andfanilo%2Fddsp-streamlit-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andfanilo","download_url":"https://codeload.github.com/andfanilo/ddsp-streamlit-ui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andfanilo%2Fddsp-streamlit-ui/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263112303,"owners_count":23415581,"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":["ddsp","python","streamlit","tensorflow"],"created_at":"2024-10-10T09:30:12.035Z","updated_at":"2025-07-02T09:35:38.607Z","avatar_url":"https://github.com/andfanilo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DDSP demo on Streamlit\n\nStreamlit version for the [DDSP timbre transfer demo](https://github.com/magenta/ddsp/blob/master/ddsp/colab/demos/timbre_transfer.ipynb) _but only for `.wav` files_.\n\n![](./demo.png)\n\n## Prerequisites\n\n- You need to download and unzip the DDSP checkpoints in the `models/` folder.\n\nI did it using the `gsutil` tool in a Colab environment then downloading from Colab to local machine :\n\n```bash\n!gsutil cp -r gs://ddsp/models/ .\n```\n\nThe structure should look like :\n\n    ├── models\n    │   ├── solo_flute_ckpt\n    |   |   ├── model.ckpt-2400.data-00000-of-00001\n    |   |   ├── model.ckpt-2400.index\n    |   |   ├── model.ckpt-2400.meta\n    |   │   └── operative_config-0.gin\n    │   ├── solo_flute2_ckpt\n    |   │   └── ...\n    │   └── slow_violin_ckpt\n    |       └── ...\n    │\n    ├── app.py\n    │\n    .\n    .\n    .\n\n- You also need some `.wav` file to upload. There is no means to record your voice yet within Streamlit so do it beforehand, or download some free voice sample.\n\n## Install\n\nI use conda but feel free to use your own virtual env to install requirements.txt :\n\n```bash\nconda create -n ddsp-streamlit-ui python=3.7\nconda activate ddsp-streamlit-ui\npip install -r requirements.txt\n```\n\n## Run\n\n```bash\nstreamlit run app.py\n```\n\nAt the end of script, the output file is created in `output.wav`.\n\n## Contribute\n\nTo regenerate `requirements.txt` :\n\n```shell\npip install pip-tools\npip-compile requirements.in\n```\n\nTo format code :\n\n```shell\npip install black reorder-python-imports\nreorder-python-imports --application-directories=.\nblack app.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandfanilo%2Fddsp-streamlit-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandfanilo%2Fddsp-streamlit-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandfanilo%2Fddsp-streamlit-ui/lists"}