{"id":19156168,"url":"https://github.com/kyegomez/morpheus-1","last_synced_at":"2025-04-04T08:06:10.917Z","repository":{"id":219124784,"uuid":"748248757","full_name":"kyegomez/MORPHEUS-1","owner":"kyegomez","description":"Implementation of \"MORPHEUS-1\" from Prophetic AI and \"The world’s first multi-modal generative ultrasonic transformer designed to induce and stabilize lucid dreams. \"","archived":false,"fork":false,"pushed_at":"2025-01-27T06:20:24.000Z","size":2374,"stargazers_count":130,"open_issues_count":1,"forks_count":18,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-28T07:09:33.492Z","etag":null,"topics":["ai","artificial-intelligence","machine-learning","medical","ml","neural-networks"],"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":"2024-01-25T15:31:05.000Z","updated_at":"2025-03-09T16:59:28.000Z","dependencies_parsed_at":"2024-12-13T18:09:23.671Z","dependency_job_id":"9ead296a-bed6-408f-93ca-5820c11323ec","html_url":"https://github.com/kyegomez/MORPHEUS-1","commit_stats":null,"previous_names":["kyegomez/morpheus-1"],"tags_count":0,"template":false,"template_full_name":"kyegomez/Python-Package-Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyegomez%2FMORPHEUS-1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyegomez%2FMORPHEUS-1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyegomez%2FMORPHEUS-1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyegomez%2FMORPHEUS-1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyegomez","download_url":"https://codeload.github.com/kyegomez/MORPHEUS-1/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142063,"owners_count":20890652,"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","machine-learning","medical","ml","neural-networks"],"created_at":"2024-11-09T08:33:27.870Z","updated_at":"2025-04-04T08:06:10.899Z","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# Morpheus 1\n\n![Morphesus transformer](morpheus.jpeg)\n\nImplementation of \"MORPHEUS-1\" from Prophetic AI and \"The world’s first multi-modal generative ultrasonic transformer designed to induce and stabilize lucid dreams. \"\n\n\n\n\n\n## Installation\n\n```bash\npip install morpheus-torch\n```\n\n# Usage\n- The input is FRMI and EEG tensors.\n\n- FRMI shape is (batch_size, in_channels, D, H, W)\n\n- EEG Embedding is [batch_size, channels, time_samples]\n\n```python\n# Importing the torch library\nimport torch\n\n# Importing the Morpheus model from the morpheus_torch package\nfrom morpheus_torch.model import Morpheus\n\n# Creating an instance of the Morpheus model with specified parameters\nmodel = Morpheus(\n    dim=128,  # Dimension of the model\n    heads=4,  # Number of attention heads\n    depth=2,  # Number of transformer layers\n    dim_head=32,  # Dimension of each attention head\n    dropout=0.1,  # Dropout rate\n    num_channels=32,  # Number of input channels\n    conv_channels=32,  # Number of channels in convolutional layers\n    kernel_size=3,  # Kernel size for convolutional layers\n    in_channels=1,  # Number of input channels for convolutional layers\n    out_channels=32,  # Number of output channels for convolutional layers\n    stride=1,  # Stride for convolutional layers\n    padding=1,  # Padding for convolutional layers\n    ff_mult=4,  # Multiplier for feed-forward layer dimension\n    scatter = False, # Whether to scatter to 4d representing spatial dimensions\n)\n\n# Creating random tensors for input data\nfrmi = torch.randn(1, 1, 32, 32, 32)  # Random tensor for FRMI data\neeg = torch.randn(1, 32, 128)  # Random tensor for EEG data\n\n# Passing the input data through the model to get the output\noutput = model(frmi, eeg)\n\n# Printing the shape of the output tensor\nprint(output.shape)\n\n\n```\n\n\n\n### Code Quality 🧹\n\n- `make style` to format the code\n- `make check_code_quality` to check code quality (PEP8 basically)\n- `black .`\n- `ruff . --fix`\n\n# License\nMIT\n\n# Todo\n- [x] Implement the scatter in the end of the decoder to output spatial outputs which are 4d?\n\n- [x] Implement a full model with the depth of the decoder layers\n\n- [ ] Change all the MHAs to Multi Query Attentions\n\n- [ ] Double check popular brain scan EEG and FRMI AI papers to double check tensor shape\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyegomez%2Fmorpheus-1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyegomez%2Fmorpheus-1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyegomez%2Fmorpheus-1/lists"}