{"id":19156146,"url":"https://github.com/kyegomez/ast","last_synced_at":"2025-05-07T07:34:18.145Z","repository":{"id":214706554,"uuid":"737172486","full_name":"kyegomez/AST","owner":"kyegomez","description":"Implementation of AST from the paper: \"AST: Audio Spectrogram Transformer' in PyTorch and Zeta","archived":false,"fork":false,"pushed_at":"2024-03-11T17:27:09.000Z","size":2286,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T20:16:47.036Z","etag":null,"topics":["ai","artificial-intelligence","attention","machine","machine-learning","machine-learning-algorithms","pytorch","pytorch-implementation","tensorflow"],"latest_commit_sha":null,"homepage":"https://discord.gg/GYbXvDGevY","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kyegomez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["kyegomez"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-12-30T04:09:32.000Z","updated_at":"2024-03-09T03:59:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"b8a0d3ac-7f3b-46fd-a252-77ae390522d1","html_url":"https://github.com/kyegomez/AST","commit_stats":{"total_commits":13,"total_committers":3,"mean_commits":4.333333333333333,"dds":"0.23076923076923073","last_synced_commit":"9daf4045d5b54ca3167a5d7ca284361b7e400ef6"},"previous_names":["kyegomez/ast"],"tags_count":0,"template":false,"template_full_name":"kyegomez/Python-Package-Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyegomez%2FAST","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyegomez%2FAST/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyegomez%2FAST/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyegomez%2FAST/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyegomez","download_url":"https://codeload.github.com/kyegomez/AST/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252834049,"owners_count":21811300,"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":["ai","artificial-intelligence","attention","machine","machine-learning","machine-learning-algorithms","pytorch","pytorch-implementation","tensorflow"],"created_at":"2024-11-09T08:33:24.882Z","updated_at":"2025-05-07T07:34:18.114Z","avatar_url":"https://github.com/kyegomez.png","language":"Python","funding_links":["https://github.com/sponsors/kyegomez"],"categories":[],"sub_categories":[],"readme":"[![Multi-Modality](agorabanner.png)](https://discord.gg/qUtxnK2NMf)\n\n# AST\nImplementation of AST from the paper: \"AST: Audio Spectrogram Transformer' in PyTorch and Zeta. In this implementation we basically take an 2d input tensor representing audio -\u003e then patchify it -\u003e linear proj -\u003e then position embeddings -\u003e then attention and feedforward in a loop for layers. Please Join Agora and tag me if this could be improved in any capacity.\n\n## Install\n`pip3 install ast-torch`\n\n## Usage\n\n```python\nimport torch\nfrom ast_torch.model import ASTransformer\n\n# Create dummy data\nx = torch.randn(2, 16)\n\n# Initialize model\nmodel = ASTransformer(\n    dim=4, seqlen=16, dim_head=4, heads=4, depth=2, patch_size=4\n)\n\n# Run model and print output shape\nprint(model(x).shape)\n\n\n```\n\n\n# Citation\n```bibtex\n@misc{gong2021ast,\n    title={AST: Audio Spectrogram Transformer}, \n    author={Yuan Gong and Yu-An Chung and James Glass},\n    year={2021},\n    eprint={2104.01778},\n    archivePrefix={arXiv},\n    primaryClass={cs.SD}\n}\n\n```\n\n# License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyegomez%2Fast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyegomez%2Fast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyegomez%2Fast/lists"}